Kernel memory corruption via unchecked HFS filename conversion
Published Dec 24, 2025 · Updated Dec 24, 2025
Out-of-bounds write in the Linux kernel HFS driver allows local users to corrupt kernel memory through a crafted filename lookup. In fs/hfs/trans.c, hfs_asc2mac keeps converting an overlong name after the destination reaches HFS_NAMELEN because its loop checks source length but not remaining destination length. Reachability requires local access to an HFS mount with an I/O character set; the overwrite can crash the kernel or corrupt adjacent heap objects.
Summary
What happened
Out-of-bounds write in the Linux kernel HFS driver allows local users to corrupt kernel memory through a crafted filename lookup. In fs/hfs/trans.c, hfs_asc2mac keeps converting an overlong name after the destination reaches HFS_NAMELEN because its loop checks source length but not remaining destination length. Reachability requires local access to an HFS mount with an I/O character set; the overwrite can crash the kernel or corrupt adjacent heap objects.
The record
- CVE
- CVE-2022-50747
- Published
- Dec 24, 2025
- Updated
- Dec 24, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-787, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 24, 2025CVE publishedPublication date reported by the CVE source.
- Dec 24, 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=2.6.14
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <6a95b17e4d4cd2d8278559f930b447f8c9c8cff9
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <7af9cb8cbb81308ce4b06cc7164267faccbf75dd
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <8399318b13dc9e0569dee07ba2994098926d4fb2
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <88579c158e026860c61c4192531e8bc42f4bc642
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <95040de81c629cd8d3c6ab5b50a8bd5088068303
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <ae21b03f904736eb2aa9bd119d2a14e741f1681f
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <ba8f0ca386dd15acf5a93cbac932392c7818eab4
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <c53ed55cb275344086e32a7080a6b19cb183650b
- Affected versionversion=328b9227865026268261a24a97a578907b280415 <cff9fefdfbf5744afbb6d70bff2b49ec2065d23d
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.
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