Skip to main content

Linux Kernel CVE-2024-27058

HIGH
Race Condition (CWE-362)
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. Recon
    Gain local shell access
  2. Delivery
    Mount or locate tmpfs with quota enabled
  3. Exploit
    Spawn concurrent dquot acquire/release threads
  4. Install
    Win race on rbtree root fetch before semaphore acquired
  5. C2
    Search executes from stale root pointer
  6. Execute
    Trigger kernel WARN_ON or memory unsafety
  7. Impact
    Kernel 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.

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

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

Alert me

AnalysisAIv2 – 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)
v1 Aug 04, 2026 - 12:54 cvss changed CVSS 7.8

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

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.0 HIGH

Race condition inherently requires winning a narrow timing window, warranting AC:H over the NVD-assigned AC:L; all other metrics unchanged.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/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 - 12:55 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 12:54 vuln.today
v1 - CVSS changed
Severity Changed
Aug 04, 2026 - 11:23 NVD
MEDIUM HIGH
CVSS changed
Aug 04, 2026 - 11:23 NVD
4.7 (MEDIUM) 7.8 (HIGH)
CVE Published
May 01, 2024 - 13:15 cve.org
MEDIUM 4.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Ubiquitous
Linux kernel underpins the vast majority of server, cloud, and embedded deployments
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.5%
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

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

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

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:6.9:rc1:*:*:*:*:*:*

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