# CVE-2026-23199: procfs: avoid fetching build ID while holding VMA lock

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-02-14T16:27:24.326Z
- **Modified:** 2026-06-17T10:21:05.097Z

## Who should check

- Anyone running Linux \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< b9b97e6aeb534315f9646b2090d1a5024c6a4e82; \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< cbc03ce3e6ce7e21214c3f02218213574c1a2d08; \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< b5cbacd7f86f4f62b8813688c8e73be94e8e1951
- Anyone running Linux 6.11

## Description

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

procfs: avoid fetching build ID while holding VMA lock

Fix PROCMAP\_QUERY to fetch optional build ID only after dropping mmap\_lock
or per-VMA lock, whichever was used to lock VMA under question, to avoid
deadlock reported by syzbot:

 -\> \#1 (&mm-\>mmap\_lock){++++}-{4:4}:
        \_\_might\_fault+0xed/0x170
        \_copy\_to\_iter+0x118/0x1720
        copy\_page\_to\_iter+0x12d/0x1e0
        filemap\_read+0x720/0x10a0
        blkdev\_read\_iter+0x2b5/0x4e0
        vfs\_read+0x7f4/0xae0
        ksys\_read+0x12a/0x250
        do\_syscall\_64+0xcb/0xf80
        entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

 -\> \#0 (&sb-\>s\_type-\>i\_mutex\_key\#8){++++}-{4:4}:
        \_\_lock\_acquire+0x1509/0x26d0
        lock\_acquire+0x185/0x340
        down\_read+0x98/0x490
        blkdev\_read\_iter+0x2a7/0x4e0
        \_\_kernel\_read+0x39a/0xa90
        freader\_fetch+0x1d5/0xa80
        \_\_build\_id\_parse.isra.0+0xea/0x6a0
        do\_procmap\_query+0xd75/0x1050
        procfs\_procmap\_ioctl+0x7a/0xb0
        \_\_x64\_sys\_ioctl+0x18e/0x210
        do\_syscall\_64+0xcb/0xf80
        entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

 other info that might help us debug this:

  Possible unsafe locking scenario:

        CPU0                    CPU1
        ----                    ----
   rlock(&mm-\>mmap\_lock);
                                lock(&sb-\>s\_type-\>i\_mutex\_key\#8);
                                lock(&mm-\>mmap\_lock);
   rlock(&sb-\>s\_type-\>i\_mutex\_key\#8);

  \*\*\* DEADLOCK \*\*\*

This seems to be exacerbated (as we haven't seen these syzbot reports
before that) by the recent:

	777a8560fd29 ("lib/buildid: use \_\_kernel\_read() for sleepable context")

To make this safe, we need to grab file refcount while VMA is still locked, but
other than that everything is pretty straightforward. Internal build\_id\_parse()
API assumes VMA is passed, but it only needs the underlying file reference, so
just add another variant build\_id\_parse\_file() that expects file passed
directly.

\[akpm@linux-foundation.org: fix up kerneldoc\]

## Affected and fixed versions

- Linux: \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< b9b97e6aeb534315f9646b2090d1a5024c6a4e82; \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< cbc03ce3e6ce7e21214c3f02218213574c1a2d08; \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< b5cbacd7f86f4f62b8813688c8e73be94e8e1951 (cvelist)
- Linux: 6.11 (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-23199. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23199.md
Affected: Linux >= ed5d583a88a9207b866c14ba834984c6f3c51d23, < b9b97e6aeb534315f9646b2090d1a5024c6a4e82; >= ed5d583a88a9207b866c14ba834984c6f3c51d23, < cbc03ce3e6ce7e21214c3f02218213574c1a2d08; >= ed5d583a88a9207b866c14ba834984c6f3c51d23, < b5cbacd7f86f4f62b8813688c8e73be94e8e1951; Linux 6.11
Fixed in: no fixed version listed yet

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< b9b97e6aeb534315f9646b2090d1a5024c6a4e82; \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< cbc03ce3e6ce7e21214c3f02218213574c1a2d08; \>= ed5d583a88a9207b866c14ba834984c6f3c51d23, \< b5cbacd7f86f4f62b8813688c8e73be94e8e1951; Linux 6.11.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/b9b97e6aeb534315f9646b2090d1a5024c6a4e82>
- patch: <https://git.kernel.org/stable/c/cbc03ce3e6ce7e21214c3f02218213574c1a2d08>
- patch: <https://git.kernel.org/stable/c/b5cbacd7f86f4f62b8813688c8e73be94e8e1951>

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

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