Bug 2589130 (CVE-2026-142881) - CVE-2026-142881 kernel: kernel: Out-of-bounds write via 9p sysfs caches handler
Summary: CVE-2026-142881 kernel: kernel: Out-of-bounds write via 9p sysfs caches handler
Keywords:
Status: NEW
Alias: CVE-2026-142881
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-03 04:56 UTC by OSIDB Bzimport
Modified: 2026-12-03 06:46 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-03 04:56:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.