CVE-2026-143385

Not scored yetLast modified Dec 3, 2026

Description

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

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

v9fs_vfs_atomic_open() and v9fs_vfs_atomic_open_dotl() call finish_open(file, dentry, generic_file_open) regardless of the file type the server reported for the created dentry. The supplied callback replaces f_op->open in do_dentry_open(), so blkdev_open() never runs for a server-reported device node: an open() with O_CREAT succeeds with f_op = def_blk_fops while f_mapping still points at the 9p inode, because the bdev mapping swap only happens inside blkdev_open(). The block file methods then derive their block_device from that inode with I_BDEV(); the loads land at the tail of a 656-byte v9fs_inode_cache 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 blkdev_read_iter+0x3cd/0x440 Read of size 8 at addr ffff88800828ceb0 by task repro/1

Call Trace: <TASK> dump_stack_lvl+0x7b/0xa0 print_report+0xd0/0x630 kasan_report+0xe5/0x120 blkdev_read_iter+0x3cd/0x440 vfs_read+0x718/0xa50 ksys_read+0x10f/0x200 do_syscall_64+0xdd/0x4a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK>

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

A plain open() without O_CREAT is not affected: it runs blkdev_open() 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 FMODE_CREATED and return finish_no_open(file, NULL) so the VFS keeps its dentry reference and calls the inode's ->open. Regular files still use finish_open() with generic_file_open.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= be12af3ef5e61ebc44d065e121424ac605d7bb8e, < 72ab1bd143aad722b52425f26a64eeba4072de70; >= be12af3ef5e61ebc44d065e121424ac605d7bb8e, < 74234c84243d3b67648193364c2f22c47082f067; >= be12af3ef5e61ebc44d065e121424ac605d7bb8e, < c4df44124ece4f0dc92b3c18598add65b4abf5b4; >= be12af3ef5e61ebc44d065e121424ac605d7bb8e, < ff1baa01a6e1f24741f7428119e6f3a61b995604
LinuxLinux4.19

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-143386In the Linux kernel, the following vulnerability has been resolved: scsi: core: Balance the pseudo target reap reference With memory allocCVE-2026-143387In the Linux kernel, the following vulnerability has been resolved: scsi: scsi_debug: Drain target cleanup before module exit Target destrCVE-2026-143388In the Linux kernel, the following vulnerability has been resolved: dma-buf: Restore the scatterlist entry count before freeing dma_buf_phCVE-2026-143389In the Linux kernel, the following vulnerability has been resolved: ntfs: Fix error handling in __ntfs_create() In __ntfs_create(), if ntfCVE-2026-143390In the Linux kernel, the following vulnerability has been resolved: wifi: ath12k: Fix failure to create ath12k_dp_peer on MLO reconnect InCVE-2026-143391In the Linux kernel, the following vulnerability has been resolved: fsnotify: preserve 64-bit pre-content ranges vfs_fallocate() and remapCVE-2026-143392In the Linux kernel, the following vulnerability has been resolved: xfrm: fix hw offload state leak on xfrm_do_migrate_state() error path CVE-2026-143393In the Linux kernel, the following vulnerability has been resolved: xfrm: fix use-after-free of migrated state in xfrm_do_migrate_state() CVE-2026-143394In the Linux kernel, the following vulnerability has been resolved: xfrm: zero-initialise km_event in the replay-notify path xfrm_replay_nCVE-2026-143395In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: Fix use-after-free on usb9pfs_clear_tx When p9_usbg_closeCVE-2026-143396In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: fix descriptor cleanup use-after-free usb9pfs_free_func()CVE-2026-143397In the Linux kernel, the following vulnerability has been resolved: 9p: use fc->net_ns for network namespace in RDMA and socket transports
CVE-2026-143385: Unscored | Vulnix