{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"
            },
            {
              "fixed": "295716aa9efe5169dd7cb8d4434a2f4d89d68ea3"
            },
            {
              "fixed": "842c4f3e448ea6fff3be6730f94690927a294c2c"
            },
            {
              "fixed": "e2604712a9cbbdddeba1be02dcb86ff87972c52c"
            },
            {
              "fixed": "579f615bd0f7e38b12a5de5615ca671aca030fc7"
            },
            {
              "fixed": "183cc1c1c47d095513d1ab43aacba9771d8ab5e6"
            },
            {
              "fixed": "15e36dc9be7b6050045de4b44ab518f3eec8ad3d"
            },
            {
              "fixed": "7f0c621d6a94dcf65c9af9af37063f5235170714"
            },
            {
              "fixed": "fd65108f5001ffb416dc9bd37ec1893f55cff24a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "2.6.12"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.117"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142836.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: cs46xx: fix unit mismatch in DSP code area bounds check\n\nins-\u003ecode.offset and code-\u003esize are measured in 32-bit words, while\nDSP_CODE_BYTE_SIZE is the size of the DSP code area in bytes. The\ncheck ins-\u003ecode.offset + code-\u003esize \u003e DSP_CODE_BYTE_SIZE in\ncs46xx_dsp_load_module() therefore allowed up to four times more code\nthan the code area can hold.\n\nThe shadow buffer ins-\u003ecode.data is allocated with\nkmalloc(DSP_CODE_BYTE_SIZE), i.e. it holds DSP_CODE_BYTE_SIZE/4\nwords. A firmware file with a code segment larger than\nDSP_CODE_BYTE_SIZE/4 words (28 KiB) passed the check and caused an\nout-of-bounds write in shadow_and_reallocate_code() and an\nout-of-bounds read in snd_cs46xx_download().\n\nCompare the sum in words against DSP_CODE_BYTE_SIZE/4 and cast it to\nu64 so that the sum cannot wrap for large code-\u003esize values.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.",
  "id": "CVE-2026-142836",
  "modified": "2026-12-03T04:45:44.075759230Z",
  "published": "2026-12-03T03:20:49.879Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/15e36dc9be7b6050045de4b44ab518f3eec8ad3d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/183cc1c1c47d095513d1ab43aacba9771d8ab5e6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/295716aa9efe5169dd7cb8d4434a2f4d89d68ea3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/579f615bd0f7e38b12a5de5615ca671aca030fc7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7f0c621d6a94dcf65c9af9af37063f5235170714"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/842c4f3e448ea6fff3be6730f94690927a294c2c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e2604712a9cbbdddeba1be02dcb86ff87972c52c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fd65108f5001ffb416dc9bd37ec1893f55cff24a"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142836.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142836"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ALSA: cs46xx: fix unit mismatch in DSP code area bounds check"
}