In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix streaming write being overwritten
In order to avoid reading whilst writing, netfslib will allow "streaming writes" in which dirty data is stored directly into folios without reading them first. Such folios are marked dirty but may not be marked uptodate. If a folio is entirely written by a streaming write, uptodate will be set, otherwise it will have a netfs_folio struct attached to ->private recording the dirty region.
In the event that a partially written streaming write page is to be overwritten entirely by a single write(), netfs_perform_write() will try to copy over it, but doesn't discard the netfs_folio if it succeeds; further, it doesn't correctly handle a partial copy that overwrites some of the dirty data.
Fix this by the following:
(1) If the folio is successfully overwritten, free the netfs_folio struct before marking the page uptodate.
(2) If the copy to the folio partially fails, but short of the dirty data, just ignore the copy.
(3) If the copy partially fails and overwrites some of the dirty data, accept the copy, update the netfs_folio struct to record the new data. If the folio is now filled, free the netfs_folio and set uptodate, otherwise return a partial write.
Found with:
fsx -q -N 1000000 -p 10000 -o 128000 -l 600000 \ /xfstest.test/junk --replay-ops=junk.fsxops
using the following as junk.fsxops:
truncate 0x0 0 0x927c0 write 0x63fb8 0x53c8 0 copy_range 0xb704 0x19b9 0x24429 0x79380 write 0x2402b 0x144a2 0x90660 * write 0x204d5 0x140a0 0x927c0 * copy_range 0x1f72c 0x137d0 0x7a906 0x927c0 * read 0x00000 0x20000 0x9157c read 0x20000 0x20000 0x9157c read 0x40000 0x20000 0x9157c read 0x60000 0x20000 0x9157c read 0x7e1a0 0xcfb9 0x9157c
on cifs with the default cache option.
It shows folio 0x24 misbehaving if the FMODE_READ check is commented out in netfs_perform_write():
if (//(file->f_mode & FMODE_READ) || netfs_is_cache_enabled(ctx)) {
and no fscache. This was initially found with the generic/522 xfstest.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade kernel-livepatch-6.18.35-68.127Upgrade kernel6.18-modules-extra-commonUpgrade perf6.18Upgrade bpftool6.18-debuginfoUpgrade bpftool6.18Upgrade kernel6.18-debuginfo-common-x86_64Upgrade kernel6.18-debuginfo-common-aarch64Upgrade python3-perf6.18-debuginfoUpgrade kernel6.18-tools-debuginfoUpgrade python3-perf6.18Upgrade kernel6.18-develUpgrade kernel6.18-headersUpgrade kernel6.18-debuginfoUpgrade perf6.18-debuginfoUpgrade microvm-kernel6.18Upgrade kernel6.18Upgrade kernel6.18-tools-develUpgrade kernel6.18-toolsUpgrade kernel6.18-modules-extra | Aug 10, 2026 | Jul 19, 2026 |
| Debian | — | Upgrade linux | Jul 23, 2026 | Jul 23, 2026 |
| Ubuntu | — | Upgrade linux-image-7.0.0-1010-ibmUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-1016-nvidia-64kUpgrade linux-image-nvidia-bosUpgrade linux-image-7.0.0-1016-nvidiaUpgrade linux-image-raspi-realtimeUpgrade linux-image-oracle-64kUpgrade linux-image-ibmUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-7.0.0-1008-oracleUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-7.0.0-1009-aws-64kUpgrade linux-image-gcpUpgrade linux-image-nvidia-64kUpgrade linux-image-nvidia-bos-64kUpgrade linux-image-7.0.0-1015-raspiUpgrade linux-image-nvidia-bos-7.0Upgrade linux-image-azure-7.0Upgrade linux-image-nvidia-64k-7.0Upgrade linux-image-nvidia-7.0Upgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-nvidiaUpgrade linux-image-raspiUpgrade linux-image-ibm-7.0Upgrade linux-image-aws-64kUpgrade linux-image-7.0.0-1011-oracleUpgrade linux-image-azureUpgrade linux-image-7.0.0-1011-oracle-64kUpgrade linux-image-7.0.0-2016-nvidia-bosUpgrade linux-image-oracle-7.0Upgrade linux-image-gcp-64kUpgrade linux-image-7.0.0-1010-azureUpgrade linux-image-gcp-64k-7.0Upgrade linux-image-7.0.0-1008-oracle-64kUpgrade linux-image-aws-64k-7.0Upgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-oracleUpgrade linux-image-azure-fdeUpgrade linux-image-awsUpgrade linux-image-7.0.0-1014-azureUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-raspi-7.0Upgrade linux-image-oracle-64k-7.0Upgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-1015-raspi-realtimeUpgrade linux-image-7.0.0-1009-awsUpgrade linux-image-7.0.0-1009-azure-fdeUpgrade linux-image-azure-fde-7.0Upgrade linux-image-7.0.0-2016-nvidia-bos-64k | Jul 21, 2026 | Jul 20, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Aug 3, 2026 | Jul 19, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub