CVE-2026-99643
khugepaged: fix readahead lock inversion in collapse_file()
Check your servers for CVE-2026-99643
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-99643 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:
khugepaged: fix readahead lock inversion in collapse_file()
collapse_file() can call page_cache_sync_readahead() while still holding source folios locked. If truncate holds mapping->invalidate_lock exclusively and waits for one of those folios, readahead waits for invalidate_lock and neither side can make progress.
We need to release those folio locks before starting readahead. On a page cache miss, roll back first, populate the collapse range, and retry once. Doing readahead after rollback avoids an extra pass when all folios are already present. If another miss occurs on retry, give up rather than keep retrying while truncate or reclaim removes folios.
Keep page_cache_sync_readahead() and wait for read I/O with filemap_lock_folio(), releasing each folio before moving to the next. The existing uptodate check during collapse still handles read errors.
Shmem uses shmem_get_folio() for swapin and fallocated folios without taking mapping->invalidate_lock, so it is unaffected.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.33% of all scored CVEs. Scores of 27 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 730633f0b7f951726e87f912a6323641f674ae34, before 8a82f4c7658c221fd45509c44fd1df152b24e27d affected from 730633f0b7f951726e87f912a6323641f674ae34, before fb558d0a6a0c0f650327fbaf1876697c7f668e04 affected from 730633f0b7f951726e87f912a6323641f674ae34, before b9b3c367faf1929fb8192a846b3604ad7eced008 affected from 730633f0b7f951726e87f912a6323641f674ae34, before eadce52a9ef657d561b3e76c9b5f178bd99735f5
Other versions: unaffected
|
| Linux |
affected 5.15 unaffected before 5.15 unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.5 up to and including 7.3.* unaffected 7.4-rc2 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-99643 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99643
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-99643
trivy image --scanners vuln IMAGE | grep CVE-2026-99643
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/8a82f4c7658c221fd45509c44fd1df152b24e27d git.kernel.org
- https://git.kernel.org/stable/c/fb558d0a6a0c0f650327fbaf1876697c7f668e04 git.kernel.org
- https://git.kernel.org/stable/c/b9b3c367faf1929fb8192a846b3604ad7eced008 git.kernel.org
- https://git.kernel.org/stable/c/eadce52a9ef657d561b3e76c9b5f178bd99735f5 git.kernel.org
Source: the record CVE-2026-99643 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