CVE-2025-38306
fs/fhandle.c: fix a race in call of has_locked_children()
Reported by linux · Published July 10, 2025
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).
EPSS 0.14% · 3.5th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| linux_kernel | linux | 6.15.3, 6.12.46 |
| Linux | Linux | 6482c3dccbfb8d20e2856ce67c75856859930b3f |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 620c266f394932e5decc4b34683a75dfc59dc2f4, 620c266f394932e5decc4b34683a75dfc59dc2f4, 620c266f394932e5decc4b34683a75dfc59dc2f4 |
| Linux | Linux | 6.11, 0, 6.12.46 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| Linux | Linux | 6.11, 6.16, 6.15.3 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| linux | linux_kernel | 6.11, 6.11, 6.11 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.40-63.114 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
Timeline
- Jul 9, 2025 CVE Published
- Jul 10, 2025 EPSS Score (30 in total, the first dated here)
- Oct 11, 2025 PoC Published (14 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (103 in total, the first dated here)
- Apr 29, 2026 Security Advisory (109 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
- Oct 7, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38306
vulnetix vdb fixes CVE-2025-38306
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38306/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart