What’s Vulnerable › Vulnerabilities
CVE-2025-38306: fs/fhandle.c: fix a race in call of has_locked_children()
- Severity: medium (CVSS 4.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-07-10 · updated 2026-07-30
- Weakness: CWE-362
Description
In the Linux kernel, the following vulnerability has been resolved: fs/fhandle.c: fix a race in call of has_locked_children() may_decode_fh() is calling has_locked_children() while holding no locks. That's an oopsable race... The rest of the callers are safe since they are holding namespace_sem and are guaranteed a positive refcount on the mount in question. Rename the current has_locked_children() to __has_locked_children(), make it static and switch the fs/namespace.c users to it. Make has_locked_children() a wrapper for __has_locked_children(), calling the latter under read_seqlock_excl(&mount_lock).
Affected products
- Linux kernel: from 6.11 before 6.12.46; from 6.13 before 6.15.3 — fixed in 6.12.46, 6.15.3
How to fix
Upgrade to a fixed version: Linux kernel 6.12.46, 6.15.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1f282cdc1d219c4a557f7009e81bc792820d9d9a
- https://git.kernel.org/stable/c/287c7d34eedd37af1272dfb3b6e8656f4f026424
- https://git.kernel.org/stable/c/6482c3dccbfb8d20e2856ce67c75856859930b3f
Get alerted when CVE-2025-38306 or the next vulnerability affects your stack