CVE-2022-50581
BaseFortify
Publication date: 2025-10-22
Last updated on: 2025-10-22
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 6.1.0-rc6 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is an out-of-bounds (OOB) read in the Linux kernel's HFS filesystem code. Specifically, it occurs in the function hfs_strcmp when comparing HFS filenames. If the length field (len) in the inode structure is larger than the maximum allowed filename length (31), the code reads memory beyond the intended buffer, causing an OOB read. This happens because there was no proper check on the length before calling the function hfs_brec_find, which eventually calls hfs_strcmp. The issue was fixed by adding a length check in hfs_write_inode before calling hfs_brec_find.
How can this vulnerability impact me? :
This vulnerability can lead to an out-of-bounds read in kernel memory, which may cause system instability, crashes, or potentially expose sensitive kernel memory contents. Such memory exposure could be leveraged by an attacker to gain further information about the system or escalate privileges.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability is fixed by adding a check on the 'len' field in hfs_write_inode() before calling hfs_brec_find(). To mitigate this vulnerability, you should update your Linux kernel to a version that includes this fix.