{"id":"CVE-2025-38306","summary":"fs/fhandle.c: fix a race in call of has_locked_children()","details":"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).","modified":"2026-03-20T12:42:47.914379Z","published":"2025-07-10T07:42:16.806Z","related":["SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38306.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1f282cdc1d219c4a557f7009e81bc792820d9d9a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/287c7d34eedd37af1272dfb3b6e8656f4f026424"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6482c3dccbfb8d20e2856ce67c75856859930b3f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38306.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38306"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"620c266f394932e5decc4b34683a75dfc59dc2f4"},{"fixed":"6482c3dccbfb8d20e2856ce67c75856859930b3f"},{"fixed":"287c7d34eedd37af1272dfb3b6e8656f4f026424"},{"fixed":"1f282cdc1d219c4a557f7009e81bc792820d9d9a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38306.json"}}],"schema_version":"1.7.5"}