Security readout for executives and security teams
Plain-English summary
A flaw in the Linux kernel's HFS filesystem driver lets a malformed filesystem trigger a memory read past the end of an allowed buffer. In practice this typically requires a crafted HFS image being mounted or written, and the most likely impact is a kernel crash or information disclosure rather than direct remote takeover.
Executive priority
Low priority for most enterprises. Patch on normal kernel update cycles; prioritize sooner only if your fleet routinely mounts untrusted HFS/Apple-formatted media (e.g., forensics, multimedia ingest, shared kiosks).
Technical view
An out-of-bounds read in __hfs_brec_find via hfs_strcmp occurs when hfs_write_inode is called with an inode whose hfs_name length exceeds HFS_NAMELEN (31). The fix validates the name length in hfs_write_inode before invoking hfs_brec_find. Found by Syzbot with KASAN. Fixed in stable trees including 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.
Likely exposure
Affects Linux systems with the HFS filesystem driver loaded that mount or process untrusted HFS volumes. Most servers and cloud workloads do not use HFS, limiting exposure. Highest concern is systems that auto-mount removable media or process user-supplied disk images.
Exploitation context
Not listed in CISA KEV and no public exploitation reported in the source bundle. Discovered by Syzbot fuzzing; the trigger requires a maliciously crafted HFS image being processed by the kernel. Likely outcomes are a kernel oops or a limited information leak.
Researcher notes
Bug class: KASAN slab-out-of-bounds read in fs/hfs/string.c:84 reachable via hfs_write_inode -> hfs_brec_find -> __hfs_brec_find -> hfs_cat_keycmp -> hfs_strcmp when hfs_name.len exceeds HFS_NAMELEN (31). Fix adds a length sanity check in hfs_write_inode. Multiple stable backports were issued; legacy HFS driver is rarely deployed but remains compiled in many distro kernels.
Mitigation direction
- Update Linux kernels to a fixed stable release (4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, or 6.2+).
- If patching is delayed, blacklist the hfs kernel module on systems that do not require it.
- Disable auto-mount of removable media and reject untrusted HFS disk images on shared hosts.
- Track distribution security advisories (RHEL, Ubuntu, SUSE, Debian) for backported fixes.
Validation and detection
- Confirm running kernel version against the fixed stable tags listed in the kernel.org commits.
- Check whether the hfs module is loaded with `lsmod | grep hfs` and whether it is needed.
- Review configuration for udisks/automount policies that could process attacker-supplied HFS media.
- Verify vendor advisory status from your Linux distribution's security tracker for CVE-2022-50581.
Public sources used
- CVE Program — CVE-2022-50581
- CVE List V5 record
- kernel.org stable commit 8c40f2db
- kernel.org stable commit c886c10a
- kernel.org stable commit 2344f17c
- kernel.org stable commit 90103ccb
- kernel.org stable commit 4fd3a118
- kernel.org stable commit 36729692
- kernel.org stable commit e9e69291
- kernel.org stable commit bfc9d8f2
- kernel.org stable commit 8d824e69
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2022-50581 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Unknown
- CVSS
- Not scored
- Known Exploited
- No
- Published
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS and timeline data
No CVSS vectors or timeline events were available in the normalized CVE source material.
Source materials
- CVE List V5 sourceCVE List V5
- https://git.kernel.org/stable/c/8c40f2dbae603ef0bd21e87c63f54ec59fd88256CVE reference
- https://git.kernel.org/stable/c/c886c10a6eddb99923b315f42bf63f448883ef9aCVE reference
- https://git.kernel.org/stable/c/2344f17c0a89c181ab1a9fef57fd8c3bddfd6e30CVE reference
- https://git.kernel.org/stable/c/90103ccb6e60aa4efe48993d23d6a528472f2233CVE reference
- https://git.kernel.org/stable/c/4fd3a11804c8877ff11fec59c5c53f1635331e3eCVE reference
- https://git.kernel.org/stable/c/367296925c7625c3969d2a78d7a3e1dee161beb5CVE reference
- https://git.kernel.org/stable/c/e9e692917c6e10a7066c7a6d092dcdc3d4e329f3CVE reference
- https://git.kernel.org/stable/c/bfc9d8f27f89717431a6aecce42ae230b437433fCVE reference
- https://git.kernel.org/stable/c/8d824e69d9f3fa3121b2dda25053bae71e2460d2CVE reference
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
