Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D35E289E00 for ; Thu, 10 Jul 2025 07:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133433; cv=none; b=Eg1yAD/7zl17fCw8TGtyCrAM+oArG0DkptnSvl5UGyz/cGqIWAxuo9X3t2xR77++rIlM17dtIYQESbDDvbDnew8JI3e7I9GC9J/NaoH88DuIN4SMWVhtru2BN+wvYCteiPV1XovJFh6ppe5Elsbv/5JwUxpFKjYAnAS9/g9yuSg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133433; c=relaxed/simple; bh=4Sn+TU1/i3xRZ8Im83hFxT5zpnVHelT0mSi9zbu9Rv0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=avMkXdQwGbgf3BKf3KtGHxKZsfyE0xtw80I4eCbk3+zR9wMK1zTu2jNI/jbBxu4xEJ8PFKqAqokMa2b1n6mqymC13B47zLpImzRCNdPGbfs6C3zuo0sQ2602sYSaI7DAL7b62+05rWZz/qSC7LRGL0wvry5FrN1+NuNY6cr+H+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ImXNGW/6; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ImXNGW/6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2ADBDC4CEE3; Thu, 10 Jul 2025 07:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133433; bh=4Sn+TU1/i3xRZ8Im83hFxT5zpnVHelT0mSi9zbu9Rv0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ImXNGW/6LgeNXcmAx0xEdvzDXlmAH/4YF0MBmHBccjdlg8DxAvheSzZjmaMU9P70a 6VU9K64rT/7Zj/iOejucgQvSL6Plrf9xEi0o0HS0mzwg5Neu0HPYwg0eMdA1ZrDFjL 3KRkCCgpH9cMX59YvWKrl9Bcs/0ZaJTGfMAvBY2Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38306: fs/fhandle.c: fix a race in call of has_locked_children() Date: Thu, 10 Jul 2025 09:42:47 +0200 Message-ID: <2025071014-CVE-2025-38306-66ae@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2256; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VbpSZhdPALowpp+5CS8f7HUs6MEjMPBTgrKW4X3bdYU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eddOeS6Yt1dfpy51yYmifFufz6+zFl9iY40RLFw7c 24x/yf+jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIHjPDXPmjPe03qv7qZzAl Bm329GXbItn4gGF+XPtq+ftuTe80toSbms/cXiwV+tUWAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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). The Linux kernel CVE team has assigned CVE-2025-38306 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 620c266f394932e5decc4b34683a75dfc59dc2f4 and fixed in 6.15.3 with commit 287c7d34eedd37af1272dfb3b6e8656f4f026424 Issue introduced in 6.11 with commit 620c266f394932e5decc4b34683a75dfc59dc2f4 and fixed in 6.16-rc1 with commit 1f282cdc1d219c4a557f7009e81bc792820d9d9a Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-38306 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/namespace.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/287c7d34eedd37af1272dfb3b6e8656f4f026424 https://git.kernel.org/stable/c/1f282cdc1d219c4a557f7009e81bc792820d9d9a