# CVE-2026-142836: ALSA: cs46xx: fix unit mismatch in DSP code area bounds check

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:20:49.879Z
- **Modified:** 2026-12-03T04:18:19.687Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 295716aa9efe5169dd7cb8d4434a2f4d89d68ea3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 842c4f3e448ea6fff3be6730f94690927a294c2c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e2604712a9cbbdddeba1be02dcb86ff87972c52c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 579f615bd0f7e38b12a5de5615ca671aca030fc7; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 183cc1c1c47d095513d1ab43aacba9771d8ab5e6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 15e36dc9be7b6050045de4b44ab518f3eec8ad3d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7f0c621d6a94dcf65c9af9af37063f5235170714; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd65108f5001ffb416dc9bd37ec1893f55cff24a
- Anyone running Linux 2.6.12

## Description

In the Linux kernel, the following vulnerability has been resolved:

ALSA: cs46xx: fix unit mismatch in DSP code area bounds check

ins-\>code.offset and code-\>size are measured in 32-bit words, while
DSP\_CODE\_BYTE\_SIZE is the size of the DSP code area in bytes. The
check ins-\>code.offset + code-\>size \> DSP\_CODE\_BYTE\_SIZE in
cs46xx\_dsp\_load\_module() therefore allowed up to four times more code
than the code area can hold.

The shadow buffer ins-\>code.data is allocated with
kmalloc(DSP\_CODE\_BYTE\_SIZE), i.e. it holds DSP\_CODE\_BYTE\_SIZE/4
words. A firmware file with a code segment larger than
DSP\_CODE\_BYTE\_SIZE/4 words (28 KiB) passed the check and caused an
out-of-bounds write in shadow\_and\_reallocate\_code() and an
out-of-bounds read in snd\_cs46xx\_download().

Compare the sum in words against DSP\_CODE\_BYTE\_SIZE/4 and cast it to
u64 so that the sum cannot wrap for large code-\>size values.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 295716aa9efe5169dd7cb8d4434a2f4d89d68ea3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 842c4f3e448ea6fff3be6730f94690927a294c2c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e2604712a9cbbdddeba1be02dcb86ff87972c52c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 579f615bd0f7e38b12a5de5615ca671aca030fc7; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 183cc1c1c47d095513d1ab43aacba9771d8ab5e6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 15e36dc9be7b6050045de4b44ab518f3eec8ad3d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7f0c621d6a94dcf65c9af9af37063f5235170714; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd65108f5001ffb416dc9bd37ec1893f55cff24a (cvelist)
- Linux: 2.6.12 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142836. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142836.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 295716aa9efe5169dd7cb8d4434a2f4d89d68ea3; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 842c4f3e448ea6fff3be6730f94690927a294c2c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e2604712a9cbbdddeba1be02dcb86ff87972c52c; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 295716aa9efe5169dd7cb8d4434a2f4d89d68ea3, Linux 842c4f3e448ea6fff3be6730f94690927a294c2c, Linux 579f615bd0f7e38b12a5de5615ca671aca030fc7, Linux 183cc1c1c47d095513d1ab43aacba9771d8ab5e6, Linux 15e36dc9be7b6050045de4b44ab518f3eec8ad3d, Linux 7f0c621d6a94dcf65c9af9af37063f5235170714

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142836 being exploited?

There is no confirmed exploitation: CVE-2026-142836 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142836?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142836?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 295716aa9efe5169dd7cb8d4434a2f4d89d68ea3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 842c4f3e448ea6fff3be6730f94690927a294c2c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e2604712a9cbbdddeba1be02dcb86ff87972c52c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 579f615bd0f7e38b12a5de5615ca671aca030fc7; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 183cc1c1c47d095513d1ab43aacba9771d8ab5e6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 15e36dc9be7b6050045de4b44ab518f3eec8ad3d; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7f0c621d6a94dcf65c9af9af37063f5235170714; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fd65108f5001ffb416dc9bd37ec1893f55cff24a; Linux 2.6.12.

### Is there a fix for CVE-2026-142836?

Yes. Fixed in Linux 295716aa9efe5169dd7cb8d4434a2f4d89d68ea3, Linux 842c4f3e448ea6fff3be6730f94690927a294c2c, Linux 579f615bd0f7e38b12a5de5615ca671aca030fc7, Linux 183cc1c1c47d095513d1ab43aacba9771d8ab5e6, Linux 15e36dc9be7b6050045de4b44ab518f3eec8ad3d, Linux 7f0c621d6a94dcf65c9af9af37063f5235170714. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142836?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/295716aa9efe5169dd7cb8d4434a2f4d89d68ea3>
- other: <https://git.kernel.org/stable/c/842c4f3e448ea6fff3be6730f94690927a294c2c>
- other: <https://git.kernel.org/stable/c/e2604712a9cbbdddeba1be02dcb86ff87972c52c>
- other: <https://git.kernel.org/stable/c/579f615bd0f7e38b12a5de5615ca671aca030fc7>
- other: <https://git.kernel.org/stable/c/183cc1c1c47d095513d1ab43aacba9771d8ab5e6>
- other: <https://git.kernel.org/stable/c/15e36dc9be7b6050045de4b44ab518f3eec8ad3d>
- other: <https://git.kernel.org/stable/c/7f0c621d6a94dcf65c9af9af37063f5235170714>
- other: <https://git.kernel.org/stable/c/fd65108f5001ffb416dc9bd37ec1893f55cff24a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142836>

HTML: <https://flawdb.com/CVE-2026-142836> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142836>
