Kernel memory disclosure via unchecked HFS name length
Published Oct 22, 2025 · Updated Oct 22, 2025
Out-of-bounds read in the Linux HFS driver allows local users to disclose kernel memory or crash the host using a crafted HFS image. During inode writeback, hfs_write_inode passes an HFS catalog-name length above the 31-byte limit to hfs_brec_find, and hfs_strcmp reads beyond the name buffer. Triggering the flaw requires mounting the image through CAP_SYS_ADMIN or equivalent mount assistance; writeback can expose adjacent slab data or panic the kernel.
Summary
What happened
Out-of-bounds read in the Linux HFS driver allows local users to disclose kernel memory or crash the host using a crafted HFS image. During inode writeback, hfs_write_inode passes an HFS catalog-name length above the 31-byte limit to hfs_brec_find, and hfs_strcmp reads beyond the name buffer. Triggering the flaw requires mounting the image through CAP_SYS_ADMIN or equivalent mount assistance; writeback can expose adjacent slab data or panic the kernel.
The record
- CVE
- CVE-2022-50581
- Published
- Oct 22, 2025
- Updated
- Oct 22, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 22, 2025CVE publishedPublication date reported by the CVE source.
- Oct 22, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2344f17c0a89c181ab1a9fef57fd8c3bddfd6e30
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <367296925c7625c3969d2a78d7a3e1dee161beb5
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <4fd3a11804c8877ff11fec59c5c53f1635331e3e
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <8c40f2dbae603ef0bd21e87c63f54ec59fd88256
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <8d824e69d9f3fa3121b2dda25053bae71e2460d2
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <90103ccb6e60aa4efe48993d23d6a528472f2233
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <bfc9d8f27f89717431a6aecce42ae230b437433f
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c886c10a6eddb99923b315f42bf63f448883ef9a
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <e9e692917c6e10a7066c7a6d092dcdc3d4e329f3
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo