{"id":"CVE-2025-38306","published":"2025-07-10T07:42:16Z","modified":"2026-08-05T12:01:05Z","title":"fs/fhandle.c: fix a race in call of has_locked_children()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs/fhandle.c: fix a race in call of has_locked_children()\n\nmay_decode_fh() is calling has_locked_children() while holding no locks.\nThat's an oopsable race...\n\nThe rest of the callers are safe since they are holding namespace_sem and\nare guaranteed a positive refcount on the mount in question.\n\nRename the current has_locked_children() to __has_locked_children(), make\nit static and switch the fs/namespace.c users to it.\n\nMake has_locked_children() a wrapper for __has_locked_children(), calling\nthe latter under read_seqlock_excl(&mount_lock).","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0014,"percentile":0.03455,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6482c3dccbfb8d20e2856ce67c75856859930b3f","tags":[]},{"url":"https://git.kernel.org/stable/c/287c7d34eedd37af1272dfb3b6e8656f4f026424","tags":[]},{"url":"https://git.kernel.org/stable/c/1f282cdc1d219c4a557f7009e81bc792820d9d9a","tags":[]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":0.69},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 620c266f394932e5decc4b34683a75dfc59dc2f4, < 6482c3dccbfb8d20e2856ce67c75856859930b3f",">= 620c266f394932e5decc4b34683a75dfc59dc2f4, < 287c7d34eedd37af1272dfb3b6e8656f4f026424",">= 620c266f394932e5decc4b34683a75dfc59dc2f4, < 1f282cdc1d219c4a557f7009e81bc792820d9d9a"]},{"vendor":"Linux","product":"Linux","versions":["6.11"]}],"euvd":{"id":"EUVD-2025-20942","exploited":false,"provenance":"source"}}