Skip to main content

Linux Kernel CVE-2025-40198

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
High
Disputed · 7.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Access
    Craft ext4 image with non-terminated s_mount_opts
  2. Delivery
    Deliver via USB or image file
  3. Exploit
    Victim or automount mounts volume
  4. Execution
    parse_apply_sb_mount_options reads past buffer
  5. Impact
    Leak kernel memory or crash system

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the attacker to supply a specially crafted ext4 filesystem image in which the superblock s_mount_opts string is not NUL-terminated (a state normally only reachable by bypassing tune2fs), and requires that image to be mounted on the target - the CVSS vector's UI:R captures this mount action. It is strictly local (AV:L): the attacker needs the ability to present a block device or image (removable media, a shared image, or a user-triggered mount) to the victim system. Limiting factors that reduce real-world risk: it cannot be triggered remotely or over a network, it only fires when an untrusted ext4 volume is actually mounted, systems that disable automounting and only mount trusted volumes are effectively unaffected, and mounting typically requires elevated privileges unless automount is enabled for removable media.

Impact

The supplied CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H = 7.8 High) reflects a local attack requiring a victim to mount a crafted filesystem (UI:R), with high impact if memory corruption is reachable. However, the underlying primitive is an over-READ, which most naturally yields information disclosure and denial of service rather than full integrity compromise, so the I:H rating is optimistic - the vendor tags label this 'Information Disclosure,' which better matches an over-read. EPSS is very low (0.07%, 21st percentile), the CVE is NOT in CISA KEV, and no POC is referenced, so all exploitation signals point to low real-world urgency. The realistic risk is a local user (or physical attacker via removable media/automount) causing a kernel info-leak or panic - meaningful for multi-tenant and kiosk/USB-exposed systems, but not an internet-facing emergency. This is a routine 'patch on next kernel update' item, not a drop-everything priority.

Exploit ScenarioDerived

An attacker crafts an ext4 disk image whose superblock s_mount_opts field lacks a NUL terminator and delivers it on a USB stick or as a downloadable image. When a victim (or an automount service) mounts the volume, parse_apply_sb_mount_options() reads past the field into adjacent kernel memory, leaking data into option parsing or crashing the kernel. No public POC is referenced, and the local vector plus required mount action (UI:R) keep this to targeted, physical/local-access scenarios.

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

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

Alert me

AnalysisAIv3 – Jul 30, 2026

Out-of-bounds buffer over-read in the Linux kernel ext4 filesystem driver allows disclosure of adjacent kernel memory or a system crash when a maliciously crafted ext4 superblock is mounted. The flaw lives in parse_apply_sb_mount_options(), which trusted the s_mount_opts field to be NUL-terminated (a guarantee normally provided only by tune2fs); a non-terminated string causes the parser to read past the buffer. There is no public exploit identified at time of analysis, and EPSS rates practical exploitation as very low (0.07%), consistent with a local-only, mount-triggered issue rather than a remote mass-exploitation candidate.

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 08:29 cvss changed CVSS 7.8

Out-of-bounds read in the Linux kernel's ext4 filesystem driver lets a crafted or corrupt ext4 superblock trigger a kernel buffer over-read during mount-time parsing of s_mount_opts. Because ext4 historically trusted tune2fs to NUL-terminate the s_mount_opts field, parse_apply_sb_mount_options() could read past the buffer when handling a filesystem image whose mount-options string is not terminated, potentially disclosing adjacent kernel memory or crashing the system. There is no public exploit identified at time of analysis, and the EPSS score is very low (0.07%), consistent with a local, filesystem-mount-triggered kernel hardening fix rather than a remotely weaponizable flaw.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: ext4: avoid potential buffer over-read in parse_apply_sb_mount_options() Unlike other strings in the ext4 superblock, we rely on.

RemediationAI

Patch available per vendor advisory: apply the upstream ext4 fix (kernel.org stable commits 01829af7656b, 2a0cf438320c, 7bf46ff83a0e, 8ecb790ea8c3, a6e94557cd05, b2bac84fde28, e651294218d2) by updating to the fixed kernel package for your branch - Ubuntu users should install the versions listed in USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1) and reboot into the new kernel; users of other distributions should take the equivalent stable-kernel update. As a compensating control until patched, prevent mounting of untrusted ext4 filesystems: disable USB/removable-media automounting (e.g. stop udisks2 auto-mount or set udev rules to ignore removable block devices), restrict the mount capability by ensuring only privileged administrators can mount filesystems (avoid user/automount fstab entries for ext4), and treat externally supplied disk images as untrusted. The trade-off is loss of convenience automounting and manual review of any external media, which is acceptable in servers, kiosks, and multi-tenant hosts where this exposure matters most.

Affected ProductsAI

The vulnerability affects the Linux kernel ext4 filesystem across multiple maintained stable branches, as evidenced by seven separate stable-tree fix commits (git.kernel.org commits 01829af7, 2a0cf438, 7bf46ff8, 8ecb790e, a6e94557, b2bac84f, e6512942), each backporting the fix to a different longterm/stable series. No exact CPE strings were provided in the input, so specific version ranges must be derived from the distribution advisories: Canonical documents affected and fixed kernel packages in Ubuntu Security Notices USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1) and USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1). Any kernel build that includes ext4 and mounts untrusted ext4 images before the fix commit is affected.

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

The bug is in the ext4 filesystem's superblock mount-option handling. When an ext4 volume is mounted, the kernel copies default mount options embedded in the on-disk superblock (s_mount_opts) and parses them via parse_apply_sb_mount_options(). Unlike other ext4 superblock strings, s_mount_opts has no in-kernel length/termination enforcement - the userspace tool tune2fs is relied upon to write a NUL-terminated value. An attacker-controlled image can omit the terminator, so string-parsing routines walk past the fixed on-disk field into adjacent memory. The root-cause class is CWE-125 (Out-of-bounds Read); the NVD entry lists CWE as N/A, so that mapping is inferred from the description ('buffer over-read' / '__nonstring'). The fix hardens the parser by treating s_mount_opts as a potential __nonstring and bounding the read.

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

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

Local, mount-triggered over-read reachable via automounted removable media (PR:N/UI:R); primitive leaks memory (C:H) and can panic the kernel (A:H) but does not corrupt data (I:N).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 4.4 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

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

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

Lifecycle Timeline

5
Analysis Updated
Jul 30, 2026 - 08:29 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 08:29 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:31 nvd
Patch available
CVE Published
Nov 12, 2025 - 22:15 nvd
N/A

DescriptionCVE.org

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

ext4: avoid potential buffer over-read in parse_apply_sb_mount_options()

Unlike other strings in the ext4 superblock, we rely on tune2fs to make sure s_mount_opts is NUL terminated. Harden parse_apply_sb_mount_options() by treating s_mount_opts as a potential __nonstring.

Executive ViewAI

Why It Matters

CVE-2025-40198 in the Linux kernel ext4 filesystem driver could expose sensitive kernel memory or cause system crashes when maliciously crafted ext4 superblocks are mounted. No public exploit identified at time of analysis, but the vulnerability threatens both data confidentiality and service availability across Linux infrastructure. Organizations should prioritize patching to eliminate the data exposure and system stability risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Prevalence
Ubiquitous
ext4 is the default filesystem across most Linux deployments
Data Quality
4 sources
Confidence: Medium

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.1%
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.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:latest Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.80 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.114 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.82 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.116 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.55 Affected

References

Advisories & patches
ADVISORY https://ubuntu.com/security/notices/USN-8125-1 ADVISORY https://ubuntu.com/security/notices/USN-8126-1 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4393/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4422/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4505/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4516/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4517/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4521/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0316/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0473/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20012/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20015/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20021/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20039/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20059/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20334/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20473/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20478/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20496/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20519/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20562/ REF https://git.kernel.org/stable/c/01829af7656b56d83682b3491265d583d502e502 REF https://git.kernel.org/stable/c/2a0cf438320cdb783e0378570744c0ef0d83e934 REF https://git.kernel.org/stable/c/7bf46ff83a0ef11836e38ebd72cdc5107209342d REF https://git.kernel.org/stable/c/8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8 REF https://git.kernel.org/stable/c/a6e94557cd05adc82fae0400f6e17745563e5412 REF https://git.kernel.org/stable/c/b2bac84fde28fb6a88817b8b761abda17a1d300b REF https://git.kernel.org/stable/c/e651294218d2684302ee5ed95ccf381646f3e5b4

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