CVE-2025-38306

Source
https://nvd.nist.gov/vuln/detail/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
Published
2025-07-10T08:15:29Z
Modified
2025-09-09T17:15:44Z
Summary
[none]
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 _haslocked_children(), make it static and switch the fs/namespace.c users to it.

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

References

Affected packages