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 6A33682C7E for ; Tue, 19 Nov 2024 01:34:20 +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=1731980060; cv=none; b=o56AecSxb6DPiYAE97SFwDlEvFM3/lGTZj200Q4+0OBlvWivkNiRn9uMv/j9mnPeMgu4NHF9L/ZyL3SYvJ0Ws232ujCCjF+M5+/ErVSGdkqggcbJgHC9ufej8EqVSsUAMuRmGvUhGbODdiz8BFH6qn5+xviXTEjJ8Y5h+B77Qts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980060; c=relaxed/simple; bh=t3aTVDwjOGI3Xs4JZQU3AkRVI7UHiAGfxtbjWxNC2Xs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PpTpEP9d0G7rMFHx3sv262FMvOvf2POEmgFVs6Hhf8A2rshMKcZdERY9kthIHJdoojyiSabRNR3SNQXi+79v69DL/GZFZJGlfSzoZn0SXeIqCKlKOUWitux5sFoQVl4cat04EawaT2k+ULk5ObAf4pXDJ9mzR6GyWpxFgadSl/Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xg45iOLv; 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="xg45iOLv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B79E6C4CECC; Tue, 19 Nov 2024 01:34:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980060; bh=t3aTVDwjOGI3Xs4JZQU3AkRVI7UHiAGfxtbjWxNC2Xs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xg45iOLvTolFjNpIzX6n3kRFXm9/8o4rwibbFIj0Qh3jM4BvprToNBvU4XamZ0U5R cfVyMy+NFwTEuQR+05VDOVehogx1A1Zb51cZ3y9VXbg/nTUiGvJCIXvX/LRvxrMQee iqk6Zgi02Q93tdCQ7l2k7+neHbBSWVGIr0c5ElYk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50284: ksmbd: Fix the missing xa_store error check Date: Tue, 19 Nov 2024 02:32:39 +0100 Message-ID: <2024111945-CVE-2024-50284-650e@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=2229; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t3aTVDwjOGI3Xs4JZQU3AkRVI7UHiAGfxtbjWxNC2Xs=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr/ZZWMhJTBaeaKnDcWRW4j3eX6Gt6xbd2NB+jeWYw Ilj3xgWdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE5nQxLNi95pHg6ncrZmz4 fkbwRnZuoJ9KuRHDgs3PLviuEgz1OHcq12PGrOzG+KXTLwAA 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 the missing xa_store error check xa_store() can fail, it return xa_err(-EINVAL) if the entry cannot be stored in an XArray, or xa_err(-ENOMEM) if memory allocation failed, so check error for xa_store() to fix it. The Linux kernel CVE team has assigned CVE-2024-50284 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.71 with commit 052b41ef2abe and fixed in 6.1.117 with commit d8664ce789bd Issue introduced in 6.3 with commit b685757c7b08 and fixed in 6.6.61 with commit 726c1568b914 Issue introduced in 6.3 with commit b685757c7b08 and fixed in 6.11.8 with commit c2a232c4f790 Issue introduced in 6.3 with commit b685757c7b08 and fixed in 6.12 with commit 3abab905b14f Issue introduced in 5.15.145 with commit 1f485b54d04a 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-50284 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/mgmt/user_session.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/d8664ce789bd46290c59a00da6897252f92c237d https://git.kernel.org/stable/c/726c1568b9145fa13ee248df184b186c382a7ff8 https://git.kernel.org/stable/c/c2a232c4f790f4bcd4d218904c56ac7a39a448f5 https://git.kernel.org/stable/c/3abab905b14f4ba756d413f37f1fb02b708eee93