CVE-2025-40198

published 12 Nov 2025 · updated 15 Oct 2026

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

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 01829af7656b56d83682b3491265d583d502e502, Kernel 2a0cf438320cdb783e0378570744c0ef0d83e934, Kernel 7bf46ff83a0ef11836e38ebd72cdc5107209342d and 4 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=2.6.36, >=8b67f04ab9de5d8f3a71aef72bf02c995a506db5 <01829af7656b56d83682b3491265d583d502e502, >=8b67f04ab9de5d8f3a71aef72bf02c995a506db5 <2a0cf438320cdb783e0378570744c0ef0d83e934, >=8b67f04ab9de5d8f3a71aef72bf02c995a506db5 <7bf46ff83a0ef11836e38ebd72cdc5107209342d, >=8b67f04ab9de5d8f3a71aef72bf02c995a506db5 <8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8, >=8b67f04ab9de5d8f3a71aef72bf02c995a506db5 <a6e94557cd05adc82fae0400f6e17745563e5412, >=8b67f04ab9de5d8f3a71aef72bf02c995a506db5 <b2bac84fde28fb6a88817b8b761abda17a1d300b, >=8b67f04ab9de5d8f3a71aef72bf02c995a506db5 <e651294218d2684302ee5ed95ccf381646f3e5b401829af7656b56d83682b3491265d583d502e502, 2a0cf438320cdb783e0378570744c0ef0d83e934, 7bf46ff83a0ef11836e38ebd72cdc5107209342d, 8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8, a6e94557cd05adc82fae0400f6e17745563e5412, b2bac84fde28fb6a88817b8b761abda17a1d300b, e651294218d2684302ee5ed95ccf381646f3e5b4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40198 severity on Zeptric[![CVE-2025-40198](https://zeptric.io/badge/cve/CVE-2025-40198.svg)](https://zeptric.io/cve/CVE-2025-40198)