Bug 2379180 (CVE-2025-38306) - CVE-2025-38306 kernel: fs/fhandle.c: fix a race in call of has_locked_children()
Summary: CVE-2025-38306 kernel: fs/fhandle.c: fix a race in call of has_locked_children()
Keywords:
Status: NEW
Alias: CVE-2025-38306
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-10 08:01 UTC by OSIDB Bzimport
Modified: 2025-07-11 11:57 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-10 08:01:55 UTC
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).

Comment 1 Avinash Hanwate 2025-07-11 11:49:29 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025071014-CVE-2025-38306-66ae@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.