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).

Exploitability

There is no known public exploit code or evidence of in-the-wild exploitation for CVE-2025-40351. The EPSS score is very low at 0.024%, reflecting minimal exploitation probability (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access to a system that mounts an HFS+ filesystem, significantly limiting the attack surface.

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

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.158-1

Fixed

sid

linux: 6.17.6-1

Fixed

trixie

linux: 6.12.57-1

Fixed

Ubuntu

Fixed

bionic (esm-infra)

linux

Affected

bionic (fips-updates)

linux-fips

Affected

bionic (fips)

linux-fips

Affected

devel

linux

Not Affected

focal (esm-infra)

linux

Affected

focal (fips-updates)

linux-fips

Affected

focal (fips)

linux-fips

Affected

jammy

linux: 5.15.0-170.180

Fixed

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This 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-99099NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-modules
NoYesOct 26, 2026
CVE-2026-99098NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug
NoYesOct 26, 2026
CVE-2026-99097NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-core
NoYesOct 26, 2026
CVE-2026-99096NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesOct 26, 2026
CVE-2026-99094NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-core
NoYesOct 26, 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

Additional Wiz resources

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