CVE-2025-40198
Unknown Unknown - Not Provided

BaseFortify

Vulnerability report for CVE-2025-40198, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2025-11-12

Last updated on: 2025-11-14

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2025-11-12
Last Modified
2025-11-14
Generated
2026-07-06
AI Q&A
2025-11-13
EPSS Evaluated
2026-07-05
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a potential buffer over-read in the Linux kernel's ext4 filesystem code, specifically in the function parse_apply_sb_mount_options(). The issue arises because the code assumes that the s_mount_opts string in the ext4 superblock is NUL terminated, relying on the tune2fs tool to ensure this. However, if s_mount_opts is not properly NUL terminated, it can lead to reading beyond the intended buffer, which is a security risk. The fix hardens the function by treating s_mount_opts as a potential non-string to avoid this over-read.

Impact Analysis

This vulnerability can lead to a buffer over-read, which may cause the system to read memory beyond the intended buffer. This can potentially result in information disclosure, system instability, or crashes. In some cases, such vulnerabilities can be exploited to escalate privileges or execute arbitrary code, depending on the context and how the over-read is leveraged.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2025-40198. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart