# CVE-2026-74640: ALSA: FCP: fix OOB write in fcp\_meter\_ctl\_get()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-08-22T15:32:18.957Z
- **Modified:** 2026-10-16T20:17:48.987Z

## Who should check

- Anyone running Linux \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< bb30e35c36ed00f24fa39aded811f64230a913b0; \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< bb61dc2ae59026f76db26e1909746908bc5b6f31; \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< 620f1e52a46f604635efd0fb78138afd6a513b5d
- Anyone running Linux 6.14

## Description

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

ALSA: FCP: fix OOB write in fcp\_meter\_ctl\_get()

fcp\_ioctl\_set\_meter\_map() bounds the user-supplied Level Meter map size
by the driver's own limit of 255

	if (map.map\_size \< 1 \|\| map.map\_size \> 255 \|\|
	    map.meter\_slots \< 1 \|\| map.meter\_slots \> 255)
		return -EINVAL;

and passes it to fcp\_add\_new\_ctl() as the control's channel count, where
it is stored as elem-\>channels.

Every control read writes into struct snd\_ctl\_elem\_value, whose integer
array is declared long value\[128\], so the limit is 128, not 255.
fcp\_meter\_ctl\_get() stores one 64-bit word per channel into that array
with no bound of its own:

	for (i = 0; i \< elem-\>channels; i++) {
		int idx = private-\>meter\_level\_map\[i\];
		int value = idx \< 0 ? 0 : le32\_to\_cpu(resp\[idx\]);

		ucontrol-\>value.integer.value\[i\] = value;
	}

snd\_ctl\_elem\_read\_user() serves that object from
memdup\_user(\_control, sizeof(\*control)), 1224 bytes on LP64 out of
kmalloc-2048.  offsetof(struct snd\_ctl\_elem\_value, value) is 72, so
element i is written at byte 72 + 8 \* i and element 144 already lands
past the allocation.  At map\_size 255 the last store ends at byte 2112,
888 bytes past the object and 64 bytes into the adjacent slab object.
The stored words come from the device and meter\_level\_map\[\] selects
which word lands in which slot, so extent and contents are both
controlled.

The core does not catch this.  snd\_ctl\_check\_elem\_info() is reached only
from \_\_snd\_ctl\_elem\_info(), which snd\_ctl\_elem\_read() calls under
CONFIG\_SND\_CTL\_DEBUG; without that option snd\_ctl\_skip\_validation() is a
compile-time true.  \_\_snd\_ctl\_add\_replace() validates kcontrol-\>count and
never inspects elem-\>channels.

Installing an oversized map needs CAP\_SYS\_RAWIO, but the control outlives
the hwdep descriptor that created it, so the out-of-bounds stores are
issued by any process able to read controls on /dev/snd/controlC0.

KASAN on 7.2.0-rc5 (arm64), triggered by an unprivileged control read:

  BUG: KASAN: slab-out-of-bounds in fcp\_meter\_ctl\_get
  Write of size 8 at addr ffff000017af04c8 by task fcp\_trigger/185
   \_\_asan\_store8
   fcp\_meter\_ctl\_get
   snd\_ctl\_elem\_read
   snd\_ctl\_ioctl
  Allocated by task 185:
   memdup\_user
   snd\_ctl\_ioctl
  The buggy address is located 0 bytes to the right of
   allocated 1224-byte region \[ffff000017af0000, ffff000017af04c8)

Bound the map size by the ABI limit rather than by 255, and bound the
store loop at the sink so it cannot run past the value array whatever
elem-\>channels holds.

Discovered by XBOW, triaged by Baul Lee \<baul.lee@xbow.com\>

## Affected and fixed versions

- Linux: \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< bb30e35c36ed00f24fa39aded811f64230a913b0; \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< bb61dc2ae59026f76db26e1909746908bc5b6f31; \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< 620f1e52a46f604635efd0fb78138afd6a513b5d (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 620f1e52a46f604635efd0fb78138afd6a513b5d or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-74640.md
Affected: Linux >= 46757a3e7d50dac923888e7fbe68377736f13c70, < bb30e35c36ed00f24fa39aded811f64230a913b0; >= 46757a3e7d50dac923888e7fbe68377736f13c70, < bb61dc2ae59026f76db26e1909746908bc5b6f31; >= 46757a3e7d50dac923888e7fbe68377736f13c70, < 620f1e52a46f604635efd0fb78138afd6a513b5d; Linux 6.14
Fixed in: Linux 620f1e52a46f604635efd0fb78138afd6a513b5d

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-74640 being exploited?

There is no confirmed exploitation: CVE-2026-74640 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< bb30e35c36ed00f24fa39aded811f64230a913b0; \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< bb61dc2ae59026f76db26e1909746908bc5b6f31; \>= 46757a3e7d50dac923888e7fbe68377736f13c70, \< 620f1e52a46f604635efd0fb78138afd6a513b5d; Linux 6.14.

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

Yes. Fixed in Linux 620f1e52a46f604635efd0fb78138afd6a513b5d. Upgrade Linux to 620f1e52a46f604635efd0fb78138afd6a513b5d or later.

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

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/bb30e35c36ed00f24fa39aded811f64230a913b0>
- other: <https://git.kernel.org/stable/c/bb61dc2ae59026f76db26e1909746908bc5b6f31>
- other: <https://git.kernel.org/stable/c/620f1e52a46f604635efd0fb78138afd6a513b5d>

## 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-74640>

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