CVE-2026-72366: netfs: Fix netfs_create_write_req() to handle async cache object creation
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix netfs_create_write_req() to handle async cache object creation
netfs_create_write_req() will skip caching if the fscache cookie is disabled, but this is a problem because async cache object creation might not have got far enough yet that has been enabled - thereby causing the call to fscache_begin_write_operation() to be skipped.
Fix this by removing the checks on the cookie and delegating this to fscache_begin_write_operation().
The Linux kernel CVE team has assigned CVE-2026-72366 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 7b589a9b45ae32aa9d7bece597490e141198d7a6 and fixed in 6.18.40 with commit 8ab75e445c161c4cb504aa98e20ce1dd1ecd8e9a Issue introduced in 6.11 with commit 7b589a9b45ae32aa9d7bece597490e141198d7a6 and fixed in 7.1.5 with commit 1188a9846fadeacf9d1430b528e5217f749d665b Issue introduced in 6.11 with commit 7b589a9b45ae32aa9d7bece597490e141198d7a6 and fixed in 7.2-rc2 with commit dbd6f56d975b23241b7bbb11bb8f562af548a0aa
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-72366
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/write_issue.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/8ab75e445c161c4cb504aa98e20ce1dd1ecd8e9a https://git.kernel.org/stable/c/1188a9846fadeacf9d1430b528e5217f749d665b https://git.kernel.org/stable/c/dbd6f56d975b23241b7bbb11bb8f562af548a0aa