CVE-2022-50747
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50747 is an out-of-bounds (OOB) write vulnerability in the Linux kernel's HFS (Hierarchical File System) filesystem driver, specifically in the hfs_asc2mac function in fs/hfs/trans.c. The flaw was discovered via Syzbot fuzzing and disclosed on December 24, 2025. It affects Linux kernel versions from 2.6.14 up to the patched stable releases across multiple long-term support branches. The CVSS estimate is Medium severity, with an EPSS score of approximately 0.033% (Red Hat CVE, Feedly).

Technical details

The root cause is a missing bounds check (CWE-787: Out-of-Bounds Write) in the hfs_asc2mac() function, which converts ASCII filenames to Mac format. When the input filename length (in->len) exceeds HFS_NAMELEN (31 characters — the maximum HFS filename length), the function continues writing to the destination buffer past its allocated boundary. The call chain triggering the bug is: hfs_lookuphfs_cat_build_keyhfs_asc2mac, meaning the vulnerability can be reached when a process attempts to open a file on a mounted HFS filesystem with a crafted, oversized filename. KASAN reports this as a slab-out-of-bounds write of size 1. The fix adds a dstlen check inside the while() loop before each write to the destination address (Red Hat CVE, Red Hat Bugzilla).

Impact

Successful exploitation could result in kernel memory corruption due to the slab-out-of-bounds write, potentially leading to arbitrary code execution in kernel context or a kernel panic (system crash), impacting availability and integrity. An attacker with the ability to mount a crafted HFS filesystem image or influence filename processing on a system with HFS support enabled could trigger this condition. The vulnerability is local in nature and primarily affects systems that mount HFS filesystems, such as Linux systems interoperating with legacy Apple HFS volumes (Red Hat CVE, Feedly).

Mitigation and workarounds

Patches have been backported to multiple Linux stable kernel branches. Fixed versions include: 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, and 6.2. Administrators should update to the latest patched kernel version for their distribution. As a workaround, systems that do not require HFS filesystem support can blacklist or disable the hfs kernel module (echo 'install hfs /bin/true' >> /etc/modprobe.d/disable-hfs.conf) to prevent the vulnerable code path from being reached (Red Hat CVE, Red Hat Bugzilla).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management