{"id":"CVE-2026-68145","published":"2026-08-10T11:59:09Z","modified":"2026-10-19T20:58:53Z","title":"iomap: fix out-of-bounds bitmap_set() with zero-length range","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: fix out-of-bounds bitmap_set() with zero-length range\n\nifs_set_range_dirty() and ifs_set_range_uptodate() compute last_blk\nas (off + len - 1) >> i_blkbits.  When off is 0 and len is 0, the\nunsigned subtraction underflows to SIZE_MAX, producing a huge\nlast_blk and nr_blks value that causes bitmap_set() to write far\nbeyond the ifs->state allocation.\n\nRegarding ifs_set_range_uptodate(), it is temporarily safe because len\ncannot be passed in as 0. However, for ifs_set_range_dirty() this is\nreachable from __iomap_write_end(): when copy_folio_from_iter_atomic()\nreturns 0 (e.g. user buffer fault) and the folio is already uptodate,\nthe guard at the top of __iomap_write_end() does not trigger because\n!folio_test_uptodate() is false, and iomap_set_range_dirty() is called\nwith copied == 0.\n\nAdd a !len guard to both functions before the computation, so that a\nzero-length range is a no-op.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00138,"percentile":0.03297,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://git.kernel.org/stable/c/48829622212f6b8f49155889aecc818ba28ba680","tags":[]},{"url":"https://git.kernel.org/stable/c/fb4fad9105c88b1d82f1b3c39e3b6abea8249af6","tags":[]},{"url":"https://git.kernel.org/stable/c/7037e7bdcd26f46c080b8ce307dee5cb471c4b7c","tags":[]},{"url":"https://git.kernel.org/stable/c/c5b6a48a8a716a7730e39af1cad083dc4ec955ce","tags":[]},{"url":"https://git.kernel.org/stable/c/9c7d8f7c8994c790fca501dc45ce66e7356cbe05","tags":[]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":0.66},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 4ce02c67972211be488408c275c8fbf19faf29b3, < 48829622212f6b8f49155889aecc818ba28ba680",">= 4ce02c67972211be488408c275c8fbf19faf29b3, < fb4fad9105c88b1d82f1b3c39e3b6abea8249af6",">= 4ce02c67972211be488408c275c8fbf19faf29b3, < 7037e7bdcd26f46c080b8ce307dee5cb471c4b7c",">= 4ce02c67972211be488408c275c8fbf19faf29b3, < c5b6a48a8a716a7730e39af1cad083dc4ec955ce",">= 4ce02c67972211be488408c275c8fbf19faf29b3, < 9c7d8f7c8994c790fca501dc45ce66e7356cbe05"]},{"vendor":"Linux","product":"Linux","versions":["6.6"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:44:49.261769Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-55529","exploited":false,"provenance":"source"}}