CVE-2025-38306
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.21% (higher than 6% of CVEs)
Published
Last changed
Assigned by
Linux

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

Affected

Product or packageVersionsReported by
Linux Linuxfrom 620c266f394932e5decc4b34683a75dfc59dc2f4 before 6482c3dccbfb8d20e2856ce67c75856859930b3f, from 620c266f394932e5decc4b34683a75dfc59dc2f4 before 287c7d34eedd37af1272dfb3b6e8656f4f026424, from 620c266f394932e5decc4b34683a75dfc59dc2f4 before 1f282cdc1d219c4a557f7009e81bc792820d9d9a, 6.11
Not affected: before 6.11, from 6.12.46 up to 6.12.*, from 6.15.3 up to 6.15.*, from 6.16 up to *
CVE List
linux linux_kernelfrom 6.11 before 6.12.46, from 6.13 before 6.15.3NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: fs/fhandle.c: se corrige una ejecución en la llamada a has_locked_children(). may_decode_fh() llama a has_locked_children() sin bloqueos. Esta es una ejecución que puede fallar. El resto de los invocadores están seguros, ya que mantienen namespace_sem y se les garantiza un recuento de referencias positivo en el montaje en cuestión. Cambie el nombre de has_locked_children() actual a __has_locked_children(), conviértalo en estático y cambie los usuarios de fs/namespace.c a él. Convierta has_locked_children() en un contenedor para __has_locked_children(), invocándolo bajo read_seqlock_excl(&mount_lock).

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38306 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-38306 changed 2026-07-30Public domain