CVE-2025-38306

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

State
Published
Severity
7.8 High
Published
Jul 10, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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).

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 620c266f394932e5decc4b34683a75dfc59dc2f4 to before 6482c3dccbfb8d20e2856ce67c75856859930b3fAffected
  • 620c266f394932e5decc4b34683a75dfc59dc2f4 to before 287c7d34eedd37af1272dfb3b6e8656f4f026424Affected
  • 620c266f394932e5decc4b34683a75dfc59dc2f4 to before 1f282cdc1d219c4a557f7009e81bc792820d9d9aAffected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.12.46 through 6.12.*Not affected
  • 6.15.3 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.