CVE-2025-40198

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

HIGH
7.8
CVSS Score
Published: November 12, 2025 at 09:56 PM UTC
Updated: October 19, 2026 at 09:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.368b67f04ab9de5d8f3a71aef72bf02c995a506db5
Vendor states this is fixed in 1829af7656b56d83682b3491265d583d502e502 (fixed)
Vendor states this is fixed in 2a0cf438320cdb783e0378570744c0ef0d83e934 (fixed)
Vendor states this is fixed in 7bf46ff83a0ef11836e38ebd72cdc5107209342d (fixed)
Vendor states this is fixed in 8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8 (fixed)
Vendor states this is fixed in a6e94557cd05adc82fae0400f6e17745563e5412 (fixed)
Vendor states this is fixed in b2bac84fde28fb6a88817b8b761abda17a1d300b (fixed)
Vendor states this is fixed in e651294218d2684302ee5ed95ccf381646f3e5b4 (fixed)
Vendor states this is fixed in 2.6.36 (unaffected)
Vendor states this is fixed in 5.10.246 (unaffected)
Vendor states this is fixed in 5.4.301 (unaffected)
Vendor states this is fixed in 6.1.158 (unaffected)
Vendor states this is fixed in 6.12.54 (unaffected)
Vendor states this is fixed in 6.17.4 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.114 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card