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 DFCA81FDD for ; Tue, 21 May 2024 15:25:43 +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=1716305144; cv=none; b=Ko2cHRfMQr8WZN2LAHP33klCZIiMLmBoLqvNazFpfRAplNqXsR2ArAVICDI8VF2eXr4OUiyX3qmWWEIcttuzocCCon/e2KApZIMdHiyKe1WIgb78TlvsKMpaEiju2XhUN3wtYsiJp7X/k+I6OCxFYGlEkwXe+DzBtnQQxI/1qOs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305144; c=relaxed/simple; bh=wdZJrWgnUVIxdQEQv7zbYfyg4G2pUbrNtFbR46RpACg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IbZCnvB/aA7qLJTqjgS+MgzjrXd+SHi5gIgR3sH5u6t/6j5nFxLsah+8dEb+BU7ms6+5snNvYFukwnetPutBEp1+0YmAv06LEQpiGS2gnCrE57EWQu9KA84B0KudKTCrsZJ9fLhSLt6nV3v5i6dEzvdCE+DTKKga2l9/xCP9R0Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TvgOyuh+; 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="TvgOyuh+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A14EC2BD11; Tue, 21 May 2024 15:25:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305143; bh=wdZJrWgnUVIxdQEQv7zbYfyg4G2pUbrNtFbR46RpACg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TvgOyuh+yYl5Eo/aBiXM9GyXq8GRysJyrLS/lfWYCdDRyuAAX3CwTtIQkLYXTQrej k3MSIZiq4YNVVCyXuWYxALNdGozp6/E2NqZvVBeaNfmQ/3p1ha0KUmEOX2YywOFZH4 cCYeAq3LR0XoT/BjQPRcFaK6LJzbDV/ps8xzWtaQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52746: xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr() Date: Tue, 21 May 2024 17:23:23 +0200 Message-ID: <2024052103-CVE-2023-52746-0476@gregkh> X-Mailer: git-send-email 2.45.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=2338; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wdZJrWgnUVIxdQEQv7zbYfyg4G2pUbrNtFbR46RpACg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+e8JFBDSyuH4cd+M5w/35wFa5FJ/Hyj+vcmibpu/X5 b3wi1eyI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZy4wTD/MCOeWd3X7iq39b3 p6DTzSBYIouXk2F+0t3frzp/sldOj9+3bKvGI36e22bOAA== 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: xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr() int type = nla_type(nla); if (type > XFRMA_MAX) { return -EOPNOTSUPP; } @type is then used as an array index and can be used as a Spectre v1 gadget. if (nla_len(nla) < compat_policy[type].len) { array_index_nospec() can be used to prevent leaking content of kernel memory to malicious users. The Linux kernel CVE team has assigned CVE-2023-52746 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 5106f4a8acff and fixed in 5.10.168 with commit a893cc644812 Issue introduced in 5.10 with commit 5106f4a8acff and fixed in 5.15.94 with commit 5dc688fae6b7 Issue introduced in 5.10 with commit 5106f4a8acff and fixed in 6.1.12 with commit 419674224390 Issue introduced in 5.10 with commit 5106f4a8acff and fixed in 6.2 with commit b6ee89638538 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-2023-52746 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: net/xfrm/xfrm_compat.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/a893cc644812728e86e9aff517fd5698812ecef0 https://git.kernel.org/stable/c/5dc688fae6b7be9dbbf5304a3d2520d038e06db5 https://git.kernel.org/stable/c/419674224390fca298020fc0751a20812f84b12d https://git.kernel.org/stable/c/b6ee896385380aa621102e8ea402ba12db1cabff