Bug 2414744 (CVE-2025-40198)

Summary: CVE-2025-40198 kernel: ext4: avoid potential buffer over-read in parse_apply_sb_mount_options()
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A buffer over-read vulnerability was found in the Linux kernel's ext4 filesystem when parsing mount options stored in the superblock. A local user can trigger this issue by mounting a maliciously crafted ext4 filesystem where the s_mount_opts string field lacks proper NULL termination. During mount option parsing, the code reads beyond the field's boundaries searching for the terminator, potentially accessing invalid memory and causing kernel crashes or denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-11-12 23:03:59 UTC
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.