# CVE-2026-98116: ALSA: pcm: Serialize PCM mmap with buffer reallocation to fix page UAF

> 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)
- **CWE:** CWE-416
- **Published:** 2026-09-25T10:36:01.723Z
- **Modified:** 2026-10-28T16:10:22.600Z

## Who should check

- Anyone running Linux \>= 33061d0fba51d2bf70a2ef9645f703c33fe8e438, \< e6cdd2a0470d64073349a970dc1691433804b271; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 9857a75714bb5df4781e4d8b1a1753b1e17bf07a; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< cbadf2575d25e7dcc0d4da2717817ae569fbc99b; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< cbc7ec97601d09b74e05e44470fa6b0bcdabf3f5; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< fd137bf8149bc6460f9b7b1fc292025da04cb9ee; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 8c1882dfee8f404d118020664b73eb4592172226; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 9b110a9dcecc59516c77cb3c0caf1f492f75df2d; a42aa926843acca96c0dfbde2e835b8137f2f092; 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; fbeb492694ce0441053de57699e1e2b7bc148a69; …
- Anyone running Linux 5.18

## Description

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

ALSA: pcm: Serialize PCM mmap with buffer reallocation to fix page UAF

snd\_pcm\_hw\_params() and snd\_pcm\_hw\_free() guard buffer reallocation
with an mmap\_count check performed under the PCM stream lock, but the
lock is released long before the buffer is actually freed:
snd\_pcm\_sync\_stop(), constraint refinement and do\_free\_pages() all
happen in between.  snd\_pcm\_mmap\_data(), on the other hand, takes no
lock at all: it validates against the old buffer's state and
dma\_bytes, remaps its pages into the VMA, and only then increments
mmap\_count.

A concurrent mmap() can therefore slip in between the check and the
free.  remap\_pfn\_range() installs writable PTEs for the old buffer's
pages without taking page references, and the subsequent
do\_free\_pages() returns those pages to the page allocator while the
VMA still maps them.  This leaves a stale, writable mapping of freed
pages: a page-level use-after-free that can be leveraged for local
privilege escalation.

Make snd\_pcm\_mmap\_data() participate in the buffer-access scheme
introduced for hw\_params/hw\_free: acquire runtime-\>buffer\_accessing
before validating and remapping, and release it afterwards.  Buffer
reallocation already fails with -EBUSY while accessors are active,
and the mmap side now fails with -EBUSY while a reallocation is in
progress, so the validate/remap sequence and the check/free sequence
can no longer interleave.

A reproducer that turns this race into a stale writable mapping of
the freed DMA buffer pages is available on request.

## Affected and fixed versions

- Linux: \>= 33061d0fba51d2bf70a2ef9645f703c33fe8e438, \< e6cdd2a0470d64073349a970dc1691433804b271; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 9857a75714bb5df4781e4d8b1a1753b1e17bf07a; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< cbadf2575d25e7dcc0d4da2717817ae569fbc99b; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< cbc7ec97601d09b74e05e44470fa6b0bcdabf3f5; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< fd137bf8149bc6460f9b7b1fc292025da04cb9ee; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 8c1882dfee8f404d118020664b73eb4592172226; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 9b110a9dcecc59516c77cb3c0caf1f492f75df2d; a42aa926843acca96c0dfbde2e835b8137f2f092; 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; fbeb492694ce0441053de57699e1e2b7bc148a69; … (cvelist)
- Linux: 5.18 (cvelist)

## 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-98116. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98116.md
Affected: Linux >= 33061d0fba51d2bf70a2ef9645f703c33fe8e438, < e6cdd2a0470d64073349a970dc1691433804b271; >= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, < 9857a75714bb5df4781e4d8b1a1753b1e17bf07a; >= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, < cbadf2575d25e7dcc0d4da2717817ae569fbc99b; >= 92ee3c60ec9fe64404dc035…
Fixed in: Linux 9857a75714bb5df4781e4d8b1a1753b1e17bf07a, Linux 8c1882dfee8f404d118020664b73eb4592172226, Linux 9b110a9dcecc59516c77cb3c0caf1f492f75df2d

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

There is no confirmed exploitation: CVE-2026-98116 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-98116?

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

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

Linux \>= 33061d0fba51d2bf70a2ef9645f703c33fe8e438, \< e6cdd2a0470d64073349a970dc1691433804b271; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 9857a75714bb5df4781e4d8b1a1753b1e17bf07a; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< cbadf2575d25e7dcc0d4da2717817ae569fbc99b; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< cbc7ec97601d09b74e05e44470fa6b0bcdabf3f5; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< fd137bf8149bc6460f9b7b1fc292025da04cb9ee; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 8c1882dfee8f404d118020664b73eb4592172226; \>= 92ee3c60ec9fe64404dc035e7c41277d74aa26cb, \< 9b110a9dcecc59516c77cb3c0caf1f492f75df2d; a42aa926843acca96c0dfbde2e835b8137f2f092; 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; fbeb492694ce0441053de57699e1e2b7bc148a69; …; Linux 5.18.

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

Yes. Fixed in Linux 9857a75714bb5df4781e4d8b1a1753b1e17bf07a, Linux 8c1882dfee8f404d118020664b73eb4592172226, Linux 9b110a9dcecc59516c77cb3c0caf1f492f75df2d. No fix listed yet: follow the vendor advisory.

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

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

- patch: <https://git.kernel.org/stable/c/e6cdd2a0470d64073349a970dc1691433804b271>
- patch: <https://git.kernel.org/stable/c/9857a75714bb5df4781e4d8b1a1753b1e17bf07a>
- patch: <https://git.kernel.org/stable/c/cbadf2575d25e7dcc0d4da2717817ae569fbc99b>
- patch: <https://git.kernel.org/stable/c/cbc7ec97601d09b74e05e44470fa6b0bcdabf3f5>
- patch: <https://git.kernel.org/stable/c/fd137bf8149bc6460f9b7b1fc292025da04cb9ee>
- patch: <https://git.kernel.org/stable/c/8c1882dfee8f404d118020664b73eb4592172226>
- patch: <https://git.kernel.org/stable/c/9b110a9dcecc59516c77cb3c0caf1f492f75df2d>

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

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