CVE-2026-68145iomap: fix out-of-bounds bitmap_set() with zero-length range
Updated under an hour ago ()
Does this affect you?
It affects Linux. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
In the Linux kernel, the following vulnerability has been resolved: iomap: fix out-of-bounds bitmap_set() with zero-length range ifs_set_range_dirty() and ifs_set_range_uptodate() compute last_blk as (off + len - 1) >> i_blkbits. When off is 0 and len is 0, the unsigned subtraction underflows to SIZE_MAX, producing a huge last_blk and nr_blks value that causes bitmap_set() to write far beyond the ifs->state allocation. Regarding ifs_set_range_uptodate(), it is temporarily safe because len cannot be passed in as 0. However, for ifs_set_range_dirty() this is reachable from __iomap_write_end(): when copy_folio_from_iter_atomic() returns 0 (e.g. user buffer fault) and the folio is already uptodate, the guard at the top of __iomap_write_end() does not trigger because !folio_test_uptodate() is false, and iomap_set_range_dirty() is called with copied == 0. Add a !len guard to both functions before the computation, so that a zero-length range is a no-op.
- CVSS
- 7.8 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- Not given
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Linux
- NVD analysis
- Received
- Record last updated
- Oct 16, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Linux Linux linux:linux (from the name) | from 4ce02c67972211be488408c275c8fbf19faf29b3 before 48829622212f6b8f49155889aecc818ba28ba680; from 4ce02c67972211be488408c275c8fbf19faf29b3 before fb4fad9105c88b1d82f1b3c39e3b6abea8249af6; from 4ce02c67972211be488408c275c8fbf19faf29b3 before 7037e7bdcd26f46c080b8ce307dee5cb471c4b7c; from 4ce02c67972211be488408c275c8fbf19faf29b3 before c5b6a48a8a716a7730e39af1cad083dc4ec955ce; from 4ce02c67972211be488408c275c8fbf19faf29b3 before 9c7d8f7c8994c790fca501dc45ce66e7356cbe05 | CNA record |
References
- https://git.kernel.org/stable/c/48829622212f6b8f49155889aecc818ba28ba680
- https://git.kernel.org/stable/c/fb4fad9105c88b1d82f1b3c39e3b6abea8249af6
- https://git.kernel.org/stable/c/7037e7bdcd26f46c080b8ce307dee5cb471c4b7c
- https://git.kernel.org/stable/c/c5b6a48a8a716a7730e39af1cad083dc4ec955ce
- https://git.kernel.org/stable/c/9c7d8f7c8994c790fca501dc45ce66e7356cbe05
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.