# CVE-2025-38306: fs/fhandle.c: fix a race in call of has\_locked\_children()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-07-10T07:42:16.806Z
- **Modified:** 2026-08-05T12:01:05.449Z

## Who should check

- Anyone running Linux \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 6482c3dccbfb8d20e2856ce67c75856859930b3f; \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 287c7d34eedd37af1272dfb3b6e8656f4f026424; \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 1f282cdc1d219c4a557f7009e81bc792820d9d9a
- Anyone running Linux 6.11

## 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 and fixed versions

- Linux: \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 6482c3dccbfb8d20e2856ce67c75856859930b3f; \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 287c7d34eedd37af1272dfb3b6e8656f4f026424; \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 1f282cdc1d219c4a557f7009e81bc792820d9d9a (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 1f282cdc1d219c4a557f7009e81bc792820d9d9a 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-38306. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38306.md
Affected: Linux >= 620c266f394932e5decc4b34683a75dfc59dc2f4, < 6482c3dccbfb8d20e2856ce67c75856859930b3f; >= 620c266f394932e5decc4b34683a75dfc59dc2f4, < 287c7d34eedd37af1272dfb3b6e8656f4f026424; >= 620c266f394932e5decc4b34683a75dfc59dc2f4, < 1f282cdc1d219c4a557f7009e81bc792820d9d9a; Linux 6.11
Fixed in: Linux 6482c3dccbfb8d20e2856ce67c75856859930b3f, Linux 287c7d34eedd37af1272dfb3b6e8656f4f026424, Linux 1f282cdc1d219c4a557f7009e81bc792820d9d9a

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-38306 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 6482c3dccbfb8d20e2856ce67c75856859930b3f; \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 287c7d34eedd37af1272dfb3b6e8656f4f026424; \>= 620c266f394932e5decc4b34683a75dfc59dc2f4, \< 1f282cdc1d219c4a557f7009e81bc792820d9d9a; Linux 6.11.

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

Yes. Fixed in Linux 6482c3dccbfb8d20e2856ce67c75856859930b3f, Linux 287c7d34eedd37af1272dfb3b6e8656f4f026424, Linux 1f282cdc1d219c4a557f7009e81bc792820d9d9a. Upgrade Linux to 1f282cdc1d219c4a557f7009e81bc792820d9d9a or later.

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

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/6482c3dccbfb8d20e2856ce67c75856859930b3f>
- patch: <https://git.kernel.org/stable/c/287c7d34eedd37af1272dfb3b6e8656f4f026424>
- patch: <https://git.kernel.org/stable/c/1f282cdc1d219c4a557f7009e81bc792820d9d9a>

## 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-38306>

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