# CVE-2026-99643: khugepaged: fix readahead lock inversion in collapse\_file()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-28)
- **Published:** 2026-11-20T05:49:58.391Z
- **Modified:** 2026-11-23T08:18:05.593Z

## Who should check

- Anyone running Linux \>= 730633f0b7f951726e87f912a6323641f674ae34, \< 8a82f4c7658c221fd45509c44fd1df152b24e27d; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< fb558d0a6a0c0f650327fbaf1876697c7f668e04; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< b9b3c367faf1929fb8192a846b3604ad7eced008; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< eadce52a9ef657d561b3e76c9b5f178bd99735f5
- Anyone running Linux 5.15

## 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.

## Affected and fixed versions

- Linux: \>= 730633f0b7f951726e87f912a6323641f674ae34, \< 8a82f4c7658c221fd45509c44fd1df152b24e27d; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< fb558d0a6a0c0f650327fbaf1876697c7f668e04; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< b9b3c367faf1929fb8192a846b3604ad7eced008; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< eadce52a9ef657d561b3e76c9b5f178bd99735f5 (cvelist)
- Linux: 5.15 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99643. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99643.md
Affected: Linux >= 730633f0b7f951726e87f912a6323641f674ae34, < 8a82f4c7658c221fd45509c44fd1df152b24e27d; >= 730633f0b7f951726e87f912a6323641f674ae34, < fb558d0a6a0c0f650327fbaf1876697c7f668e04; >= 730633f0b7f951726e87f912a6323641f674ae34, < b9b3c367faf1929fb8192a846b3604ad7eced008; >= 730633f0b7f951726e87f91…
Fixed in: Linux 8a82f4c7658c221fd45509c44fd1df152b24e27d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99643 being exploited?

There is no confirmed exploitation: CVE-2026-99643 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99643?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99643?

Linux \>= 730633f0b7f951726e87f912a6323641f674ae34, \< 8a82f4c7658c221fd45509c44fd1df152b24e27d; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< fb558d0a6a0c0f650327fbaf1876697c7f668e04; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< b9b3c367faf1929fb8192a846b3604ad7eced008; \>= 730633f0b7f951726e87f912a6323641f674ae34, \< eadce52a9ef657d561b3e76c9b5f178bd99735f5; Linux 5.15.

### Is there a fix for CVE-2026-99643?

Yes. Fixed in Linux 8a82f4c7658c221fd45509c44fd1df152b24e27d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99643?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/8a82f4c7658c221fd45509c44fd1df152b24e27d>
- other: <https://git.kernel.org/stable/c/fb558d0a6a0c0f650327fbaf1876697c7f668e04>
- other: <https://git.kernel.org/stable/c/b9b3c367faf1929fb8192a846b3604ad7eced008>
- other: <https://git.kernel.org/stable/c/eadce52a9ef657d561b3e76c9b5f178bd99735f5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99643>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99643> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99643>
