CVE-2025-40198 Details
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.
A potential buffer over-read vulnerability has been addressed in the Linux kernel's ext4 file system. The issue arises in the superblock mount options, where the string s_mount_opts is not guaranteed to be null-terminated. This vulnerability could lead to improper handling of mount options, as the parsing function may read beyond the intended buffer. The vulnerability affects several versions of the Linux kernel.
Users can ensure that mount options are properly null-terminated when using the tune2fs command. Additionally, upgrading to a patched version of the Linux kernel will address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 12, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/01829af7656b56d83682b3491265d583d502e502 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/2a0cf438320cdb783e0378570744c0ef0d83e934 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/7bf46ff83a0ef11836e38ebd72cdc5107209342d | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a6e94557cd05adc82fae0400f6e17745563e5412 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b2bac84fde28fb6a88817b8b761abda17a1d300b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e651294218d2684302ee5ed95ccf381646f3e5b4 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| ext4 | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 12, 2025 | New CVE Received | kernel.org |
Volerion