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 A999720C470 for ; Tue, 1 Apr 2025 15:48:42 +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=1743522522; cv=none; b=Jb15lCKtWdJW1VJKvY47x88xvxa4gEBOcZrdE6T+Ff3K/bldlqtg//HAHtFimgRQyxl1amIpyrS/SQWtM9O7JGs38XNtqhIQ6LPQVAVE0uFvTj2O70KXZcYwLYlo6unfuHy6Daudfu9rKX4pb1s6YFugLA89tNLTXFe7Hog6Lno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522522; c=relaxed/simple; bh=h4HvwRUSjbkWtxddtfF5QOhv8uBNvuXb4SUDZt1uQ74=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cqr314i012jb1342Iilcreo5/rbnp1uMjfqZ0rolEqsSOj0eHCpQf235TN+3gzyf63ZvMza58u+XpMKQWeWjgOJQpF/JODpb0Hp9fvFeuxgzWQcW19sNVDttxINdEz4B5f740+PJsMiJFCsSEKwS7ThDy6ufDBFNn/i3g95Xpjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iL2gRjn+; 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="iL2gRjn+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43078C4CEE5; Tue, 1 Apr 2025 15:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522522; bh=h4HvwRUSjbkWtxddtfF5QOhv8uBNvuXb4SUDZt1uQ74=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iL2gRjn+czGjAAcurARY+vqHLBui5vhfVNMy0ZHxsw/pamEKA2aFfJJF4jMsiiqSV a/N/VKnTt2Y2pXEImhZEkfFqoHXhHNE3KnImi1z6IhI9PXhUuEsjLOo9HmjkzVSJVe nG98LtrI7JsN2t0KnL4ashvzCJJYUo+LhvrnXL10= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21967: ksmbd: fix use-after-free in ksmbd_free_work_struct Date: Tue, 1 Apr 2025 16:45:52 +0100 Message-ID: <2025040146-CVE-2025-21967-114e@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=2171; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h4HvwRUSjbkWtxddtfF5QOhv8uBNvuXb4SUDZt1uQ74=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvuLQezz38LiohfeufJQ9FzojMizR2VE5mDf8Sqsv34 vOesvsXO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAivn8YFhzd/rv9ZVj/HvcP Lp1d07g/1NobhDPMr6qb6lHhP2lb9/oa7WuR0VotGZ95AQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in ksmbd_free_work_struct ->interim_entry of ksmbd_work could be deleted after oplock is freed. We don't need to manage it with linked list. The interim request could be immediately sent whenever a oplock break wait is needed. The Linux kernel CVE team has assigned CVE-2025-21967 to this issue. Affected and fixed versions =========================== Fixed in 6.6.84 with commit fb776765bfc21d5e4ed03bb3d4406c2b86ff1ac3 Fixed in 6.12.20 with commit 62746ae3f5414244a96293e3b017be637b641280 Fixed in 6.13.8 with commit eb51f6f59d19b92f6fe84d3873f958495ab32f0a Fixed in 6.14 with commit bb39ed47065455604729404729d9116868638d31 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-21967 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/ksmbd_work.c fs/smb/server/ksmbd_work.h 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/fb776765bfc21d5e4ed03bb3d4406c2b86ff1ac3 https://git.kernel.org/stable/c/62746ae3f5414244a96293e3b017be637b641280 https://git.kernel.org/stable/c/eb51f6f59d19b92f6fe84d3873f958495ab32f0a https://git.kernel.org/stable/c/bb39ed47065455604729404729d9116868638d31