Servers and applications
CVE-2026-142881
9p: fix caches_show() out-of-bounds write
- Severity
- Unrated
- Published
- 3 Dec 2026
- Last changed
- 3 Dec 2026
- Added to UpHeron
- 3 Dec 2026
- Fixed in
- 6.1.193, 6.6.163, 6.12.118, 6.18, 6.18.64, 7.3.5
- Sources
- CVE Program
Description
In the Linux kernel, the following vulnerability has been resolved:
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.
Affected software
| Software | Affected versions |
|---|---|
Linux kernelServers and applications · cna:linux|linux |
All 14 release lines
|
About Linux kernel
Unix-like operating system kernel, basis for all Linux operating systems
- GitHub stars
- 257,106GitHub, 29 Nov 2026
- Forks
- 66,781GitHub, 29 Nov 2026
- Developer
- Linus TorvaldsWikidata
- License
- GNU General Public License, version 2.0Wikidata
- Written in
- CWikidata
- First released
- 25 Aug 1991Wikidata
- First published on GitHub
- 4 Sept 2011GitHub
Vulnerabilities in Linux kernel
- In our list
- 4,233
- Published in the last 12 months
- 4,233
- Critical, last 12 months
- 108
- High, last 12 months
- 669
- Known exploited
- 0
- CVE-2026-142887PCI: cadence: Store the core controller in platform drvdataUnrated 3 Dec 2026
- CVE-2026-142886media: ipu6: Fix firmware config leak on stream startUnrated 3 Dec 2026
- CVE-2026-142885xfs: check for buffer overruns when examining local/remote xattr entriesUnrated 3 Dec 2026
- CVE-2026-142884NFSD: Complete a cld upcall when the daemon closes the pipeUnrated 3 Dec 2026
- CVE-2026-142883io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exitUnrated 3 Dec 2026
- CVE-2026-142882net/9p/usbg: clear stale request context after abortUnrated 3 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142881