Skip to main content
Vulnerability Database/CVE-2026-98120

CVE-2026-98120: Linux Kernel Netfs Reference Leak Flaw

CVE-2026-98120 is a reference leak flaw in the Linux kernel netfs subsystem that can cause resource exhaustion. This post explains its technical details, affected versions, impact, and mitigation steps.

Published:

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-98120 Overview

CVE-2026-98120 is a memory leak vulnerability in the Linux kernel's network filesystem (netfs) subsystem. The flaw resides in the netfs_unbuffered_write() function, which fails to release a subrequest reference when subreq->io_iter ends up zero length during preparation. Over time, repeated unbuffered write operations hitting this code path can leak kernel memory references and degrade system stability.

The issue was resolved upstream through patches committed to the stable kernel tree. No active exploitation has been reported, and no CVSS score has been published for this entry.

Critical Impact

Repeated triggering of the leaking code path during unbuffered writes on netfs-backed filesystems can exhaust kernel resources and cause reliability degradation on affected hosts.

Affected Products

  • Linux kernel versions containing the netfs_unbuffered_write() subrequest preparation logic prior to the fix
  • Distributions shipping affected stable kernels (consult downstream advisories)
  • Workloads using netfs-backed network filesystems such as those relying on the netfs library helpers

Discovery Timeline

  • 2026-09-25 - CVE-2026-98120 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98120

Vulnerability Analysis

The Linux kernel's netfs library provides shared infrastructure for network filesystems that perform buffered and unbuffered I/O. During an unbuffered write, the kernel splits the operation into subrequests and prepares each subrequest's iterator (io_iter) before dispatching the I/O.

When preparation of a subrequest results in an io_iter of zero length, netfs_unbuffered_write() returns without releasing the reference previously taken on the subrequest. Each occurrence leaks one netfs_io_subrequest reference, pinning the associated kernel object and its backing memory.

The leak is not directly exploitable for code execution. However, it is a correctness defect that affects long-running systems performing frequent unbuffered writes, and it has reliability implications for file-serving workloads.

Root Cause

The root cause is a missing reference drop on an early-exit path. The subrequest allocation increments a reference count, but the zero-length io_iter branch exits the function without the corresponding netfs_put_subrequest() call. The fix adds the missing release so the reference count correctly reaches zero when the subrequest is discarded.

Attack Vector

There is no documented remote or local attacker vector that converts this leak into privilege escalation. The condition is reached through normal unbuffered write paths on netfs-backed filesystems where subrequest preparation produces an empty iterator. Workloads or test harnesses that frequently drive writes down this path will accumulate leaked references and may eventually degrade system behavior.

No proof-of-concept code is published for this issue. See the upstream commits referenced below for the exact code paths involved: Kernel Git Commit 0a573f4, Kernel Git Commit 3c30087, and Kernel Git Commit ebefb12.

Detection Methods for CVE-2026-98120

Indicators of Compromise

  • No file-based or network IOCs apply; this is a kernel memory leak rather than a malware or intrusion signature.
  • Growth in kernel slab allocations tied to netfs_io_subrequest objects over time on hosts performing unbuffered writes to netfs-backed filesystems.

Detection Strategies

  • Compare installed kernel package versions against vendor advisories listing the backported fix commits (0a573f42, 3c30087e, ebefb121).
  • Monitor /proc/slabinfo for sustained growth in netfs-related caches on file-serving nodes.
  • Correlate memory pressure events with workloads that heavily exercise unbuffered write paths on network filesystems.

Monitoring Recommendations

  • Track long-term kernel memory usage trends on hosts that mount netfs-backed filesystems and alert on unexplained monotonic growth.
  • Review dmesg for memory allocation failures or OOM events on affected file-serving systems.
  • Include kernel version inventory data in configuration monitoring so unpatched hosts are visible to the security team.

How to Mitigate CVE-2026-98120

Immediate Actions Required

  • Identify Linux hosts running kernel versions that predate the referenced stable commits and prioritize them for patching.
  • Apply the vendor-provided kernel update that incorporates the netfs: Fix subreq ref leak patch.
  • Schedule reboots on affected systems to activate the patched kernel image.

Patch Information

The fix is available in upstream stable kernels through the following commits: 0a573f4283a9, 3c30087e2759, and ebefb12122d1. Consult your distribution's security tracker for the specific package version containing the backport for your kernel series.

Workarounds

  • No supported configuration workaround exists; the defect is in kernel code and requires a patched kernel.
  • Where patching is delayed, periodically restart affected services or reboot hosts to reclaim leaked kernel memory.
  • Avoid synthetic workloads that intentionally drive zero-length io_iter paths on unpatched systems.
bash
# Verify running kernel version against distribution advisories
uname -r
# Example: query installed kernel package metadata
# Debian/Ubuntu:
dpkg -l | grep linux-image
# RHEL/Fedora:
rpm -q kernel

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.