CVE-2025-40351
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40351 is a kernel memory safety vulnerability in the Linux kernel's HFS+ (hfsplus) filesystem driver, specifically an uninitialized value (KMSAN uninit-value) bug in the hfsplus_delete_cat() function. The issue was reported by syzbot and affects the Linux kernel across multiple stable branches. It was published on December 16, 2025, with fixes backported to multiple stable kernel versions (Feedly). The CVSS score has not been formally assigned at the time of this report, and the CVE status is listed as "Unknown" (Feedly).

Technical details

The root cause is use of an uninitialized memory value (CWE-457) within the HFS+ filesystem driver. Specifically, hfsplus_subfolders_inc() stores an uninitialized value to memory during directory creation (hfsplus_create_cat()hfsplus_mknod()hfsplus_mkdir()), which is later read by hfsplus_subfolders_dec() during directory deletion (hfsplus_delete_cat()hfsplus_rmdir()). The bug was detected by KMSAN (Kernel Memory Sanitizer) via syzbot fuzzing, indicating it requires local filesystem operations (mounting an HFS+ volume and performing mkdir/rmdir operations) to trigger (Feedly). Fixes were committed to multiple stable kernel trees via patches at git.kernel.org (commits 1b9e5ade, 2bb8bc99, 9b3d15a7, 9df3c241, 4891bf2b).

Impact

Exploitation of this vulnerability could lead to kernel instability or a system crash (denial of service) due to the use of uninitialized memory in a critical filesystem code path. In certain scenarios, reading uninitialized kernel memory may also expose sensitive kernel data, posing a limited information disclosure risk. The impact is generally local and confined to systems that mount HFS+ filesystems, which is more common in environments interoperating with macOS-formatted volumes (Feedly).

Mitigation and workarounds

Apply the upstream Linux kernel patches that fix the uninitialized value in hfsplus_delete_cat(). Fixes have been committed to multiple stable kernel branches (commits 1b9e5ade272f, 2bb8bc99b1a7, 9b3d15a75891, 9df3c241fbf6, 4891bf2b09c3 on git.kernel.org). Distributions including Amazon Linux 2 (kernel 5.4 and 5.10) have issued updated packages (Amazon Linux ALAS). As a workaround, avoid mounting untrusted or unnecessary HFS+ filesystems on affected systems until a patched kernel is applied.

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