CVE-2026-98120: netfs: Fix subreq ref leak
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix subreq ref leak
Fix a subrequest ref leak in netfs_unbuffered_write() in the event that subreq->io_iter ends up zero length during preparation.
The Linux kernel CVE team has assigned CVE-2026-98120 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.18.17 with commit 72d08d2839649d1c5efbe375751f4473fa4486af and fixed in 6.18.53 with commit ebefb12122d1319257ecac01c1a928f78007716a Issue introduced in 7.0 with commit a0b4c7a49137ed21279f354eb59f49ddae8dffc2 and fixed in 7.2.7 with commit 0a573f4283a965a5e8716f621aec404cb4575328 Issue introduced in 7.0 with commit a0b4c7a49137ed21279f354eb59f49ddae8dffc2 and fixed in 7.3-rc3 with commit 3c30087e27598d9d359763e8be9bd3017fe08348 Issue introduced in 6.19.7 with commit 0c29f6d63122a0168d67cb8ecde5b4cf7fe4acb0
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98120
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/netfs/direct_write.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/ebefb12122d1319257ecac01c1a928f78007716a https://git.kernel.org/stable/c/0a573f4283a965a5e8716f621aec404cb4575328 https://git.kernel.org/stable/c/3c30087e27598d9d359763e8be9bd3017fe08348