CVE-2025-38306 Details
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).
A race condition vulnerability has been identified in the Linux kernel's file handling system. The issue arises in the function 'may_decode_fh()', which calls 'has_locked_children()' without holding the necessary locks, leading to a potential 'oops' condition. This race condition is not present in other callers of 'has_locked_children()', as they properly hold the 'namespace_sem' and ensure a positive reference count on the relevant mount. To address this vulnerability, 'has_locked_children()' has been renamed to '__has_locked_children()', made static, and its users in 'fs/namespace.c' switched to the new version. The original 'has_locked_children()' now serves as a wrapper, calling '__has_locked_children()' under the appropriate lock.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1f282cdc1d219c4a557f7009e81bc792820d9d9a | kernel.org | Patch |
| https://git.kernel.org/stable/c/287c7d34eedd37af1272dfb3b6e8656f4f026424 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6482c3dccbfb8d20e2856ce67c75856859930b3f | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.11, < 6.12.46 >= 6.13, < 6.15.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 18, 2025 | Initial Analysis | [email protected] |
| Sep 9, 2025 | CVE Modified | kernel.org |
| Jul 10, 2025 | New CVE Received | kernel.org |