CVE-2026-142881: 9p: fix caches_show() out-of-bounds write

Published Dec 3, 2026
·
Updated

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

9p: fix cachesshow() 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 PAGESIZE, 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 sizet into snprintf(), leading to an out-of-bounds write.

Use sysfsemitat() 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

10 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.4.302<5.5
5.5
linux/kernel>=5.10.247<5.10.275
5.10.275
linux/kernel>=5.15.197<5.15.226
5.15.226
linux/kernel>=6.1.159<6.1.193
6.1.193
linux/kernel>=6.6.117<6.6.163
6.6.163
linux/kernel>=6.12.58<6.12.118
6.12.118
linux/kernel>=6.17.8<6.18
6.18
linux/kernel>=6.18.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.5
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.275
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18
  8. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  9. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  10. Compensating control

    In the /sys/fs/9p/caches sysfs show handler, use sysfs_emit_at() to append cache tags instead of snprintf().

Event History

Dec 3, 2026
CVE Published
via MITRE·03:23 AM
Data Sourced
via MITRE·03:23 AM
Description
Data Sourced
via OSV·03:23 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203