Skip to content
Noroxi
NVD / CVE Program· CNA Linux

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

HighCVSS 7.8 · v3.1—No exploit Fix available
Published
May 1, 2024
Updated
Aug 5, 2026
EPSS
0.2% · 18th percentile

Report tools

JSON

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.

Follow CVE-2024-26976

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

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 help

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

VendorProduct
linuxlinux kernel
debiandebian 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.

EcosystemPackageAffected rangeFix
AlmaLinux:8bpftoolbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernelbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-abi-stablelistsbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-corebefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-cross-headersbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-debugbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-debug-corebefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-debug-develbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-debug-modulesbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-debug-modules-extrabefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-develbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-docbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-headersbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-modulesbefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-modules-extrabefore 4.18.0-553.27.1.el8_104.18.0-553.27.1.el8_10
AlmaLinux:8kernel-rtbefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10
AlmaLinux:8kernel-rt-corebefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10
AlmaLinux:8kernel-rt-debugbefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10
AlmaLinux:8kernel-rt-debug-corebefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10
AlmaLinux:8kernel-rt-debug-develbefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10
AlmaLinux:8kernel-rt-debug-modulesbefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10
AlmaLinux:8kernel-rt-debug-modules-extrabefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10
AlmaLinux:8kernel-rt-develbefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10
AlmaLinux:8kernel-rt-modulesbefore 4.18.0-553.27.1.rt7.368.el8_104.18.0-553.27.1.rt7.368.el8_10

+96

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • 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 KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

Published before and after this one in the same product

  • ← EarlierCVE-2024-26971May 1, 2024 · clk: qcom: gcc-ipq5018: fix terminating of frequency table arrays
    22Monitor
  • ← EarlierCVE-2024-26975May 1, 2024 · powercap: intel_rapl: Fix a NULL pointer dereference
    22Monitor
  • Later →CVE-2024-26977May 1, 2024 · pci_iounmap(): Fix MMIO mapping leak
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux3d75b8aa5c29058a512db29da7cbee8052724157Vendor (CNA)
Linux Linux4f3a3bce428fb439c66a578adc447afce7b4a750Vendor (CNA)
Linux Linux82e25cc1c2e93c3023da98be282322fc08b61ffbVendor (CNA)
Linux Linux83d3c5e309611ef593e2fcb78444fc8ceedf9bacVendor (CNA)
Linux Linuxa75afe480d4349c524d9c659b1a5a544dbc39a98Vendor (CNA)
Linux Linuxab2c2f5d9576112ad22cfd3798071cb74693b1f5Vendor (CNA)
Linux Linuxb54478d20375874aeee257744dedfd3e413432ffVendor (CNA)
Linux Linuxcaa9af2e27c275e089d702cfbaaece3b42bca31bVendor (CNA)
Linux Linuxf8730d6335e5f43d09151fca1f0f41922209a264Vendor (CNA)
almalinux:bpftool4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-abi-stablelists4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-core4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-cross-headers4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug-core4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug-devel4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug-modules4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-debug-modules-extra4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-devel4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
almalinux:kernel-doc4.18.0-553.27.1.el8_10 · AlmaLinux:8Package registry (OSV)
debian:linux6.1.85-1 · Debian:12Package registry (OSV)
red hat:bpftool0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:bpftool-debuginfo0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-abi-stablelists0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-core0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-core0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage registry (OSV)
red hat:kernel-debug-debuginfo0:4.18.0-553.27.1.el8_10 · Red Hat:enterprise_linux:8::baseosPackage 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.

Finders, 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 ->hws
    39Monitor
  • CVE-2021-444055 days apartx86/xen: Drop USERGS_SYSRET64 paravirt call
    35Monitor
  • CVE-2021-4731320 days apartcpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init
    33Monitor
  • CVE-2024-3861649 days apartwifi: carl9170: re-fix fortified-memset warning
    32Monitor
  • CVE-2021-4702363 days apartnet: marvell: prestera: fix port event handling on init
    32Monitor
  • CVE-2024-3594819 days apartbcachefs: Check for journal entries overruning end of sb clean section
    31Monitor

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.

All national notices →

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

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

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
function expand(node) {  return node.children.map(expand);}

Fixed

ts
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

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records