SecurityContext

CVE-2026-99643: Linux Kernel - khugepaged Lock Inversion

  • Cve: CVE-2026-99643
  • Name: Linux Kernel - khugepaged Lock Inversion
  • 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.
  • Impact: Attackers can cause a deadlock between readahead and truncate, leading to denial of service on the affected system.
  • Remediation: Update to the latest kernel version containing the fix for this vulnerability.
  • Vulnerability type: race_condition
  • Vulnerability impact: denial_of_service
  • Requirements: Attacker needs to trigger concurrent truncate while collapse_file() performs readahead
  • Labels source: securitycontext
  • Cvss vector: N/A
  • Epss score: 0.00168
  • Epss percentile: 0.0619
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2026-11-20T06:17:57Z
  • Age in days: 4
  • Modified at: 2026-11-23T08:18:05Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-99643
  • Nvd status: received
  • Checked, none or zero: cwe, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, severity, cvss score, hackerone

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://git.kernel.org/stable/c/8a82f4c7658c221fd45509c44fd1df152b24e27d
https://git.kernel.org/stable/c/b9b3c367faf1929fb8192a846b3604ad7eced008
https://git.kernel.org/stable/c/eadce52a9ef657d561b3e76c9b5f178bd99735f5
https://git.kernel.org/stable/c/fb558d0a6a0c0f650327fbaf1876697c7f668e04

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 5.15, < 7.4-rc2; >= 5.15, < 7.3.5; >= 5.15, < 6.18.65; >= 5.15, < 6.12.119nocna/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports