VDB

CVE-2025-38306

CVE-2025-38306 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel6.12-libbpf-develAmazon Linux1:6.12.40-63.114.amzn2023
linux_kernellinux6.15.3, 6.12.46
LinuxLinux6482c3dccbfb8d20e2856ce67c75856859930b3f

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.14%
3.5th percentile

Affected products

VendorProductVersions
LinuxLinux620c266f394932e5decc4b34683a75dfc59dc2f4, 620c266f394932e5decc4b34683a75dfc59dc2f4, 620c266f394932e5decc4b34683a75dfc59dc2f4
LinuxLinux6.11, 0, 6.12.46
amazon:2023kernel6.12-libbpf-devel0
LinuxLinux6.11, 6.16, 6.15.3
amazon:2023kernel6.120
amazon:2023perf6.120
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-headers0
linuxlinux_kernel6.11, 6.11, 6.11
amazon:2023kernel6.12-modules-extra-common0
amazon:2023bpftool6.120
amazon:2023kernel-livepatch-6.12.40-63.1140
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-tools0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›