{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-89879",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-89879",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-09-16T10:31:45.564Z",
    "updatedAt": "2026-10-19T08:54:12.050Z",
    "importedAt": "2026-10-24T01:58:35.090Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "media: s2255: bound JPEG frame size before copying into the buffer",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: s2255: bound JPEG frame size before copying into the buffer\n\ns2255_fillbuff() memcpy()s vc->jpg_size bytes of a captured JPEG/MJPEG\nframe into the vb2 plane.  vc->jpg_size is taken verbatim from the\nS2255_MARKER_FRAME header the device sends (pdword[4] in save_frame())\nand, unlike the frame payload length just above it, is never bounded:\n\n\tpayload = le32_to_cpu(pdword[3]);\n\tif (payload > vc->req_image_size)\t/* payload is checked ... */\n\t\treturn -EINVAL;\n\tvc->pkt_size = payload;\n\tvc->jpg_size = le32_to_cpu(pdword[4]);\t/* ... jpg_size is not */\n\nA malicious or malfunctioning device can therefore report a jpg_size\nlarger than the destination vb2 plane, and the memcpy() writes past it.\njpg_size is a signed int, so a value with the top bit set also turns\ninto a huge length.\n\nReject a frame whose jpg_size is negative or exceeds the plane size\nbefore copying it.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7",
              "status": "affected",
              "versionType": "git",
              "lessThan": "32a595dd3e8634544e5cfbc47f906dff3d3c1ef8"
            },
            {
              "version": "38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7",
              "status": "affected",
              "versionType": "git",
              "lessThan": "4b6f7bccc6559ae5c54573c284fe76eafc9989b2"
            },
            {
              "version": "38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7",
              "status": "affected",
              "versionType": "git",
              "lessThan": "2542516a147bfad740e7e411c251b639fad260ff"
            },
            {
              "version": "38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7",
              "status": "affected",
              "versionType": "git",
              "lessThan": "79f58f900dd221ab04ea74bf4eaf79fa3b0fcc77"
            },
            {
              "version": "38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d2ecaaab6a4f165abb54cdf61be60030b5782bf8"
            },
            {
              "version": "38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7",
              "status": "affected",
              "versionType": "git",
              "lessThan": "68d664f1b4efe525e99154b7058fcb0378bdaff7"
            },
            {
              "version": "38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7",
              "status": "affected",
              "versionType": "git",
              "lessThan": "dd739517560c8d0ec4463a53e717bf40b988d7da"
            },
            {
              "version": "38f993ad8b1fe4caf9e989caf6e2a25aff3bbaf7",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e504cc888f42999dd76b6a43788c422610f2aad2"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.27",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.27"
            },
            {
              "version": "5.10.270",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.221",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.188",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.157",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.110",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.51",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "7.2.5",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "7.2.*"
            },
            {
              "version": "7.3",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}