iomap: adjust read range correctly for non-block-aligned positions
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.267, 5.15.218, 6.1.185, 6.6.120, 6.12.64, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: iomap: adjust read range correctly for non-block-aligned positions iomap_adjust_read_range() assumes that the position and length passed in are block-aligned. This is not always the case however, as shown in the syzbot generated case for erofs. This causes too many bytes to be skipped for uptodate blocks, which results in returning the incorrect position and length to read in. If all the blocks are uptodate, this underflows length and returns a position beyond the folio. Fix the calculation to also take into account the block offset when calculating how many bytes can be skipped for uptodate blocks.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 9dc55f1389f9569acf9659e58dd836a9c70df217 · fixed in ce20f49ac9194cf81a77f01d1c316d7c17ae753c; From 9dc55f1389f9569acf9659e58dd836a9c70df217 · fixed in 275b37a1e5c2c8abd313e8075f6aec9a349f291b; From 9dc55f1389f9569acf9659e58dd836a9c70df217 · fixed in b8c9f25fd84328c5fcc4f70c6d1e8f1d4787eaac; From 9dc55f1389f9569acf9659e58dd836a9c70df217 · fixed in 82b60ffbb532d919959702768dca04c3c0500ae5; From 9dc55f1389f9569acf9659e58dd836a9c70df217 · fixed in 12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e; From 9dc55f1389f9569acf9659e58dd836a9c70df217 · fixed in 142194fb21afe964d2d194cab1fc357cbf87e899; From 9dc55f1389f9569acf9659e58dd836a9c70df217 · fixed in 7aa6bc3e8766990824f66ca76c19596ce10daf3e
- Linux Linux
4.19
- KernelLinux
From 4.19.0 · fixed in 5.10.267; From 5.11.0 · fixed in 5.15.218; From 5.16.0 · fixed in 6.1.185; From 6.2.0 · fixed in 6.6.120; From 6.7.0 · fixed in 6.12.64; From 6.13.0 · fixed in 6.18.3
References 7
git.kernel.org
- stable/c/ce20f49ac9194cf81a77f01d1c316d7c17ae753c
- stable/c/275b37a1e5c2c8abd313e8075f6aec9a349f291b
- stable/c/b8c9f25fd84328c5fcc4f70c6d1e8f1d4787eaac
- stable/c/82b60ffbb532d919959702768dca04c3c0500ae5
- stable/c/12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e
- stable/c/142194fb21afe964d2d194cab1fc357cbf87e899
- stable/c/7aa6bc3e8766990824f66ca76c19596ce10daf3e