CVE-2025-22079
kernel: ocfs2: validate l_tree_depth to avoid out-of-bounds access
Severity
UnknownRed Hat Product Security
CVSS
Review impact separately from score.
Published · April 16, 2025
Updated · October 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: validate l_tree_depth to avoid out-of-bounds access
The l_tree_depth field is 16-bit (__le16), but the actual maximum depth is limited to OCFS2_MAX_PATH_DEPTH.
Add a check to prevent out-of-bounds access if l_tree_depth has an invalid value, which may occur when reading from a corrupted mounted disk [1].
Statement
Red Hat products are not impacted by this flaw because the OCFS2 filesystem driver is not built or enabled in supported Red Hat Enterprise Linux kernels. In upstream environments, mounting a maliciously crafted or corrupted filesystem volume could trigger out-of-bounds memory access, potentially leading to a kernel crash. Because the vulnerable module is absent from all supported configurations, Red Hat deployments face no operational risk.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CWE not specified