smb: client: discard post-EOF pagecache when extending a file via clone range
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel eba974d6c850e77db87f6f9ae343164227dffefc, Kernel 6.2, Kernel 6.7 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: smb: client: discard post-EOF pagecache when extending a file via clone range cifs_remap_file_range() discarded the pagecache only for the folios overlapping the destination region, so when a clone extends the file the folio straddling the old EOF - which may hold data dirtied past EOF through an mmap - was never dropped and became visible as file content once the file was extended. Start the discard at the smaller of fstart and the old EOF. i_size is still old here, so nothing past the old EOF is flushed to the server.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=c54fc3a4f375663f2361a9cbb2955fb4ef912879 <eba974d6c850e77db87f6f9ae343164227dffefc, >=6.1.68 <6.2, >=6.6.7 <6.7, >=c54fc3a4f375663f2361a9cbb2955fb4ef912879 <15bb9f1d3e967e328649e92a1451e60a0dc66118, >=c54fc3a4f375663f2361a9cbb2955fb4ef912879 <4721587f96cb8de8164f3fd203093a0875560999, >=c54fc3a4f375663f2361a9cbb2955fb4ef912879 <7beb2f2a58023b2ff28fd52bdb72bed74257ee04, =358bd5f436d820bb758833050aae065b35d6986c, =43801359c8971cc49b4a4db5015fba77fbd09c32, =6.7 | eba974d6c850e77db87f6f9ae343164227dffefc, 6.2, 6.7, 15bb9f1d3e967e328649e92a1451e60a0dc66118, 4721587f96cb8de8164f3fd203093a0875560999, 7beb2f2a58023b2ff28fd52bdb72bed74257ee04 |
| linux-kernel: Kernel | >=6.13.0 <6.18.61, >=6.19.0 <7.2.10, >=6.6.7 <6.7, >=6.7.0 <6.12.117, >=6.1.68 <6.2 | 6.18.61, 7.2.10, 6.7, 6.12.117, 6.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket