All vulnerabilities

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.

From the CVE Program.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.3.5
  • From 6.18 before 5.10.275
  • From 6.17.8 before 6.18
  • From 6.13 before 6.18.64
All 14 release lines
  • From 5.4.302 before 5.5
  • From 5.10.247 before 5.10.275
  • From 5.11 before 5.15.226
  • From 5.15.197 before 5.15.226
  • From 5.16 before 6.1.193
  • From 6.1.159 before 6.1.193
  • From 6.2 before 6.6.163
  • From 6.6.117 before 6.6.163
  • From 6.7 before 6.12.118
  • From 6.12.58 before 6.12.118
  • From 6.13 before 6.18.64
  • From 6.17.8 before 6.18
  • From 6.18 before 5.10.275
  • From 6.19 before 7.3.5

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
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

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142881