CVE-2026-99846
iomap: don't mark unwritten parts of a folio uptodate
Check your servers for CVE-2026-99846
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99846 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
iomap: don't mark unwritten parts of a folio uptodate
For a buffered write into a hole, an unwritten or new extent, or past EOF __iomap_write_begin() zeroes the parts of the blocks outside of the write and then marks the blocks uptodate. That includes the range of the write itself which still holds whatever was in the folio before. It only becomes valid once the copy from userspace has filled it in.
But the copy can come up short and __iomap_write_end() only rejects a short copy if the folio isn't uptodate. If the zeroed blocks were all that was missing the folio is uptodate by then, the short copy is accepted, and the rest of the range is exposed to readers and can end up on disk. A source buffer that ends in an unmapped page is enough:
ftruncate(fd, 4096); pwrite(fd, p, 3000, 100); /* 16 bytes at p, then PROT_NONE */ pread(fd, buf, 4096, 0);
The write returns 16 and the read returns 2984 bytes of whatever was in that page before. If other blocks of the folio aren't uptodate the short copy is rejected but the zeroed blocks keep their uptodate bits and the retry with the copied length leaves the same bytes behind.
Only mark blocks uptodate in __iomap_write_begin() after reading them. __iomap_write_end() marks the zeroed blocks uptodate once the copy has succeeded and rejects a short copy.
Willy reported this back in 2024 (cf. [1]) and Zhang Yi posted the same fix (cf. [2]) but it never got merged.
[1]: https://lore.kernel.org/all/ZqsN5ouQTEc1KAzV@casper.infradead.org [2]: https://lore.kernel.org/all/20240812121159.3775074-6-yi.zhang@huaweicloud.com
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9dc55f1389f9569acf9659e58dd836a9c70df217, before 4057744d3eb110c563c6e26dea3c1672c4a782b7 affected from 9dc55f1389f9569acf9659e58dd836a9c70df217, before b27c7d2fbf3cc91236b02f2252f19a2996fb77f4 affected from 9dc55f1389f9569acf9659e58dd836a9c70df217, before c9370de5301e30f14839b7f955e6f45c30bc9dc3 affected from 9dc55f1389f9569acf9659e58dd836a9c70df217, before dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd affected from 9dc55f1389f9569acf9659e58dd836a9c70df217, before 21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0 affected from 9dc55f1389f9569acf9659e58dd836a9c70df217, before 5fbfe1b40716d17bb1315a19f4dcd466737f87f4 affected from 9dc55f1389f9569acf9659e58dd836a9c70df217, before 526d31b2b579b5c93efc2863caf92fae0638cbcb affected from 9dc55f1389f9569acf9659e58dd836a9c70df217, before a4193b4af359db84b2cdf3a040752861984c636b
Other versions: unaffected
|
| Linux |
affected 4.19 unaffected before 4.19 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.64 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99846 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99846
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99846
trivy image --scanners vuln IMAGE | grep CVE-2026-99846
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/4057744d3eb110c563c6e26dea3c1672c4a782b7 git.kernel.org
- https://git.kernel.org/stable/c/b27c7d2fbf3cc91236b02f2252f19a2996fb77f4 git.kernel.org
- https://git.kernel.org/stable/c/c9370de5301e30f14839b7f955e6f45c30bc9dc3 git.kernel.org
- https://git.kernel.org/stable/c/dff8ce6ff2b8ae5dbe67c32b68f95567e2283cbd git.kernel.org
- https://git.kernel.org/stable/c/21b81cabfc4d626d2b3d5ea949d4e6246fa53ef0 git.kernel.org
- https://git.kernel.org/stable/c/5fbfe1b40716d17bb1315a19f4dcd466737f87f4 git.kernel.org
- https://git.kernel.org/stable/c/526d31b2b579b5c93efc2863caf92fae0638cbcb git.kernel.org
- https://git.kernel.org/stable/c/a4193b4af359db84b2cdf3a040752861984c636b git.kernel.org
Source: the record CVE-2026-99846 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse