{
  "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-2024-38621",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2024-38621",
    "idYear": 2024,
    "status": "PUBLISHED",
    "publishedAt": "2024-06-21T10:18:14.955Z",
    "updatedAt": "2026-10-15T00:43:48.837Z",
    "importedAt": "2026-10-24T01:57:16.009Z",
    "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: stk1160: fix bounds checking in stk1160_copy_video()",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: stk1160: fix bounds checking in stk1160_copy_video()\n\nThe subtract in this condition is reversed.  The ->length is the length\nof the buffer.  The ->bytesused is how many bytes we have copied thus\nfar.  When the condition is reversed that means the result of the\nsubtraction is always negative but since it's unsigned then the result\nis a very high positive value.  That means the overflow check is never\ntrue.\n\nAdditionally, the ->bytesused doesn't actually work for this purpose\nbecause we're not writing to \"buf->mem + buf->bytesused\".  Instead, the\nmath to calculate the destination where we are writing is a bit\ninvolved.  You calculate the number of full lines already written,\nmultiply by two, skip a line if necessary so that we start on an odd\nnumbered line, and add the offset into the line.\n\nTo fix this buffer overflow, just take the actual destination where we\nare writing, if the offset is already out of bounds print an error and\nreturn.  Otherwise, write up to buf->length bytes.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "9cb2173e6ea8f2948bd1367c93083a2500fcf08f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f6a392266276730bea893b55d12940e32a25f56a"
            },
            {
              "version": "9cb2173e6ea8f2948bd1367c93083a2500fcf08f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ecf4ddc3aee8ade504c4d36b7b4053ce6093e200"
            },
            {
              "version": "9cb2173e6ea8f2948bd1367c93083a2500fcf08f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a16775828aaed1c54ff4e6fe83e8e4d5c6a50cb7"
            },
            {
              "version": "9cb2173e6ea8f2948bd1367c93083a2500fcf08f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "7532bcec0797adfa08791301c3bcae14141db3bd"
            },
            {
              "version": "9cb2173e6ea8f2948bd1367c93083a2500fcf08f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "b504518a397059e1d55c521ba0ea2b545a6c4b52"
            },
            {
              "version": "9cb2173e6ea8f2948bd1367c93083a2500fcf08f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d410017a7181cb55e4a5c810b32b75e4416c6808"
            },
            {
              "version": "9cb2173e6ea8f2948bd1367c93083a2500fcf08f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a08492832cc4cacc24e0612f483c86ca899b9261"
            },
            {
              "version": "9cb2173e6ea8f2948bd1367c93083a2500fcf08f",
              "status": "affected",
              "versionType": "git",
              "lessThan": "faa4364bef2ec0060de381ff028d1d836600a381"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "3.7",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "3.7"
            },
            {
              "version": "4.19.316",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "4.19.*"
            },
            {
              "version": "5.4.278",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.219",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.161",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.93",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.33",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.9.4",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.9.*"
            },
            {
              "version": "6.10",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}