CVE-2026-46169
Uninitialized Memory Read in Linux Kernel HFS+ Filesystem
Publication date: 2026-05-28
Last updated on: 2026-05-28
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the Linux kernel's hfsplus filesystem code. Specifically, the function hfs_brec_read() does not properly validate the size of on-disk catalog records before reading them. When mounting a corrupted filesystem, it may read fewer bytes than expected into a structure, leaving a large portion of the structure uninitialized.
This uninitialized data is then copied and used in subsequent functions, such as hfsplus_strcasecmp(), which triggers warnings from the Kernel Memory Sanitizer (KMSAN) because uninitialized memory is being accessed. The root cause is that hfs_brec_read() only checks if the read length is not greater than the buffer size but does not check if it is less than the expected size.
The fix involves introducing a wrapper function hfsplus_brec_read_cat() that validates the record size based on the record type and returns an error if the size does not match expectations. Additional defensive programming measures were added to initialize variables to prevent use of uninitialized data.
How can this vulnerability impact me? :
This vulnerability can lead to the use of uninitialized memory within the kernel when mounting a corrupted HFS+ filesystem. While the description focuses on triggering KMSAN warnings, uninitialized memory usage can potentially lead to unpredictable behavior, including information leaks or system instability.
Since the issue involves reading corrupted filesystem data without proper validation, it might be exploited to cause kernel errors or crashes, which could impact system reliability or security.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is fixed by validating the catalog record size when reading HFS+ filesystem records in the Linux kernel.
Immediate mitigation steps include updating the Linux kernel to a version that includes the fix which introduces the hfsplus_brec_read_cat() wrapper. This wrapper validates record sizes and returns an error if the size does not match the expected value, preventing uninitialized data usage.
Additionally, ensure that any corrupted HFS+ filesystems are not mounted until the kernel is updated, as the issue arises when mounting corrupted filesystems.