Skip to main content

Linux Kernel CVE-2026-31452

| EUVDEUVD-2026-24791 HIGH
Out-of-bounds Write (CWE-787)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-g495-4jqx-cp59
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain local shell access
  2. Delivery
    Create small file with inline data
  3. Exploit
    Call truncate() to exceed inline capacity
  4. Execution
    Trigger write via sendfile()
  5. Persist
    Kernel BUG_ON() panic or memory corruption
  6. Impact
    Achieve denial of service or code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Requires authenticated local access with privileges to create files and execute truncate() system calls on an ext4 filesystem with inline data feature enabled (default configuration in most Linux distributions since kernel 3.8). The target filesystem must contain or allow creation of files initially small enough to be stored inline (typically under 156 bytes combining i_block and extended attribute space). Specifically, the attack requires: (1) ability to create a file stored with EXT4_INLINE_DATA_FL flag set, (2) permission to call truncate() to expand file size beyond inline capacity, and (3) ability to trigger subsequent write operations via sendfile(), write(), or similar syscalls. The vulnerability affects default ext4 configurations and does not require non-standard mount options, kernel parameters, or administrative privileges beyond standard user file creation rights. Exploitation is limited to local attack vector (AV:L) and requires low-privilege authentication (PR:L), but involves no user interaction (UI:N) once access is obtained.

Impact

Real-world exploitation risk is low despite the high CVSS 7.8 score. The CVSS vector (AV:L/AC:L/PR:L/UI:N) indicates local access with low-privilege authentication is required, limiting attack surface to users with existing shell access. EPSS score of 0.02% (7th percentile) aligns with this assessment, suggesting minimal observed exploitation activity in the wild. No CISA KEV listing and no public exploit identified at time of analysis further support low immediate threat. However, the vulnerability is technically exploitable (AC:L indicates low complexity once conditions are met) and results in kernel panic or potential code execution with kernel privileges (C:H/I:H/A:H), making it a priority for systems with untrusted local users or multi-tenant environments. The widespread availability of vendor patches across all active kernel series (5.10.253, 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, and 7.0) reduces risk for organizations maintaining current patch levels. Primary concern is Linux systems running ext4 filesystems in shared hosting, container environments, or where local privilege escalation could chain with remote access vulnerabilities.

Exploit ScenarioDerived

An authenticated local user with standard shell access on a Linux system using ext4 filesystems creates a small file that the filesystem stores using inline data optimization. The attacker issues a truncate() system call to expand the file size to 50MB while the inline data flag remains set due to missing conversion logic in ext4_setattr(). When the attacker subsequently attempts to write data via sendfile() or direct write operations, the kernel invokes ext4_write_inline_data() which triggers a BUG_ON() assertion failure when detecting the write size exceeds the ~156 byte inline capacity, causing immediate kernel panic and system denial of service. Alternatively, by carefully controlling memory state before triggering the inconsistency, sophisticated attackers could potentially leverage the out-of-bounds write condition to corrupt kernel memory structures and achieve arbitrary code execution with kernel privileges.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 06, 2026

Local privilege escalation in Linux Kernel ext4 filesystem allows authenticated users to trigger kernel crashes and potentially execute arbitrary code with high privileges. The vulnerability stems from improper handling of inline data conversion when truncate() operations exceed inline storage capacity in ext4 filesystems. Affected kernel versions include mainline through 7.0-rc3 and stable branches 5.10.x through 6.19.x, with vendor patches available across all active kernel series. EPSS exploitation probability is very low (0.02%, 7th percentile) and no public exploit identified at time of analysis, though CVSS 7.8 reflects high local impact if exploited.

RemediationAI

Upgrade to patched Linux kernel versions: 5.10.253 or later for 5.10.x series, 5.15.203 or later for 5.15.x, 6.1.168 or later for 6.1.x, 6.6.131 or later for 6.6.x, 6.12.80 or later for 6.12.x, 6.18.21 or later for 6.18.x, 6.19.11 or later for 6.19.x, or upgrade to mainline 7.0. Patches available from https://git.kernel.org/stable with specific commits referenced in official advisories at https://nvd.nist.gov/vuln/detail/CVE-2026-31452. For systems unable to immediately patch, consider disabling ext4 inline data feature by remounting filesystems with '-o noinline_data' mount option, though this requires unmounting and may impact small file performance; verify application compatibility before deploying as the mount option change persists in fstab and affects all files created subsequently. In multi-tenant environments, implement stricter local user quotas and monitoring for abnormal truncate() patterns on ext4 filesystems as a detection control, though this does not prevent exploitation. No effective runtime workaround exists without kernel patch or filesystem remount.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <699bac4d4c951974d55b045c983d1de777215949
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <07c1a31af18290054da3d18221b8bf58983c5d3a
Linux patch: 6.19.11
Linux patch: 6.1.168
Linux patch: 6.12.80
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <7920dcc571cef3d8aa9ee109c136125d61d41669
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f53a5d9f32924bc2a810d2df243b7714da58b636
Linux patch: 6.6.131
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ed9356a30e59c7cc3198e7fc46cfedf3767b9b17
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <110d7ef602659ce4d7947c5480f7ca2779696aaf
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c047332be7195833a5c5126816c2502df8269fe4
Linux patch: 7.0
Linux patch: 5.15.203
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <93cb2d103e5c707de0f7ad58a39b7f0fddc27aa6
Linux patch: 6.18.21
Linux patch: 5.10.253

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

This vulnerability affects the ext4 filesystem's inline data feature, which stores small file contents directly within the inode structure rather than allocating separate data blocks. The ext4 inline data implementation stores approximately 60 bytes in the i_block array plus up to 96 bytes in extended attributes for small files to optimize storage and performance. The flaw (CWE-787: Out-of-bounds Write) occurs in the ext4_setattr() function when truncate() system calls expand file size beyond inline capacity without converting to extent-based storage. This creates a state inconsistency where EXT4_INLINE_DATA_FL flag remains set but inode->i_size exceeds the actual inline capacity tracked in EXT4_I(inode)->i_inline_size. Subsequent write operations via sendfile() or other paths invoke ext4_write_inline_data(), which enforces a BUG_ON() assertion when write size exceeds inline capacity, causing immediate kernel panic. The affected code path spans inode attribute modification, inline data management, and filesystem consistency enforcement mechanisms within the ext4 driver.

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

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

5
CVSS changed
May 06, 2026 - 20:22 NVD
7.8 (HIGH)
Patch released
Apr 23, 2026 - 16:17 nvd
Patch available
Patch available
Apr 22, 2026 - 16:02 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
N/A
CVE Published
Apr 22, 2026 - 14:16 nvd
HIGH 7.8

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

ext4: convert inline data to extents when truncate exceeds inline size

Add a check in ext4_setattr() to convert files from inline data storage to extent-based storage when truncate() grows the file size beyond the inline capacity. This prevents the filesystem from entering an inconsistent state where the inline data flag is set but the file size exceeds what can be stored inline.

Without this fix, the following sequence causes a kernel BUG_ON():

  1. Mount filesystem with inode that has inline flag set and small size
  2. truncate(file, 50MB) - grows size but inline flag remains set
  3. sendfile() attempts to write data
  4. ext4_write_inline_data() hits BUG_ON(write_size > inline_capacity)

The crash occurs because ext4_write_inline_data() expects inline storage to accommodate the write, but the actual inline capacity (~60 bytes for i_block + ~96 bytes for xattrs) is far smaller than the file size and write request.

The fix checks if the new size from setattr exceeds the inode's actual inline capacity (EXT4_I(inode)->i_inline_size) and converts the file to extent-based storage before proceeding with the size change.

This addresses the root cause by ensuring the inline data flag and file size remain consistent during truncate operations.

Executive ViewAI

Why It Matters

CVE-2026-31452 is a local privilege escalation in Linux Kernel ext4 filesystem affecting authenticated users, with potential for arbitrary code execution at elevated privileges. Organizations running vulnerable kernel versions (5.10.x through 6.19.x, mainline through 7.0-rc3) face risk of denial of service and unauthorized privilege elevation by local attackers, requiring patching to maintain kernel integrity and prevent lateral movement within systems.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations if patching is delayed: restrict local user account provisioning and shell access to only trusted administrators; disable ext4 inline data feature via mount option 'noinline_data' where operationally feasible; implement mandatory access controls (SELinux/AppArmor) to restrict unprivileged process capabilities; monitor for anomalous kernel crash events and privilege escalation attempts via auditd.

Threat Intelligence Overview

Threat Score
5.1/10
Composite threat intelligence
EPSS Score
0.0%
Top 93% exploitable
Threat Intel
2
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High

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 Yes
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
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
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

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