CVE-2022-50581

Description

A flaw was found in the Linux kernel's Hierarchical File System (HFS) driver. This vulnerability can lead to a Denial of Service (DoS) or potential information disclosure. A local user capable of mounting a specially crafted or corrupted file system image with an invalid file name length can trigger an out-of-bounds memory read during disk write operations, causing the system to crash.

Statement

This vulnerability presents no operational impact for Red Hat customers because the legacy Hierarchical File System (HFS) kernel driver is not built into Red Hat Enterprise Linux kernels. The underlying defect stems from inadequate length validation of file names during disk write operations, which could allow a mounted corrupt filesystem to trigger an out-of-bounds memory read. Because the affected filesystem driver is entirely excluded from supported enterprise kernels, Red Hat systems are not exposed to this flaw.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks.

Confidentiality

Technical Impact: Bypass Protection Mechanism

Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string.

Other

Technical Impact: Varies by Context

The read operation could produce other undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.