cifs: call pagecache_isize_extended() in cifs_setsize() when extending
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < c510edb9734af1c274d18f4f31a471a166bbc7e8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cifs: call pagecache_isize_extended() in cifs_setsize() when extending
cifs_setsize() calls truncate_pagecache() but skips pagecache_isize_extended() on extension. truncate_setsize() shows the correct pattern:
i_size_write(inode, newsize); if (newsize > oldsize) pagecache_isize_extended(inode, oldsize, newsize); truncate_pagecache(inode, newsize);
pagecache_isize_extended() zeroes the tail of the page straddling old EOF. Without it, dirty bytes in that region can be written back to the server, exposing stale data in the newly extended range.
From the CVE record · Linux
The Linux kernel's CIFS file-size handling does not zero the page-cache region after the old end of a file when extending it. Dirty bytes in that region can be written back to the server, exposing stale data in the newly extended range. The input does not specify authentication or user-interaction requirements.
Teams running Linux systems that use CIFS should check whether their kernel includes this fix; affected versions were not provided.