Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98119 Overview
CVE-2026-98119 is a null pointer dereference vulnerability in the Linux kernel's network filesystem (netfs) subsystem. The flaw occurs in the unbuffered write path when netfs_alloc_subrequest() fails to allocate a subrequest structure. The kernel does not propagate this allocation failure correctly, allowing netfs_prepare_write() to proceed with a NULL subreq pointer. The function then attempts to initialize members such as source on the NULL pointer, triggering a kernel crash. The issue was discovered by syzbot through fault injection testing in netfs_alloc_subrequest() and affects filesystems that rely on the netfs library, including 9p.
Critical Impact
Local processes performing unbuffered writes to a netfs-backed filesystem can trigger a kernel null pointer dereference, leading to denial of service through kernel panic.
Affected Products
- Linux kernel netfs subsystem (fs/netfs/direct_write.c, fs/netfs/write_issue.c)
- 9P filesystem client (fs/9p/vfs_file.c)
- Network filesystems using the netfs library for unbuffered writes
Discovery Timeline
- 2026-09-25 - CVE-2026-98119 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98119
Vulnerability Analysis
The vulnerability resides in the netfs unbuffered write path. When user space issues a write through vfs_write() on a 9p file, the kernel calls v9fs_file_write_iter(), which eventually invokes netfs_unbuffered_write() in fs/netfs/direct_write.c. This function calls netfs_prepare_write(), which in turn relies on netfs_alloc_subrequest() to allocate a subrequest structure.
Under memory pressure or fault injection, netfs_alloc_subrequest() returns NULL. The caller does not check this return value before passing the NULL subreq to netfs_prepare_write(). The prepare function then dereferences fields such as source at offset 0xa8, producing a KASAN-reported null-ptr-deref in the range [0x00000000000000a8-0x00000000000000af].
The fix adjusts netfs_unbuffered_write() to detect the error from netfs_prepare_write() and break the write loop instead of continuing with an uninitialized subrequest.
Root Cause
The root cause is missing error handling after allocation failure. The caller treats the subrequest pointer as always valid and proceeds to initialize its members. This represents a Null Pointer Dereference condition in kernel code, categorized as a Kernel Vulnerability.
Attack Vector
Triggering the condition requires a local process capable of issuing unbuffered writes to a netfs-backed mount, combined with conditions that cause the slab allocation to fail. This is reproducible synthetically via fault injection but may also occur naturally under severe memory pressure. Successful triggering results in a kernel crash and system-wide denial of service. See the upstream patches for implementation details:
Detection Methods for CVE-2026-98119
Indicators of Compromise
- Kernel oops or panic messages referencing netfs_prepare_write+0xbc/0x7b0 in call traces.
- KASAN reports of null-ptr-deref in the address range [0x00000000000000a8-0x00000000000000af] originating from fs/netfs/write_issue.c.
- Call stacks involving netfs_unbuffered_write, netfs_unbuffered_write_iter_locked, and v9fs_file_write_iter.
Detection Strategies
- Monitor dmesg and /var/log/kern.log for kernel traces that include netfs_alloc_subrequest followed by a fault in netfs_prepare_write.
- Correlate unexpected system reboots or kernel panics on hosts mounting 9p or other netfs-backed filesystems with memory pressure events.
- Audit kernel versions across the fleet against the three stable commits listed in the upstream references to identify unpatched hosts.
Monitoring Recommendations
- Enable persistent kernel crash collection using kdump or pstore on hosts running netfs-backed workloads.
- Track slab allocation failures via /proc/vmstat counters such as allocstall and oom_kill to identify systems operating under memory pressure.
- Alert on repeated 9p filesystem I/O errors or process termination patterns that may indicate kernel-side write failures.
How to Mitigate CVE-2026-98119
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in the stable commits 19f246c, 8fb45a9, and cf6f93b.
- Update to the distribution kernel package that incorporates the netfs fix once released by your vendor.
- Restrict access to 9p mounts and other netfs-backed filesystems on multi-tenant hosts until patching is complete.
Patch Information
The fix adds proper error handling to netfs_unbuffered_write() so that a failure from netfs_prepare_write() breaks the write loop before any NULL pointer is dereferenced. Three stable branches received the fix in commits 19f246c, 8fb45a9, and cf6f93b. Rebuild and reboot into the patched kernel to apply the fix.
Workarounds
- Avoid mounting 9p or other netfs-backed filesystems on systems that cannot be patched promptly.
- Reduce the likelihood of allocation failure by ensuring adequate free memory and reasonable vm.min_free_kbytes tuning on affected hosts.
- Disable fault injection frameworks on production systems to prevent synthetic triggering of the condition.
# Verify running kernel version and check for the netfs fix
uname -r
grep -r "netfs_prepare_write" /proc/kallsyms
# Confirm your distribution kernel includes one of the fix commits:
# 19f246c795e940dc5f11cd5bc0cb1e81bc7b7090
# 8fb45a934661419c04a44d4cfea1e0df7dcf2805
# cf6f93b8b06acf57de62dacbe71a3b99c68656a7
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

