# CVE-2026-46299: hfsplus: fix held lock freed on hfsplus\_fill\_super()

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

- **Severity:** HIGH 7.0
- **CVSS:** 7.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.12% (percentile 1, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-06-08T15:46:26.670Z
- **Modified:** 2026-08-05T12:31:04.308Z

## Who should check

- Anyone running Linux \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< e890656accee4c26d932ea388eb8936a6e22184d; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 6499c9c8ec437a369e7e221dad91f6122b50759d; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< c554ddc87af4d4e4be42f8aed1baec9e1c7588e0; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 3ca80e3012c8be85b4f8d0d20eac8d3b17ff257e; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 041acda6d9f96006703466449c10c9a69590c8b9; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< d309d3308de658d87c42d97e044c89a226327526; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< bfbcce6a7b0552a390620d9b2c4d2bcb1825cbdc; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 90c500e4fd83fa33c09bc7ee23b6d9cc487ac733
- Anyone running Linux 3.19

## Description

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

hfsplus: fix held lock freed on hfsplus\_fill\_super()

hfsplus\_fill\_super() calls hfs\_find\_init() to initialize a search
structure, which acquires tree-\>tree\_lock. If the subsequent call to
hfsplus\_cat\_build\_key() fails, the function jumps to the out\_put\_root
error label without releasing the lock. The later cleanup path then
frees the tree data structure with the lock still held, triggering a
held lock freed warning.

Fix this by adding the missing hfs\_find\_exit(&fd) call before jumping
to the out\_put\_root error label. This ensures that tree-\>tree\_lock is
properly released on the error path.

The bug was originally detected on v6.13-rc1 using an experimental
static analysis tool we are developing, and we have verified that the
issue persists in the latest mainline kernel. The tool is specifically
designed to detect memory management issues. It is currently under active
development and not yet publicly available.

We confirmed the bug by runtime testing under QEMU with x86\_64 defconfig,
lockdep enabled, and CONFIG\_HFSPLUS\_FS=y. To trigger the error path, we
used GDB to dynamically shrink the max\_unistr\_len parameter to 1 before
hfsplus\_asc2uni() is called. This forces hfsplus\_asc2uni() to naturally
return -ENAMETOOLONG, which propagates to hfsplus\_cat\_build\_key() and
exercises the faulty error path. The following warning was observed
during mount:

	=========================
	WARNING: held lock freed!
	7.0.0-rc3-00016-gb4f0dd314b39 \#4 Not tainted
	-------------------------
	mount/174 is freeing memory ffff888103f92000-ffff888103f92fff, with a lock still held there!
	ffff888103f920b0 (&tree-\>tree\_lock){+.+.}-{4:4}, at: hfsplus\_find\_init+0x154/0x1e0
	2 locks held by mount/174:
	\#0: ffff888103f960e0 (&type-\>s\_umount\_key\#42/1){+.+.}-{4:4}, at: alloc\_super.constprop.0+0x167/0xa40
	\#1: ffff888103f920b0 (&tree-\>tree\_lock){+.+.}-{4:4}, at: hfsplus\_find\_init+0x154/0x1e0

	stack backtrace:
	CPU: 2 UID: 0 PID: 174 Comm: mount Not tainted 7.0.0-rc3-00016-gb4f0dd314b39 \#4 PREEMPT(lazy)
	Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014
	Call Trace:
	\<TASK\>
	dump\_stack\_lvl+0x82/0xd0
	debug\_check\_no\_locks\_freed+0x13a/0x180
	kfree+0x16b/0x510
	? hfsplus\_fill\_super+0xcb4/0x18a0
	hfsplus\_fill\_super+0xcb4/0x18a0
	? \_\_pfx\_hfsplus\_fill\_super+0x10/0x10
	? srso\_return\_thunk+0x5/0x5f
	? bdev\_open+0x65f/0xc30
	? srso\_return\_thunk+0x5/0x5f
	? pointer+0x4ce/0xbf0
	? trace\_contention\_end+0x11c/0x150
	? \_\_pfx\_pointer+0x10/0x10
	? srso\_return\_thunk+0x5/0x5f
	? bdev\_open+0x79b/0xc30
	? srso\_return\_thunk+0x5/0x5f
	? srso\_return\_thunk+0x5/0x5f
	? vsnprintf+0x6da/0x1270
	? srso\_return\_thunk+0x5/0x5f
	? \_\_mutex\_unlock\_slowpath+0x157/0x740
	? \_\_pfx\_vsnprintf+0x10/0x10
	? srso\_return\_thunk+0x5/0x5f
	? srso\_return\_thunk+0x5/0x5f
	? mark\_held\_locks+0x49/0x80
	? srso\_return\_thunk+0x5/0x5f
	? srso\_return\_thunk+0x5/0x5f
	? irqentry\_exit+0x17b/0x5e0
	? trace\_irq\_disable.constprop.0+0x116/0x150
	? \_\_pfx\_hfsplus\_fill\_super+0x10/0x10
	? \_\_pfx\_hfsplus\_fill\_super+0x10/0x10
	get\_tree\_bdev\_flags+0x302/0x580
	? \_\_pfx\_get\_tree\_bdev\_flags+0x10/0x10
	? vfs\_parse\_fs\_qstr+0x129/0x1a0
	? \_\_pfx\_vfs\_parse\_fs\_qstr+0x3/0x10
	vfs\_get\_tree+0x89/0x320
	fc\_mount+0x10/0x1d0
	path\_mount+0x5c5/0x21c0
	? \_\_pfx\_path\_mount+0x10/0x10
	? trace\_irq\_enable.constprop.0+0x116/0x150
	? trace\_irq\_enable.constprop.0+0x116/0x150
	? srso\_return\_thunk+0x5/0x5f
	? srso\_return\_thunk+0x5/0x5f
	? kmem\_cache\_free+0x307/0x540
	? user\_path\_at+0x51/0x60
	? \_\_x64\_sys\_mount+0x212/0x280
	? srso\_return\_thunk+0x5/0x5f
	\_\_x64\_sys\_mount+0x212/0x280
	? \_\_pfx\_\_\_x64\_sys\_mount+0x10/0x10
	? srso\_return\_thunk+0x5/0x5f
	? trace\_irq\_enable.constprop.0+0x116/0x150
	? srso\_return\_thunk+0x5/0x5f
	do\_syscall\_64+0x111/0x680
	entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
	RIP: 0033:0x7ffacad55eae
	Code: 48 8b 0d 85 1f 0f 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 a5 00 00 8
	RSP: 002b
---truncated---

## Affected and fixed versions

- Linux: \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< e890656accee4c26d932ea388eb8936a6e22184d; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 6499c9c8ec437a369e7e221dad91f6122b50759d; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< c554ddc87af4d4e4be42f8aed1baec9e1c7588e0; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 3ca80e3012c8be85b4f8d0d20eac8d3b17ff257e; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 041acda6d9f96006703466449c10c9a69590c8b9; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< d309d3308de658d87c42d97e044c89a226327526; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< bfbcce6a7b0552a390620d9b2c4d2bcb1825cbdc; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 90c500e4fd83fa33c09bc7ee23b6d9cc487ac733 (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

- Upgrade Linux to 90c500e4fd83fa33c09bc7ee23b6d9cc487ac733 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46299.md
Affected: Linux >= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, < e890656accee4c26d932ea388eb8936a6e22184d; >= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, < 6499c9c8ec437a369e7e221dad91f6122b50759d; >= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, < c554ddc87af4d4e4be42f8aed1baec9e1c7588e0; >= 89ac9b4d3d1a049ae1054f9…
Fixed in: Linux 6499c9c8ec437a369e7e221dad91f6122b50759d, Linux 3ca80e3012c8be85b4f8d0d20eac8d3b17ff257e, Linux 041acda6d9f96006703466449c10c9a69590c8b9, Linux 90c500e4fd83fa33c09bc7ee23b6d9cc487ac733

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-2026-46299 being exploited?

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

### How serious is CVE-2026-46299?

High: CVSS 7.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-46299?

Linux \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< e890656accee4c26d932ea388eb8936a6e22184d; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 6499c9c8ec437a369e7e221dad91f6122b50759d; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< c554ddc87af4d4e4be42f8aed1baec9e1c7588e0; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 3ca80e3012c8be85b4f8d0d20eac8d3b17ff257e; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 041acda6d9f96006703466449c10c9a69590c8b9; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< d309d3308de658d87c42d97e044c89a226327526; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< bfbcce6a7b0552a390620d9b2c4d2bcb1825cbdc; \>= 89ac9b4d3d1a049ae1054f99b1aed81092cd0a82, \< 90c500e4fd83fa33c09bc7ee23b6d9cc487ac733; Linux 3.19.

### Is there a fix for CVE-2026-46299?

Yes. Fixed in Linux 6499c9c8ec437a369e7e221dad91f6122b50759d, Linux 3ca80e3012c8be85b4f8d0d20eac8d3b17ff257e, Linux 041acda6d9f96006703466449c10c9a69590c8b9, Linux 90c500e4fd83fa33c09bc7ee23b6d9cc487ac733. Upgrade Linux to 90c500e4fd83fa33c09bc7ee23b6d9cc487ac733 or later.

### How do I check if I'm affected by CVE-2026-46299?

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

- patch: <https://git.kernel.org/stable/c/e890656accee4c26d932ea388eb8936a6e22184d>
- patch: <https://git.kernel.org/stable/c/6499c9c8ec437a369e7e221dad91f6122b50759d>
- patch: <https://git.kernel.org/stable/c/c554ddc87af4d4e4be42f8aed1baec9e1c7588e0>
- patch: <https://git.kernel.org/stable/c/3ca80e3012c8be85b4f8d0d20eac8d3b17ff257e>
- patch: <https://git.kernel.org/stable/c/041acda6d9f96006703466449c10c9a69590c8b9>
- patch: <https://git.kernel.org/stable/c/d309d3308de658d87c42d97e044c89a226327526>
- patch: <https://git.kernel.org/stable/c/bfbcce6a7b0552a390620d9b2c4d2bcb1825cbdc>
- patch: <https://git.kernel.org/stable/c/90c500e4fd83fa33c09bc7ee23b6d9cc487ac733>

## 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-2026-46299>

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