Linux Kernel
CVE-2024-27058
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain local shell access
-
DeliveryMount or locate tmpfs with quota enabled
-
ExploitSpawn concurrent dquot acquire/release threads
-
InstallWin race on rbtree root fetch before semaphore acquired
-
C2Search executes from stale root pointer
-
ExecuteTrigger kernel WARN_ON or memory unsafety
-
ImpactKernel panic or privilege escalation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that tmpfs (shmem) quota support is actively configured on the target system - specifically, that a tmpfs mount uses usrquota or grpquota options, which is not the default configuration in most Linux distributions. The attacker must have local, low-privileged access (a shell account) and the ability to trigger concurrent dquot acquire/release operations on the affected mount. The race window is narrow and depends on scheduling timing between two threads: Thread 1 must read the rbtree root before acquiring dqopt->dqio_sem, while Thread 2 simultaneously holds the semaphore and triggers a tree rebalance. The non-default quota-on-tmpfs configuration is the primary limiting factor that significantly narrows real-world exposure beyond what the CVSS vector alone implies. |
| Impact | The official CVSS 3.1 score is 7.8 (High) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, assigning Low Attack Complexity to what is fundamentally a race condition - a metric choice that is arguably optimistic from a defender's perspective, since race windows require precise timing and may be unreliable to exploit. EPSS of 0.48% at the 38th percentile signals very low exploitation probability in the near term, consistent with the absence of KEV listing and the lack of any public proof-of-concept. The realistic risk is concentrated in environments running Linux with tmpfs quota support enabled, which is a non-default configuration. The high C/I/A impact ratings are justified if the WARN_ON path leads to kernel memory unsafety or panic, but the actual exploitability chain - reaching a stable privilege escalation - has not been demonstrated publicly. This is a real kernel bug warranting patching on next maintenance cycle, but does not require emergency response absent targeted exploitation evidence. |
| Exploit ScenarioDerived | A local user with shell access on a Linux system mounts or uses a tmpfs filesystem with quota support enabled. By spawning concurrent threads that simultaneously acquire and release dquot references - causing rapid rbtree rebalancing - the attacker races shmem_release_dquot() to fetch a stale root pointer before the semaphore is held, triggering a kernel WARN_ON or potential use-after-free. No public proof-of-concept exploit exists, and reliable exploitation would require careful timing to win the race window. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 04, 2026
Race condition in the Linux kernel's tmpfs (shmem) subsystem allows a local unprivileged user to trigger kernel memory corruption or a system panic via improper synchronization on the dquot rbtree. The root node of the rbtree is fetched outside the protection of dqopt->dqio_sem in shmem_release_dquot(), allowing a concurrent thread to rebalance the tree before the search begins - causing the searcher to operate from a stale root and miss the target node. Discovered via a syzkaller reproducer; no public exploit exists and EPSS is low (0.48%), but the CVSS impact rating of C:H/I:H/A:H reflects the potential for kernel-level memory unsafety. Upstream patches are available in stable kernel commits but an exact tagged release version has not been independently confirmed.
Earlier versions of this analysis (1)
Concurrent execution without proper synchronization in the Linux kernel's tmpfs dquot rbtree handling allows a local low-privilege attacker to trigger incorrect tree traversal, potentially corrupting quota state or causing denial of service. The race window exists because shmem_release_dquot() fetches the rbtree root before acquiring dqopt->dqio_sem, enabling a competing thread to rebalance the tree in the gap, causing the releasing thread to search from the wrong root and miss the target node. No public exploit has been identified, EPSS is 0.48%, and the vulnerability is not listed in CISA KEV, indicating low active exploitation pressure despite a high CVSS score.
RemediationAI
Apply the upstream stable kernel patches available at https://git.kernel.org/stable/c/0a69b6b3a026543bc215ccc866d0aea5579e6ce2, https://git.kernel.org/stable/c/617d55b90e73c7b4aa2733ca6cc3f9b72d1124bb, https://git.kernel.org/stable/c/c7077f43f30d817d10a9f8245e51576ac114b2f0, and https://git.kernel.org/stable/c/f82f184874d2761ebaa60dccf577921a0dbb3810. These are upstream fix commits backported to stable branches; a specific tagged release version incorporating all four fixes has not been independently confirmed from available data, so verify with your Linux distribution's kernel errata (e.g., RHSA, USN, DSA). As a compensating control, disabling quota support on tmpfs mounts (remove the usrquota/grpquota mount options) eliminates the code path that triggers the race; this has the trade-off of removing quota enforcement for affected filesystems. Upgrading to a distribution kernel already shipping the fix is preferred over relying on the mount-option workaround.
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
Tmpfs (shmem) in the Linux kernel supports disk quota tracking via a red-black tree (rbtree) of dquot objects, protected by the dqopt->dqio_sem read-write semaphore. CVE-2024-27058 is rooted in CWE-362 (race condition due to concurrent access to a shared resource with improper synchronization). Specifically, shmem_release_dquot() reads the rbtree root before acquiring the semaphore, while a concurrent path (shmem_acquire/release_dquot) can acquire the semaphore, trigger a tree rebalance, and release it. When the first thread finally acquires the semaphore, it searches from a now-stale root pointer, fails to locate the target node, and fires a kernel WARN_ON - which can escalate to a kernel panic on hardened configurations. The affected CPE is cpe:2.3:o:linux:linux_kernel up through 6.9:rc1. The fix was submitted under reporter ID 416baaa9-dc9f-4396-8d5f-8c081fb06d67 and backported to multiple stable branches.
Know when the next one hits your stack
- 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
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Race condition inherently requires winning a narrow timing window, warranting AC:H over the NVD-assigned AC:L; all other metrics unchanged.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
5DescriptionCVE.org
In the Linux kernel, the following vulnerability has been resolved:
tmpfs: fix race on handling dquot rbtree
A syzkaller reproducer found a race while attempting to remove dquot information from the rb tree.
Fetching the rb_tree root node must also be protected by the dqopt->dqio_sem, otherwise, giving the right timing, shmem_release_dquot() will trigger a warning because it couldn't find a node in the tree, when the real reason was the root node changing before the search starts:
Thread 1 Thread 2
- shmem_release_dquot() - shmem_{acquire,release}_dquot()
- fetch ROOT - Fetch ROOT
- acquire dqio_sem
- wait dqio_sem
- do something, triger a tree rebalance
- release dqio_sem
- acquire dqio_sem
- start searching for the node, but
from the wrong location, missing the node, and triggering a warning.
Executive ViewAI
CVE-2024-27058 impacts Linux kernel systems through a synchronization flaw that can cause unexpected system crashes and data loss when accessed by local users. Organizations running Linux infrastructure-including production servers, workstations, and containerized environments-face operational risk from potential unplanned downtime and loss of data integrity. Prompt patching of the Linux kernel across your fleet is essential to prevent service disruptions and maintain business continuity.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB