CVE-2026-68145

Source
https://cve.org/CVERecord?id=CVE-2026-68145
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68145.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-68145
Downstream
Published
2026-08-10T11:59:09.721Z
Modified
2026-08-15T11:31:09.400892790Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
iomap: fix out-of-bounds bitmap_set() with zero-length range
Details

In the Linux kernel, the following vulnerability has been resolved:

iomap: fix out-of-bounds bitmap_set() with zero-length range

ifssetrangedirty() and ifssetrangeuptodate() compute lastblk as (off + len - 1) >> iblkbits. When off is 0 and len is 0, the unsigned subtraction underflows to SIZEMAX, producing a huge lastblk and nrblks value that causes bitmapset() to write far beyond the ifs->state allocation.

Regarding ifssetrangeuptodate(), it is temporarily safe because len cannot be passed in as 0. However, for ifssetrangedirty() this is reachable from __iomapwriteend(): when copyfoliofromiteratomic() returns 0 (e.g. user buffer fault) and the folio is already uptodate, the guard at the top of _iomapwriteend() does not trigger because !foliotestuptodate() is false, and iomapsetrangedirty() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68145.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4ce02c67972211be488408c275c8fbf19faf29b3
Fixed
fb4fad9105c88b1d82f1b3c39e3b6abea8249af6
Fixed
7037e7bdcd26f46c080b8ce307dee5cb471c4b7c
Fixed
c5b6a48a8a716a7730e39af1cad083dc4ec955ce
Fixed
9c7d8f7c8994c790fca501dc45ce66e7356cbe05

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68145.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.12.101
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.42
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68145.json"