Out-of-bounds write in Linux kernel 9p caches_show() sysfs handler
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
In the Linux kernel, the 9p filesystem's caches_show() sysfs handler writes past the end of the sysfs buffer. It appends cache tags with snprintf() and advances the offset by the return value, which is the would-have-been length rather than the bytes stored, so once output exceeds PAGE_SIZE the destination pointer and size go out of bounds. The sources do not report exploitation.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.10.247 to before 5.10.275; 5.15.197 to before 5.15.226; 6.1.159 to before 6.1.193; 6.6.117 to before 6.6.163; 6.12.58 to before 6.12.118; 5.4.302 to before 5.5; 6.17.8 to before 6.18 | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 5.5, 6.18 | Patch available | CNA |
| Linux | Linux | 6.18 and later | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.5, 7.4-rc2 | Patch available | CNA |
- Linux VendorLinux Affected 5.10.247 to before 5.10.275; 5.15.197 to before 5.15.226; 6.1.159 to before 6.1.193; 6.6.117 to before 6.6.163; 6.12.58 to before 6.12.118; 5.4.302 to before 5.5; 6.17.8 to before 6.18 Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 5.5, 6.18 Patch available CNA
- Linux VendorLinux Affected 6.18 and later Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.5, 7.4-rc2 Patch available CNA
Remediation
Linux kernel 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 5.5 and 6.18 contain the fix, and 6.18.64, 7.3.5 and 7.4-rc2 also contain it for the second affected range. Affected ranges are from 5.10.247 before 5.10.275, from 5.15.197 before 5.15.226, from 6.1.159 before 6.1.193, from 6.6.117 before 6.6.163, from 6.12.58 before 6.12.118, from 5.4.302 before 5.5, and from 6.17.8 before 6.18.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 5.5, 6.18
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.5, 7.4-rc2
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-12-03 Threatist record created from CVE-2026-142881
- 2026-12-03 Alias added: GHSA-p9xv-24v5-75c2
- 2026-12-03 Affected versions changed · Red Hat
- 2026-12-03 CVSS score added · Red Hat
References
Other 8
- https://git.kernel.org/stable/c/b19ab2ad8fdd72bc10da6f624f2f0533f8cf95ed
- 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/ca1f5490b88cbc5a8f8c5ca9468a139b172b0ca8
- https://git.kernel.org/stable/c/daafe568c006de0364d317ada53fdd490305ea10
- https://git.kernel.org/stable/c/7c93625e382b1198dcda6777ba95d70480fff848
- https://git.kernel.org/stable/c/2acd800de8827b7cdce8cb5c2c63b8e8608ec8e3
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-142881 · CVE Program
- CVE-2026-142881 · NVD
- FIRST EPSS
- GHSA-p9xv-24v5-75c2 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-142881 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences