CVE-2026-142881 9p: fix caches_show() out-of-bounds write
linux linux: no CVSS score yet. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
On this page
In the Linux kernel, the following vulnerability has been resolved:
9p: fix caches_show() out-of-bounds write
The sysfs show handler for /sys/fs/9p/caches appends cache tags with
snprintf(buf + count, limit, ...) and then advances count and limit by
the return value. This is incorrect for truncation because snprintf()
returns the full would-have-been length, not the number of bytes stored.
Once the accumulated output exceeds PAGE_SIZE, count can advance past
the sysfs buffer and limit can become negative. A later iteration then
passes an out-of-bounds destination pointer and an oversized size_t
into snprintf(), leading to an out-of-bounds write.
Use sysfs_emit_at() for the append instead. It follows the sysfs buffer
contract and returns the number of bytes actually stored, so the offset
remains bounded even when the output is truncated.
- EPSS
- 0.3% estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-12-03. A forecast for this CVE across the internet, not for your own systems.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Awaiting analysis
- Record from
- the NVD, synced
Fix and patched versions
- Linux Linux: fixed in 5.10.275
- Linux Linux: fixed in 5.15.226
- Linux Linux: fixed in 6.1.193
- Linux Linux: fixed in 6.6.163
- Linux Linux: fixed in 6.12.118
- Linux Linux: fixed in 6.18.64
- Linux Linux: fixed in 7.3.5
- Linux Linux: fixed in 7.4-rc2
- Debian: fixed package versions per release
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-142881 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-142881?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-142881?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-142881 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | from 5.10.247 before 5.10.275 |
| Linux | from 5.15.197 before 5.15.226 |
| Linux | from 6.1.159 before 6.1.193 |
| Linux | from 6.6.117 before 6.6.163 |
| Linux | from 6.12.58 before 6.12.118 |
| Linux | from 5.4.302 before 5.5 |
| Linux | from 6.17.8 before 6.18 |
| Linux | 6.18 and later |
Fixed in
| Product | Release line | Fixed in |
|---|---|---|
| Linux | 5.10 | 5.10.275 |
| Linux | 5.15 | 5.15.226 |
| Linux | 6.1 | 6.1.193 |
| Linux | 6.6 | 6.6.163 |
| Linux | 6.12 | 6.12.118 |
| Linux | 6.18 | 6.18.64 |
| Linux | 7.3 | 7.3.5 |
| Linux | later releases | 7.4-rc2 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | linux | no fix listed | DEBIAN-CVE-2026-142881 |
| Debian | 13 | linux | 6.12.118-1 | DEBIAN-CVE-2026-142881 |
| Debian | 14 | linux | 7.3.5-1 | DEBIAN-CVE-2026-142881 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
References
- https://git.kernel.org/stable/c/13fd735c0e2e849f3d2c18b7cde817367bba8870
- https://git.kernel.org/stable/c/142f0f3fd42d526a623a94e69c99c4bc0a9f1c6e
- https://git.kernel.org/stable/c/20257ac733d8607c58358b0849c3c6a2928c4179
- https://git.kernel.org/stable/c/2acd800de8827b7cdce8cb5c2c63b8e8608ec8e3
- https://git.kernel.org/stable/c/7c93625e382b1198dcda6777ba95d70480fff848
- https://git.kernel.org/stable/c/b19ab2ad8fdd72bc10da6f624f2f0533f8cf95ed
- https://git.kernel.org/stable/c/ca1f5490b88cbc5a8f8c5ca9468a139b172b0ca8
- https://git.kernel.org/stable/c/daafe568c006de0364d317ada53fdd490305ea10