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 6A371214A9F for ; Thu, 27 Mar 2025 16:45: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=1743093943; cv=none; b=AFYHBVDEIquMDQjAsvDgM5CvSpB159s7nRgFAcmMJRGJlLhrqXfyDFJZ400rMGv/iIxjA8CuD9G0YnoRppN9T3z/BBNzJUCM2Gbx4GRYRLigLddfheYsn/dEQeaZvLQb7W50FlB9UKzunQemBlS1w+Ur04wL1ZLCQaSb0ysK7+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093943; c=relaxed/simple; bh=Vvh5TUQhFya9EXdDsw7hH24AzgxwjFLeXJtYyf3kjh4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BSae2hf2YcaLtJCl7WDxYeya4U/zjwiWOk8j9V/NSECTFjSTkKaQsw7MDoRabfS2sEFBzBL8y2R9PW+mDrNrQwi0g/rWorIAqLWyvZZqdhS2exAqWUncerX6e3DhJn628BvkLXd9XaxzV0xOpAx1zXLEss5bVz+WIEhMfhk4HhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PzQQAdju; 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="PzQQAdju" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED94BC4CEE5; Thu, 27 Mar 2025 16:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093943; bh=Vvh5TUQhFya9EXdDsw7hH24AzgxwjFLeXJtYyf3kjh4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PzQQAdjuJcdNIVutS6OdzUCO49MPI094fSaDSoYOaEg0Txdp32YtsvQxuFnQJdENl /t9SdjvKp3JeQWVJUb+a3BP8XfyV8vE4Uoie+nObdacE69Ywn/fvOY6MeMXuUx2yu9 rE3vztjD+aKb4JQI090ItfO7+1S+W6QgsFv9ZCuQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53000: netlink: prevent potential spectre v1 gadgets Date: Thu, 27 Mar 2025 17:43:47 +0100 Message-ID: <2025032711-CVE-2023-53000-fded@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=3003; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Vvh5TUQhFya9EXdDsw7hH24AzgxwjFLeXJtYyf3kjh4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPG+SbRD49nWi3//CG2kj2+/v9Od4oFEZdFf9iEOieX HxmcffVjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIcgaGWcxMH/mZNtfUuL+U dDmh2n2+9+qqnQxzBf2zWiv8bh28JrShKkC2df7mDc8tAA== 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: netlink: prevent potential spectre v1 gadgets Most netlink attributes are parsed and validated from __nla_validate_parse() or validate_nla() u16 type = nla_type(nla); if (type == 0 || type > maxtype) { /* error or continue */ } @type is then used as an array index and can be used as a Spectre v1 gadget. array_index_nospec() can be used to prevent leaking content of kernel memory to malicious users. This should take care of vast majority of netlink uses, but an audit is needed to take care of others where validation is not yet centralized in core netlink functions. The Linux kernel CVE team has assigned CVE-2023-53000 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.15 with commit bfa83a9e03cf8d501c6272999843470afecb32ed and fixed in 5.4.231 with commit 3e5082b1c66c7783fbcd79b5b178573230e528ff Issue introduced in 2.6.15 with commit bfa83a9e03cf8d501c6272999843470afecb32ed and fixed in 5.10.166 with commit 539ca5dcbc91134bbe2c45677811c31d8b030d2d Issue introduced in 2.6.15 with commit bfa83a9e03cf8d501c6272999843470afecb32ed and fixed in 5.15.91 with commit 41b74e95f297ac360ca7ed6bf200100717cb6c45 Issue introduced in 2.6.15 with commit bfa83a9e03cf8d501c6272999843470afecb32ed and fixed in 6.1.9 with commit 992e4ff7116a77968039277b5d6aaa535c2f2184 Issue introduced in 2.6.15 with commit bfa83a9e03cf8d501c6272999843470afecb32ed and fixed in 6.2 with commit f0950402e8c76e7dcb08563f1b4e8000fbc62455 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-53000 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: lib/nlattr.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/3e5082b1c66c7783fbcd79b5b178573230e528ff https://git.kernel.org/stable/c/539ca5dcbc91134bbe2c45677811c31d8b030d2d https://git.kernel.org/stable/c/41b74e95f297ac360ca7ed6bf200100717cb6c45 https://git.kernel.org/stable/c/992e4ff7116a77968039277b5d6aaa535c2f2184 https://git.kernel.org/stable/c/f0950402e8c76e7dcb08563f1b4e8000fbc62455