{"id":"CVE-2025-40198","summary":"ext4: avoid potential buffer over-read in parse_apply_sb_mount_options()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: avoid potential buffer over-read in parse_apply_sb_mount_options()\n\nUnlike other strings in the ext4 superblock, we rely on tune2fs to\nmake sure s_mount_opts is NUL terminated.  Harden\nparse_apply_sb_mount_options() by treating s_mount_opts as a potential\n__nonstring.","modified":"2026-03-20T12:43:12.941909Z","published":"2025-11-12T21:56:33.220Z","related":["SUSE-SU-2025:4393-1","SUSE-SU-2025:4422-1","SUSE-SU-2025:4505-1","SUSE-SU-2025:4516-1","SUSE-SU-2025:4517-1","SUSE-SU-2025:4521-1","SUSE-SU-2026:0316-1","SUSE-SU-2026:0473-1","SUSE-SU-2026:20012-1","SUSE-SU-2026:20015-1","SUSE-SU-2026:20021-1","SUSE-SU-2026:20039-1","SUSE-SU-2026:20059-1","SUSE-SU-2026:20473-1","SUSE-SU-2026:20496-1","openSUSE-SU-2025:20172-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40198.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/01829af7656b56d83682b3491265d583d502e502"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a0cf438320cdb783e0378570744c0ef0d83e934"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7bf46ff83a0ef11836e38ebd72cdc5107209342d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a6e94557cd05adc82fae0400f6e17745563e5412"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2bac84fde28fb6a88817b8b761abda17a1d300b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e651294218d2684302ee5ed95ccf381646f3e5b4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40198.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40198"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8b67f04ab9de5d8f3a71aef72bf02c995a506db5"},{"fixed":"7bf46ff83a0ef11836e38ebd72cdc5107209342d"},{"fixed":"b2bac84fde28fb6a88817b8b761abda17a1d300b"},{"fixed":"e651294218d2684302ee5ed95ccf381646f3e5b4"},{"fixed":"01829af7656b56d83682b3491265d583d502e502"},{"fixed":"2a0cf438320cdb783e0378570744c0ef0d83e934"},{"fixed":"a6e94557cd05adc82fae0400f6e17745563e5412"},{"fixed":"8ecb790ea8c3fc69e77bace57f14cf0d7c177bd8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40198.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.36"},{"fixed":"5.4.301"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.246"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"6.1.158"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.114"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40198.json"}}],"schema_version":"1.7.5"}