# CVE-2025-40351: hfsplus: fix KMSAN uninit-value issue in hfsplus\_delete\_cat()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-16T13:30:24.764Z
- **Modified:** 2026-06-17T09:21:42.157Z

## Who should check

- Anyone running Linux \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< a2bee43b451615531ae6f3cf45054f02915ef885; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< b07630afe1671096dc64064190cae3b6165cf6e4; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 9df3c241fbf69edce968b20eeeeb3f6da34af041; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 1b9e5ade272f8be6421c9eea4c4f6810180017f9; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 2bb8bc99b1a7a46d83f95c46f530305f6df84eaf; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 295527bfdefd5bf31ec8218e2891a65777141d05; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 4891bf2b09c313622a6e07d7f108aa5e123c768d; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 9b3d15a758910bb98ba8feb4109d99cc67450ee4
- Anyone running Linux 3.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

hfsplus: fix KMSAN uninit-value issue in hfsplus\_delete\_cat()

The syzbot reported issue in hfsplus\_delete\_cat():

\[   70.682285\]\[ T9333\] =====================================================
\[   70.682943\]\[ T9333\] BUG: KMSAN: uninit-value in hfsplus\_subfolders\_dec+0x1d7/0x220
\[   70.683640\]\[ T9333\]  hfsplus\_subfolders\_dec+0x1d7/0x220
\[   70.684141\]\[ T9333\]  hfsplus\_delete\_cat+0x105d/0x12b0
\[   70.684621\]\[ T9333\]  hfsplus\_rmdir+0x13d/0x310
\[   70.685048\]\[ T9333\]  vfs\_rmdir+0x5ba/0x810
\[   70.685447\]\[ T9333\]  do\_rmdir+0x964/0xea0
\[   70.685833\]\[ T9333\]  \_\_x64\_sys\_rmdir+0x71/0xb0
\[   70.686260\]\[ T9333\]  x64\_sys\_call+0xcd8/0x3cf0
\[   70.686695\]\[ T9333\]  do\_syscall\_64+0xd9/0x1d0
\[   70.687119\]\[ T9333\]  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
\[   70.687646\]\[ T9333\]
\[   70.687856\]\[ T9333\] Uninit was stored to memory at:
\[   70.688311\]\[ T9333\]  hfsplus\_subfolders\_inc+0x1c2/0x1d0
\[   70.688779\]\[ T9333\]  hfsplus\_create\_cat+0x148e/0x1800
\[   70.689231\]\[ T9333\]  hfsplus\_mknod+0x27f/0x600
\[   70.689730\]\[ T9333\]  hfsplus\_mkdir+0x5a/0x70
\[   70.690146\]\[ T9333\]  vfs\_mkdir+0x483/0x7a0
\[   70.690545\]\[ T9333\]  do\_mkdirat+0x3f2/0xd30
\[   70.690944\]\[ T9333\]  \_\_x64\_sys\_mkdir+0x9a/0xf0
\[   70.691380\]\[ T9333\]  x64\_sys\_call+0x2f89/0x3cf0
\[   70.691816\]\[ T9333\]  do\_syscall\_64+0xd9/0x1d0
\[   70.692229\]\[ T9333\]  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
\[   70.692773\]\[ T9333\]
\[   70.692990\]\[ T9333\] Uninit was stored to memory at:
\[   70.693469\]\[ T9333\]  hfsplus\_subfolders\_inc+0x1c2/0x1d0
\[   70.693960\]\[ T9333\]  hfsplus\_create\_cat+0x148e/0x1800
\[   70.694438\]\[ T9333\]  hfsplus\_fill\_super+0x21c1/0x2700
\[   70.694911\]\[ T9333\]  mount\_bdev+0x37b/0x530
\[   70.695320\]\[ T9333\]  hfsplus\_mount+0x4d/0x60
\[   70.695729\]\[ T9333\]  legacy\_get\_tree+0x113/0x2c0
\[   70.696167\]\[ T9333\]  vfs\_get\_tree+0xb3/0x5c0
\[   70.696588\]\[ T9333\]  do\_new\_mount+0x73e/0x1630
\[   70.697013\]\[ T9333\]  path\_mount+0x6e3/0x1eb0
\[   70.697425\]\[ T9333\]  \_\_se\_sys\_mount+0x733/0x830
\[   70.697857\]\[ T9333\]  \_\_x64\_sys\_mount+0xe4/0x150
\[   70.698269\]\[ T9333\]  x64\_sys\_call+0x2691/0x3cf0
\[   70.698704\]\[ T9333\]  do\_syscall\_64+0xd9/0x1d0
\[   70.699117\]\[ T9333\]  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
\[   70.699730\]\[ T9333\]
\[   70.699946\]\[ T9333\] Uninit was created at:
\[   70.700378\]\[ T9333\]  \_\_alloc\_pages\_noprof+0x714/0xe60
\[   70.700843\]\[ T9333\]  alloc\_pages\_mpol\_noprof+0x2a2/0x9b0
\[   70.701331\]\[ T9333\]  alloc\_pages\_noprof+0xf8/0x1f0
\[   70.701774\]\[ T9333\]  allocate\_slab+0x30e/0x1390
\[   70.702194\]\[ T9333\]  \_\_\_slab\_alloc+0x1049/0x33a0
\[   70.702635\]\[ T9333\]  kmem\_cache\_alloc\_lru\_noprof+0x5ce/0xb20
\[   70.703153\]\[ T9333\]  hfsplus\_alloc\_inode+0x5a/0xd0
\[   70.703598\]\[ T9333\]  alloc\_inode+0x82/0x490
\[   70.703984\]\[ T9333\]  iget\_locked+0x22e/0x1320
\[   70.704428\]\[ T9333\]  hfsplus\_iget+0x5c/0xba0
\[   70.704827\]\[ T9333\]  hfsplus\_btree\_open+0x135/0x1dd0
\[   70.705291\]\[ T9333\]  hfsplus\_fill\_super+0x1132/0x2700
\[   70.705776\]\[ T9333\]  mount\_bdev+0x37b/0x530
\[   70.706171\]\[ T9333\]  hfsplus\_mount+0x4d/0x60
\[   70.706579\]\[ T9333\]  legacy\_get\_tree+0x113/0x2c0
\[   70.707019\]\[ T9333\]  vfs\_get\_tree+0xb3/0x5c0
\[   70.707444\]\[ T9333\]  do\_new\_mount+0x73e/0x1630
\[   70.707865\]\[ T9333\]  path\_mount+0x6e3/0x1eb0
\[   70.708270\]\[ T9333\]  \_\_se\_sys\_mount+0x733/0x830
\[   70.708711\]\[ T9333\]  \_\_x64\_sys\_mount+0xe4/0x150
\[   70.709158\]\[ T9333\]  x64\_sys\_call+0x2691/0x3cf0
\[   70.709630\]\[ T9333\]  do\_syscall\_64+0xd9/0x1d0
\[   70.710053\]\[ T9333\]  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
\[   70.710611\]\[ T9333\]
\[   70.710842\]\[ T9333\] CPU: 3 UID: 0 PID: 9333 Comm: repro Not tainted 6.12.0-rc6-dirty \#17
\[   70.711568\]\[ T9333\] Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
\[   70.712490\]\[ T9333\] =====================================================
\[   70.713085\]\[ T9333\] Disabling lock debugging due to kernel taint
\[   70.713618\]\[ T9333\] Kernel panic - not syncing: kmsan.panic set ...
\[   70.714159\]\[ T9333\] 
---truncated---

## Affected and fixed versions

- Linux: \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< a2bee43b451615531ae6f3cf45054f02915ef885; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< b07630afe1671096dc64064190cae3b6165cf6e4; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 9df3c241fbf69edce968b20eeeeb3f6da34af041; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 1b9e5ade272f8be6421c9eea4c4f6810180017f9; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 2bb8bc99b1a7a46d83f95c46f530305f6df84eaf; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 295527bfdefd5bf31ec8218e2891a65777141d05; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 4891bf2b09c313622a6e07d7f108aa5e123c768d; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 9b3d15a758910bb98ba8feb4109d99cc67450ee4 (cvelist)
- Linux: 3.14 (cvelist)

## Mitigation

- Upgrade Linux to 9b3d15a758910bb98ba8feb4109d99cc67450ee4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40351. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40351.md
Affected: Linux >= d7d673a591701f131e53d4fd4e2b9352f1316642, < a2bee43b451615531ae6f3cf45054f02915ef885; >= d7d673a591701f131e53d4fd4e2b9352f1316642, < b07630afe1671096dc64064190cae3b6165cf6e4; >= d7d673a591701f131e53d4fd4e2b9352f1316642, < 9df3c241fbf69edce968b20eeeeb3f6da34af041; >= d7d673a591701f131e53d4f…
Fixed in: Linux 9df3c241fbf69edce968b20eeeeb3f6da34af041, Linux 1b9e5ade272f8be6421c9eea4c4f6810180017f9, Linux 2bb8bc99b1a7a46d83f95c46f530305f6df84eaf, Linux 295527bfdefd5bf31ec8218e2891a65777141d05, Linux 4891bf2b09c313622a6e07d7f108aa5e123c768d, Linux 9b3d15a758910bb98ba8feb4109d99cc67450ee4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40351 being exploited?

There is no confirmed exploitation: CVE-2025-40351 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40351?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40351?

Linux \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< a2bee43b451615531ae6f3cf45054f02915ef885; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< b07630afe1671096dc64064190cae3b6165cf6e4; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 9df3c241fbf69edce968b20eeeeb3f6da34af041; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 1b9e5ade272f8be6421c9eea4c4f6810180017f9; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 2bb8bc99b1a7a46d83f95c46f530305f6df84eaf; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 295527bfdefd5bf31ec8218e2891a65777141d05; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 4891bf2b09c313622a6e07d7f108aa5e123c768d; \>= d7d673a591701f131e53d4fd4e2b9352f1316642, \< 9b3d15a758910bb98ba8feb4109d99cc67450ee4; Linux 3.14.

### Is there a fix for CVE-2025-40351?

Yes. Fixed in Linux 9df3c241fbf69edce968b20eeeeb3f6da34af041, Linux 1b9e5ade272f8be6421c9eea4c4f6810180017f9, Linux 2bb8bc99b1a7a46d83f95c46f530305f6df84eaf, Linux 295527bfdefd5bf31ec8218e2891a65777141d05, Linux 4891bf2b09c313622a6e07d7f108aa5e123c768d, Linux 9b3d15a758910bb98ba8feb4109d99cc67450ee4. Upgrade Linux to 9b3d15a758910bb98ba8feb4109d99cc67450ee4 or later.

### How do I check if I'm affected by CVE-2025-40351?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/a2bee43b451615531ae6f3cf45054f02915ef885>
- other: <https://git.kernel.org/stable/c/b07630afe1671096dc64064190cae3b6165cf6e4>
- other: <https://git.kernel.org/stable/c/9df3c241fbf69edce968b20eeeeb3f6da34af041>
- other: <https://git.kernel.org/stable/c/1b9e5ade272f8be6421c9eea4c4f6810180017f9>
- other: <https://git.kernel.org/stable/c/2bb8bc99b1a7a46d83f95c46f530305f6df84eaf>
- other: <https://git.kernel.org/stable/c/295527bfdefd5bf31ec8218e2891a65777141d05>
- other: <https://git.kernel.org/stable/c/4891bf2b09c313622a6e07d7f108aa5e123c768d>
- other: <https://git.kernel.org/stable/c/9b3d15a758910bb98ba8feb4109d99cc67450ee4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40351>

HTML: <https://flawdb.com/CVE-2025-40351> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40351>
