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 2B5346F2F2 for ; Tue, 19 Nov 2024 01:34:18 +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=1731980058; cv=none; b=fKW9vWKfH28SvU02AlqiqekS06WTJpFr9mdYNGd4l8ik0ZpR9Hd2/bDB/HBAiXC0A2Oz8hclX15abbUKA6RYON8B9mQ4ltH5k+BTtvAlKjF0M5ElSNDdQSuOb6PHIi4mTbnLnirZECaFp8Tb4YaI4FnVtO6JpoX2T/T3arfIn+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980058; c=relaxed/simple; bh=934QLZUXnPOnwEO7p7hnFAmJTYSlOUx+SMVfnH8pJQM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g1IIKA5U5W0N3ldrYlY1M3VkLcyFEA8qV2bXPRR9TongoYg/gCVazqlLdP3N39yYc/iWDfC9USvqaAIvUCgN8e9vNaeqgIt6fiLzxKngBCp1QSSBZzfFBwzq7/DNl5M/bVUpkHfL8CL6Zi5am+sQUR16f0jWJyF6z3WNtKe4nsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YN1gVCPI; 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="YN1gVCPI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE73CC4CECC; Tue, 19 Nov 2024 01:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980058; bh=934QLZUXnPOnwEO7p7hnFAmJTYSlOUx+SMVfnH8pJQM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YN1gVCPI7Qy3DjdEb3F+q99zfMtSKIrF9DJjphKfX6XoJj3pcYaHOZ8OL/NNu/bYP Ql+q6owAmPhRydmwqIFaVIjQkvBx5OCLa1OYIyERPttCwF5mr8D1rMfGpJeMadux+F CTej3LGGXMGPee1P/ir71TH4yHxFSewDM5dvpcH4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50283: ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp Date: Tue, 19 Nov 2024 02:32:38 +0100 Message-ID: <2024111944-CVE-2024-50283-3aad@gregkh> X-Mailer: git-send-email 2.47.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=1919; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=934QLZUXnPOnwEO7p7hnFAmJTYSlOUx+SMVfnH8pJQM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr/YkHl7FLfhw0y8JS5E+LmHmR0k2VW93Nz576yS45 +AiRaajHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRi6sZFqzMPvDh+ykR3vYP 53m1Hi/vXvb5kT7DLKbO7EV1x3uPs8xs3LbNUTauky3kCAA= 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 slab-use-after-free in smb3_preauth_hash_rsp ksmbd_user_session_put should be called under smb3_preauth_hash_rsp(). It will avoid freeing session before calling smb3_preauth_hash_rsp(). The Linux kernel CVE team has assigned CVE-2024-50283 to this issue. Affected and fixed versions =========================== Fixed in 6.1.117 with commit f7557bbca40d Fixed in 6.6.61 with commit c6cdc08c25a8 Fixed in 6.11.8 with commit 1b6ad475d4ed Fixed in 6.12 with commit b8fc56fbca74 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-2024-50283 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/server.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/f7557bbca40d4ca8bb1c6c940ac6c95078bd0827 https://git.kernel.org/stable/c/c6cdc08c25a868a08068dfc319fa9fce982b8e7f https://git.kernel.org/stable/c/1b6ad475d4ed577d34e0157eb507be00c588bf5c https://git.kernel.org/stable/c/b8fc56fbca7482c1e5c0e3351c6ae78982e25ada