Linux
f2fs: validate MOVE_RANGE destination size
In the Linux kernel, the following vulnerability has been resolved: f2fs: validate MOVE_RANGE destination size F2FS_IOC_MOVE_RANGE checks the source range, but not the destination end before updating i_size. A source hole can expose this: __clone_blkaddrs() skips NULL_ADDR entries and returns success, so the caller can still extend the destination inode with unchecked pos_out + len. Reject destination overflow and use inode_newsize_ok() before extending the destination inode.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4dd6f977fc778e5a0da604e5f8cb2f36d163d27b, < 454de20a5a36c000b75f49337aae8c92045c5242
- >= 4dd6f977fc778e5a0da604e5f8cb2f36d163d27b, < 54c587f3f95ce2d6932a16566db83f73cc4313e1
- >= 4dd6f977fc778e5a0da604e5f8cb2f36d163d27b, < bca61ee5192ea47003722486ae9588a2a4bb47b6
- >= 4dd6f977fc778e5a0da604e5f8cb2f36d163d27b, < db13064669526494cd78ba3a4394063b740e940c
- >= 4dd6f977fc778e5a0da604e5f8cb2f36d163d27b, < dcae1eeda53149f219dd6af93b3083b7271c1c63
- >= 4dd6f977fc778e5a0da604e5f8cb2f36d163d27b, < e533889fc26aea0cd83c90327063f272061dd820
Fixed in 454de20a5a36c000b75f49337aae8c92045c5242, 54c587f3f95ce2d6932a16566db83f73cc4313e1, bca61ee5192ea47003722486ae9588a2a4bb47b6, db13064669526494cd78ba3a4394063b740e940c, dcae1eeda53149f219dd6af93b3083b7271c1c63, e533889fc26aea0cd83c90327063f272061dd820
- 4.8
Fixed in 0, 6.1.191, 6.6.160, 6.12.112, 6.18.53, 7.2.5, 7.3
Mitigation
Upgrade Linux to 454de20a5a36c000b75f49337aae8c92045c5242 or 54c587f3f95ce2d6932a16566db83f73cc4313e1 or bca61ee5192ea47003722486ae9588a2a4bb47b6 or db13064669526494cd78ba3a4394063b740e940c or dcae1eeda53149f219dd6af93b3083b7271c1c63 or e533889fc26aea0cd83c90327063f272061dd820 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.112 or 6.18.53 or 7.2.5 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.