netfs: Fix partial invalidation of streaming-write folio
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix partial invalidation of streaming-write folio
In netfs_invalidate_folio(), if the region of a partial invalidation overlaps the front (but not all) of a dirty write cached in a streaming write page (dirty, but not uptodate, with the dirty region tracked by a netfs_folio struct), the function modifies the dirty region - but incorrectly as it moves the region forward by setting the start to the start, not the end, of the invalidation region.
Fix this by setting finfo->dirty_offset to the end of the invalidation region (iend).
From the CVE record · Linux
The Linux kernel’s netfs code incorrectly updates the tracked dirty region when a partial invalidation overlaps the front, but not all, of a dirty streaming-write folio. This can leave the dirty-region offset incorrect; the input does not specify an attacker action, access requirements, or user interaction.
Engineers running Linux kernels with the affected netfs code should check their kernel versions; affected versions are not specified.