Skip to main content

Linux Kernel CVE-2024-26976

HIGH
Uncontrolled Resource Consumption (CWE-400)
2024-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local KVM device access
  2. Delivery
    Create guest VM with active vCPUs
  3. Exploit
    Trigger async page fault in guest workload
  4. Execution
    Destroy VM while PF workqueue callback pending
  5. Persist
    Deadlock kernel worker thread
  6. Impact
    Kernel hang or module use-after-free

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

KVM must be enabled and the /dev/kvm device must exist on the target system. The attacker must have read-write access to /dev/kvm - on most Linux distributions this requires membership in the 'kvm' group or root privileges; it is not granted to unprivileged users by default. The race window requires an async page fault work item to be queued for the vCPU at the same moment the vCPU or its parent VM is being destroyed, which occurs naturally under heavy guest memory pressure with slow-backing host memory. No non-default kernel configuration or special compile-time option is required: the async #PF code path is active by default on x86 KVM builds. Exploitation is strictly local and does not cross VM guest boundaries or traverse the network. The primary limiting factors are the requirement for KVM device permissions and the narrow timing race, which make reliable exploitation difficult but not infeasible for a local attacker with control over VM lifecycle.

Impact

The NVD CVSS 7.8 score (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects a local, low-complexity exploit path with full C/I/A impact, where C:H and I:H are attributed to the worst-case module use-after-free scenario rather than the more commonly observed kernel deadlock. EPSS of 0.26% at the 17th percentile aligns with no known exploitation, and the vulnerability is absent from the CISA KEV catalog, confirming no confirmed in-the-wild abuse. No public proof-of-concept has been identified. In practice, exploitation requires local access with KVM device permissions (membership in the 'kvm' Linux group or root), the ability to create guest VMs, and precise timing during vCPU teardown to hit the race window - meaningfully increasing exploit complexity beyond what AC:L conveys. The realistic impact for most affected deployments is a kernel worker thread deadlock causing a hung task timeout (120+ seconds) rather than code execution. This is a high-CVSS-but-low-real-world-risk finding for environments that do not expose /dev/kvm to untrusted local users; it rises in priority for shared multi-tenant KVM hosts, VDI environments, or cloud nodes where KVM access is granted to less-trusted parties.

Exploit ScenarioDerived

A local user who has been granted KVM device access creates a guest VM, runs a workload that induces async page fault handling (for example, by accessing guest memory backed by a slow or swap-backed host mapping), and then rapidly tears down the vCPU or VM while the async #PF workqueue callback is in-flight. Under the vulnerable code path, the callback invokes kvm_put_kvm(), which flushes the workqueue the callback is currently executing in, deadlocking the kernel worker thread for 120 or more seconds and rendering the associated KVM subsystem operations unresponsive. No public proof-of-concept has been identified; this scenario is grounded in the kernel commit message call trace and CVSS local attack vector.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Aug 04, 2026

KVM's async page fault workqueue in the Linux kernel contains a deadlock and potential use-after-free condition triggered during vCPU destruction, affecting systems running KVM-based virtualization across multiple stable kernel branches including Debian Linux 10.0. Local users with KVM device access can trigger the flaw by destroying a VM while async page fault work items are in-flight, causing either a permanent kernel worker thread deadlock (confirmed DoS) or a race where the KVM module is unloaded before callbacks complete, risking execution of freed module memory. No active exploitation has been confirmed (absent from CISA KEV, EPSS 0.26% at the 17th percentile) and no public exploit code has been identified, making this a real but low-urgency issue outside of multi-tenant KVM environments.

Earlier versions of this analysis (2)
v2 Aug 04, 2026 - 13:06 cvss changed CVSS 7.8

KVM's async page-fault workqueue in the Linux kernel contains a deadlock and use-after-free condition triggered during vCPU destruction. When a vCPU is torn down while async #PF work items are still in-flight, the previous mitigation (gifting a VM refcount to the workqueue callback) introduced a circular wait: async_pf_execute() calls kvm_put_kvm(), which then flushes the async #PF workqueue, neither of which can complete while the other is running. In addition to the deadlock, failure to synchronously flush the workqueue before module teardown can allow the KVM module to be unloaded while callbacks referencing freed vCPU/VM memory are still executing. No public exploit has been identified at time of analysis, and EPSS sits at 0.26% (17th percentile), indicating low observed exploitation pressure.

v1 Aug 04, 2026 - 13:06 cvss changed CVSS 7.8

KVM subsystem deadlock in the Linux kernel allows a local attacker with KVM access to hang the kernel by racing vCPU destruction against async page fault workqueue callbacks. The flaw exists because the original mitigation - gifting a VM refcount to async_pf_execute() - introduced a circular wait when workqueue flushing was added to kvm_put_kvm(): async_pf_execute() cannot return until kvm_put_kvm() completes, and kvm_put_kvm() cannot return until async_pf_execute() completes. A secondary race allows the KVM module to be unloaded before callbacks complete. No public exploit has been identified at time of analysis; the 0.26% EPSS score (17th percentile) confirms low real-world exploitation probability despite the 7.8 CVSS rating.

RemediationAI

Apply the upstream kernel patch set delivered across nine stable-branch commits referenced by NVD, including https://git.kernel.org/stable/c/3d75b8aa5c29058a512db29da7cbee8052724157, https://git.kernel.org/stable/c/4f3a3bce428fb439c66a578adc447afce7b4a750, https://git.kernel.org/stable/c/82e25cc1c2e93c3023da98be282322fc08b61ffb, https://git.kernel.org/stable/c/83d3c5e309611ef593e2fcb78444fc8ceedf9bac, https://git.kernel.org/stable/c/a75afe480d4349c524d9c659b1a5a544dbc39a98, https://git.kernel.org/stable/c/ab2c2f5d9576112ad22cfd3798071cb74693b1f5, https://git.kernel.org/stable/c/b54478d20375874aeee257744dedfd3e413432ff, https://git.kernel.org/stable/c/caa9af2e27c275e089d702cfbaaece3b42bca31b, and https://git.kernel.org/stable/c/f8730d6335e5f43d09151fca1f0f41922209a264. Debian Linux 10.0 users should apply the relevant Debian Security Advisory updates for the linux package via apt. An exact patched release version is not independently confirmed from the available data - track the stable kernel series changelogs to identify the first tagged release incorporating these commits. As a compensating control where patching is not immediately possible, remove untrusted or semi-trusted users from the 'kvm' group and enforce AppArmor or SELinux policies to restrict /dev/kvm access to authorized virtualization workloads only; this eliminates the untrusted-user attack path but does not prevent the race from occurring under legitimate heavy VM workloads on the unpatched kernel.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

KVM (Kernel-based Virtual Machine) is the Linux kernel's built-in type-1 hypervisor subsystem, implemented as a loadable kernel module. Async Page Fault (async #PF) is a KVM optimization that defers guest page fault resolution to per-vCPU kernel workqueues rather than blocking the vCPU execution thread. The defect is in kvm_clear_async_pf_completion_queue(), which previously failed to flush the async #PF workqueue on vCPU teardown: async_pf_execute() called kvm_put_kvm() to release its VM reference, but kvm_put_kvm() (after the misguided fix attempt) in turn flushed the very workqueue the callback was currently executing in, creating a circular wait. A second, related bug allowed the KVM module to receive its final module_put() from __fput() while an async workqueue callback was still running, resulting in execution against freed module memory - a use-after-free of kernel text. NVD classifies this as CWE-400 (Uncontrolled Resource Consumption), though the deadlock is more precisely CWE-833 and the module unload race is CWE-416; CWE-400 captures the primary observed outcome of kernel thread starvation. Affected products per CPE: cpe:2.3:o:linux:linux_kernel across multiple stable branches, and cpe:2.3:o:debian:debian_linux:10.0.

Know when Debian Linux gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local access with KVM device permissions (PR:L) required; module use-after-free justifies C:H/I:H; confirmed kernel deadlock drives A:H.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Aug 04, 2026 - 13:09 vuln.today
v3 - CVSS changed
Analysis Updated
Aug 04, 2026 - 13:06 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 13:06 vuln.today
v1 - CVSS changed
CVSS changed
Aug 04, 2026 - 11:23 NVD
7.0 (HIGH) 7.8 (HIGH)
CVE Published
May 01, 2024 - 06:15 cve.org
HIGH 7.0

DescriptionCVE.org

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

Executive ViewAI

Why It Matters

Linux KVM virtualization infrastructure on Debian 10.0 and affected stable kernel branches contains a flaw allowing local users with KVM device access to trigger permanent system hangs and service outages. No public exploit identified at time of analysis, though high technical severity and patch availability make this a straightforward remediation priority.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
High
Linux kernel with KVM widely deployed across cloud and virtualization hosts
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
CVE-2021-44228 CRITICAL POC
10.0 Dec 10

Apache Log4j2 contains a critical JNDI injection vulnerability known as 'Log4Shell' that allows unauthenticated remote c

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2017-7494 CRITICAL POC
9.8 May 30

Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2022-30333 HIGH POC
7.5 May 09

RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) o

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2020-1938 CRITICAL POC
9.8 Feb 24

When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate

CVE-2018-7602 CRITICAL POC
9.8 Jul 19

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. Rated critical severity (

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy