CVE-2024-26976: KVM: Always flush async #PF workqueue when vCPU is being destroyed
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.26% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 3d75b8aa5c29058a512db29da7cbee8052724157, 4f3a3bce428fb439c66a578adc447afce7b4a750, 82e25cc1c2e93c3023da98be282322fc08b61ffb.
- Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to Linux Linux 3d75b8aa5c29058a512db29da7cbee8052724157, 4f3a3bce428fb439c66a578adc447afce7b4a750, 82e25cc1c2e93c3023da98be282322fc08b61ffb or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: KVM: Always flush async #PF workqueue when vCPU is being destroyed Always flush the per-vCPU async #PF workqueue when a vCPU is clearing its completion queue, e.g. when a VM and all its vCPUs is being destroyed. KVM must ensure that none of its workqueue callbacks is running when the last reference to the KVM _module_ is put. Gifting a reference to the associated VM prevents the workqueue callback from dereferencing freed vCPU/VM memory, but does not prevent the KVM module from being unloaded before the callback completes. Drop the misguided VM refcount gifting, as calling kvm_put_kvm() from async_pf_execute() if kvm_put_kvm() flushes the async #PF workqueue will result in deadlock. async_pf_execute() can't return until kvm_put_kvm() finishes, and kvm_put_kvm() can't return until async_pf_execute() finishes: WARNING: CPU: 8 PID: 251 at virt/kvm/kvm_main.c:1435 kvm_put_kvm+0x2d/0x320 [kvm] Modules linked in: vhost_net vhost vhost_iotlb tap kvm_intel kvm irqbypass CPU: 8 PID: 251 Comm: kworker/8:1 Tainted: G W 6.6.0-rc1-e7af8d17224a-x86/gmem-vm #119 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 Workqueue: events async_pf_execute [kvm] RIP: 0010:kvm_put_kvm+0x2d/0x320 [kvm] Call Trace: <TASK> async_pf_execute+0x198/0x260 [kvm] process_one_work+0x145/0x2d0 worker_thread+0x27e/0x3a0 kthread+0xba/0xe0 ret_from_fork+0x2d/0x50 ret_from_fork_asm+0x11/0x20 </TASK> ---[ end trace 0000000000000000 ]--- INFO: task kworker/8:1:251 blocked for more than 120 seconds. Tainted: G W 6.6.0-rc1-e7af8d17224a-x86/gmem-vm #119 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/8:1 state:D stack:0 pid:251 ppid:2 flags:0x00004000 Workqueue: events async_pf_execute [kvm] Call Trace: <TASK> __schedule+0x33f/0xa40 schedule+0x53/0xc0 schedule_timeout+0x12a/0x140 __wait_for_common+0x8d/0x1d0 __flush_work.isra.0+0x19f/0x2c0 kvm_clear_async_pf_completion_queue+0x129/0x190 [kvm] kvm_arch_destroy_vm+0x78/0x1b0 [kvm] kvm_put_kvm+0x1c1/0x320 [kvm] async_pf_execute+0x198/0x260 [kvm] process_one_work+0x145/0x2d0 worker_thread+0x27e/0x3a0 kthread+0xba/0xe0 ret_from_fork+0x2d/0x50 ret_from_fork_asm+0x11/0x20 </TASK> If kvm_clear_async_pf_completion_queue() actually flushes the workqueue, then there's no need to gift async_pf_execute() a reference because all invocations of async_pf_execute() will be forced to complete before the vCPU and its VM are destroyed/freed. And that in turn fixes the module unloading bug as __fput() won't do module_put() on the last vCPU reference until the vCPU has been freed, e.g. if closing the vCPU file also puts the last reference to the KVM module. Note that kvm_check_async_pf_completion() may also take the work item off the completion queue and so also needs to flush the work queue, as the work will not be seen by kvm_clear_async_pf_completion_queue(). Waiting on the workqueue could theoretically delay a vCPU due to waiting for the work to complete, but that's a very, very small chance, and likely a very small delay. kvm_arch_async_page_present_queued() unconditionally makes a new request, i.e. will effectively delay entering the guest, so the remaining work is really just: trace_kvm_async_pf_completed(addr, cr2_or_gpa); __kvm_vcpu_wake_up(vcpu); mmput(mm); and mmput() can't drop the last reference to the page tables if the vCPU is still alive, i.e. the vCPU won't get stuck tearing down page tables. Add a helper to do the flushing, specifically to deal with "wakeup all" work items, as they aren't actually work items, i.e. are never placed in a workqueue. Trying to flush a bogus workqueue entry rightly makes __flush_work() complain (kudos to whoever added that sanity check). Note, commit 5f6de5cbebee ("KVM: Prevent module exit until al ---truncated---
- Published
- May 1, 2024
- Updated
- Aug 5, 2026
- EPSS
- 0.2% · 18th percentile
- CWE
- CWE-400
Report tools
Action score
31
Monitor
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · Linux
- 7.8
- NVD has not scored this yet; the score shown is the CNA’s.
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- linux linux kernel4.20 and later · before 5.4.274
- linux linux kernel5.5 and later · before 5.10.215
- linux linux kernel5.11 and later · before 5.15.154
- linux linux kernel2.6.38 and later · before 4.19.312
- linux linux kernel6.2 and later · before 6.6.24
- linux linux kernel6.7 and later · before 6.7.12
- linux linux kernel6.8 and later · before 6.8.3
- linux linux kernel5.16 and later · before 6.1.84
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 2.6.38affected
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before ab2c2f5d9576112ad22cfd3798071cb74693b1f5affected · git
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before 82e25cc1c2e93c3023da98be282322fc08b61ffbaffected · git
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before f8730d6335e5f43d09151fca1f0f41922209a264affected · git
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before 83d3c5e309611ef593e2fcb78444fc8ceedf9bacaffected · git
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before b54478d20375874aeee257744dedfd3e413432ffaffected · git
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before a75afe480d4349c524d9c659b1a5a544dbc39a98affected · git
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before 4f3a3bce428fb439c66a578adc447afce7b4a750affected · git
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before caa9af2e27c275e089d702cfbaaece3b42bca31baffected · git
- af585b921e5d1e919947c4b1164b59507fe7cd7b and later · before 3d75b8aa5c29058a512db29da7cbee8052724157affected · git
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | bpftool | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-abi-stablelists | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-core | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-cross-headers | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-debug | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-debug-core | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-debug-devel | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-debug-modules-extra | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-devel | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-doc | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-headers | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-modules | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-modules-extra | before 4.18.0-553.27.1.el8_10 | 4.18.0-553.27.1.el8_10 |
| AlmaLinux:8 | kernel-rt | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
| AlmaLinux:8 | kernel-rt-core | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
| AlmaLinux:8 | kernel-rt-debug | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-core | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-devel | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
| AlmaLinux:8 | kernel-rt-debug-modules-extra | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
| AlmaLinux:8 | kernel-rt-devel | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
| AlmaLinux:8 | kernel-rt-modules | before 4.18.0-553.27.1.rt7.368.el8_10 | 4.18.0-553.27.1.rt7.368.el8_10 |
+96
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2024-26971May 1, 2024 · clk: qcom: gcc-ipq5018: fix terminating of frequency table arrays22Monitor
- ← EarlierCVE-2024-26975May 1, 2024 · powercap: intel_rapl: Fix a NULL pointer dereference22Monitor
- Later →CVE-2024-26977May 1, 2024 · pci_iounmap(): Fix MMIO mapping leak22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 3d75b8aa5c29058a512db29da7cbee8052724157 | Vendor (CNA) |
| Linux Linux | 4f3a3bce428fb439c66a578adc447afce7b4a750 | Vendor (CNA) |
| Linux Linux | 82e25cc1c2e93c3023da98be282322fc08b61ffb | Vendor (CNA) |
| Linux Linux | 83d3c5e309611ef593e2fcb78444fc8ceedf9bac | Vendor (CNA) |
| Linux Linux | a75afe480d4349c524d9c659b1a5a544dbc39a98 | Vendor (CNA) |
| Linux Linux | ab2c2f5d9576112ad22cfd3798071cb74693b1f5 | Vendor (CNA) |
| Linux Linux | b54478d20375874aeee257744dedfd3e413432ff | Vendor (CNA) |
| Linux Linux | caa9af2e27c275e089d702cfbaaece3b42bca31b | Vendor (CNA) |
| Linux Linux | f8730d6335e5f43d09151fca1f0f41922209a264 | Vendor (CNA) |
| almalinux:bpftool | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-abi-stablelists | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-core | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-cross-headers | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug-core | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug-devel | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug-modules | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-debug-modules-extra | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-devel | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:kernel-doc | 4.18.0-553.27.1.el8_10 · AlmaLinux:8 | Package registry (OSV) |
| debian:linux | 6.1.85-1 · Debian:12 | Package registry (OSV) |
| red hat:bpftool | 0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:bpftool-debuginfo | 0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel | 0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-abi-stablelists | 0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-core | 0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug | 0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-core | 0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:kernel-debug-debuginfo | 0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
+10
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2024-3946255 days apartclk: bcm: dvp: Assign ->num before accessing ->hws39Monitor
- CVE-2021-444055 days apartx86/xen: Drop USERGS_SYSRET64 paravirt call35Monitor
- CVE-2021-4731320 days apartcpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init33Monitor
- CVE-2024-3861649 days apartwifi: carl9170: re-fix fortified-memset warning32Monitor
- CVE-2021-4702363 days apartnet: marvell: prestera: fix port event handling on init32Monitor
- CVE-2024-3594819 days apartbcachefs: Check for journal entries overruning end of sb clean section31Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-24-0387 · May 2, 2024(Linux Kernel Güncellemesi)
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-400 · Uncontrolled Resource ConsumptionCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-secondary
Root cause
Code that parses nested structures sets no depth or size limit. A small input can turn into a disproportionate processing load.
The bug in code
The whole CWE-400 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
function expand(node) {
return node.children.map(expand);
}Fixed
const MAX_DEPTH = 32;
function expand(node, depth = 0) {
if (depth > MAX_DEPTH) throw new Error("too deep");
return node.children.map((c) => expand(c, depth + 1));
}Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (10 more)Show less
- git.kernel.org/stable/c/4f3a3bce428fb439c66a578adc447afce7b4a750
- git.kernel.org/stable/c/82e25cc1c2e93c3023da98be282322fc08b61ffb
- git.kernel.org/stable/c/83d3c5e309611ef593e2fcb78444fc8ceedf9bac
- git.kernel.org/stable/c/a75afe480d4349c524d9c659b1a5a544dbc39a98
- git.kernel.org/stable/c/ab2c2f5d9576112ad22cfd3798071cb74693b1f5
- git.kernel.org/stable/c/b54478d20375874aeee257744dedfd3e413432ff
- git.kernel.org/stable/c/caa9af2e27c275e089d702cfbaaece3b42bca31b
- git.kernel.org/stable/c/f8730d6335e5f43d09151fca1f0f41922209a264
- lists.debian.org/debian-lts-announce/2024/06/msg00017.html
- lists.debian.org/debian-lts-announce/2024/06/msg00020.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.