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 895F0156678 for ; Thu, 1 May 2025 13:09:08 +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=1746104948; cv=none; b=pQLYVXtumWWhmOWLWQXxWUuBqdHlGuUe0tpH3Y3DA98PGIha3emJ4N5YGs2Qy8ud79mR6pahQT1coD3iTkao4wGoBAxWp47VJBocqwsTNqXFev5G4gobbKfY+AAlL+p4LOmQF/uL5iMaVIW1zyfXgLeFusIWua52gI5Z3toLtYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104948; c=relaxed/simple; bh=pXgdlUPyxhUY/TRwDnYsDdcntCzmnzw/hn7cM6SAb4g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kJdNyCCz23MdcEuIPxxX2UiOkx9b7FtbfEw32Yvn3KiGRvhLGHyVw0zjRrSTeqsM+t93UpWAYotkdBv4z02+5xBmcBr95zqiotkgbngmCwPHLKTZ37Sa/rbtt7fZt2xapvCYJLwkQ5l7fll79ZB8Uwvj1wF3YN+cmQPdgvc8JIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BDmXobQE; 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="BDmXobQE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15FB2C4CEE3; Thu, 1 May 2025 13:09:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104948; bh=pXgdlUPyxhUY/TRwDnYsDdcntCzmnzw/hn7cM6SAb4g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BDmXobQENsUbXReO0387YIk4WMcwnB65b/EaRA7IxXEk6GNnIOsSROEfSOhIJi44Y ZldJpVpddESSPGqtU6quy+/hjJVUajfb9mvqQs9mopab+bDQaCbsxCdtBwTvFmJ9WP j5lUBnqzuF7qRJ6s3Ttdm5Fdm5UT/FbQw9lR/zCI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37776: ksmbd: fix use-after-free in smb_break_all_levII_oplock() Date: Thu, 1 May 2025 15:07:24 +0200 Message-ID: <2025050115-CVE-2025-37776-9bfb@gregkh> X-Mailer: git-send-email 2.49.0 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=2085; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y8qC4X9MPy0Z8SOMS/G32l+j9rdEk3HBBzhkCAHXERc=; b=kA0DAAIRMUfUDdst+ykByyZiAGgTcgPIUitJOCkb0F6LZhwocbnkuuzuNWzKtiikRofrxleDW 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmgTcgMACgkQMUfUDdst+ylfSgCePxL2 o0iffjY234H3b2lY1Irs2WAAn0p2r/0JUW1bH/mSdAWUDY0TB/o2 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: ksmbd: fix use-after-free in smb_break_all_levII_oplock() There is a room in smb_break_all_levII_oplock that can cause racy issues when unlocking in the middle of the loop. This patch use read lock to protect whole loop. The Linux kernel CVE team has assigned CVE-2025-37776 to this issue. Affected and fixed versions =========================== Fixed in 6.6.88 with commit 296cb5457cc6f4a754c4ae29855f8a253d52bcc6 Fixed in 6.12.25 with commit d54ab1520d43e95f9b2e22d7a05fc9614192e5a5 Fixed in 6.14.4 with commit d73686367ad68534257cd88a36ca3c52cb8b81d8 Fixed in 6.15-rc3 with commit 18b4fac5ef17f77fed9417d22210ceafd6525fc7 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-37776 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/smb/server/oplock.c fs/smb/server/oplock.h 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/296cb5457cc6f4a754c4ae29855f8a253d52bcc6 https://git.kernel.org/stable/c/d54ab1520d43e95f9b2e22d7a05fc9614192e5a5 https://git.kernel.org/stable/c/d73686367ad68534257cd88a36ca3c52cb8b81d8 https://git.kernel.org/stable/c/18b4fac5ef17f77fed9417d22210ceafd6525fc7