CVE-2025-38306

Source
https://cve.org/CVERecord?id=CVE-2025-38306
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38306.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38306
Downstream
Related
Published
2025-07-10T07:42:16.806Z
Modified
2026-03-20T12:42:47.914379Z
Summary
fs/fhandle.c: fix a race in call of has_locked_children()
Details

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

fs/fhandle.c: fix a race in call of haslockedchildren()

maydecodefh() is calling haslockedchildren() 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 haslockedchildren() to __haslockedchildren(), make it static and switch the fs/namespace.c users to it.

Make haslockedchildren() a wrapper for _haslockedchildren(), calling the latter under readseqlockexcl(&mountlock).

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38306.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
620c266f394932e5decc4b34683a75dfc59dc2f4
Fixed
6482c3dccbfb8d20e2856ce67c75856859930b3f
Fixed
287c7d34eedd37af1272dfb3b6e8656f4f026424
Fixed
1f282cdc1d219c4a557f7009e81bc792820d9d9a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38306.json"