CVE-2026-143385: 9p: fall back to the normal open path for non-regular files

Published Dec 3, 2026
·
Updated

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

9p: fall back to the normal open path for non-regular files

v9fsvfsatomicopen() and v9fsvfsatomicopendotl() call finishopen(file, dentry, genericfileopen) regardless of the file type the server reported for the created dentry. The supplied callback replaces fop->open in dodentryopen(), so blkdevopen() never runs for a server-reported device node: an open() with OCREAT succeeds with fop = defblkfops while fmapping still points at the 9p inode, because the bdev mapping swap only happens inside blkdevopen(). The block file methods then derive their blockdevice from that inode with IBDEV(); the loads land at the tail of a 656-byte v9fsinodecache object (offsets +624 and +632), which KASAN reports as slab-out-of-bounds, and the garbage they read is then dereferenced, so the first read(), write(), ioctl() or close() ends in a NULL pointer write and a panic. In the ioctl(BLKGETSIZE64) variant the value read this way is returned to userspace.

The server controls the file type reported for the create, so a malicious server can crash the client this way. KASAN report of the read() variant, on a build of linux-stable 2709dd5ae32f:

BUG: KASAN: slab-out-of-bounds in blkdevreaditer+0x3cd/0x440 Read of size 8 at addr ffff88800828ceb0 by task repro/1

Call Trace: <TASK> dumpstacklvl+0x7b/0xa0 printreport+0xd0/0x630 kasanreport+0xe5/0x120 blkdevreaditer+0x3cd/0x440 vfsread+0x718/0xa50 ksysread+0x10f/0x200 dosyscall64+0xdd/0x4a0 entrySYSCALL64afterhwframe+0x77/0x7f </TASK>

The buggy address belongs to the object at ffff88800828cc40 which belongs to the cache v9fsinodecache of size 656 The buggy address is located 624 bytes inside of allocated 656-byte region [ffff88800828cc40, ffff88800828ced0)

A plain open() without OCREAT is not affected: it runs blkdevopen() and either maps the device correctly or fails with -ENXIO for an rdev with no registered device. When the created inode is not a regular file, clunk the fid the create opened. The unopened fid is already on the dentry. Set FMODECREATED and return finishnoopen(file, NULL) so the VFS keeps its dentry reference and calls the inode's ->open. Regular files still use finishopen() with genericfileopen.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=4.19.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 6.12.120
  2. Upgrade

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

    Fixed in 6.18.66
  3. Upgrade

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

    Fixed in 7.3.7
  4. Compensating control

    In v9fs_vfs_atomic_open() and v9fs_vfs_atomic_open_dotl(), use finish_open(file, dentry, generic_file_open) only for regular files. For a non-regular created inode, clunk the fid opened by create, set FMODE_CREATED, and return finish_no_open(file, NULL) so the normal open path handles it.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description
Data Sourced
via OSV·09:22 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Linux clients using 9p against an untrusted or malicious server are exposed when that server can control the file type reported for a newly created dentry. The affected path involves creation with O_CREAT where the server reports a device node.

2

What is required to trigger the failure, and what is the impact?

An attacker-controlled 9p server must cause an open with O_CREAT to succeed for a server-reported device node. A subsequent read(), write(), ioctl(), or close() can dereference invalid data and cause a NULL pointer write and kernel panic; BLKGETSIZE64 may also return a value derived from invalid memory to userspace.

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