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 DF647182D1D for ; Thu, 30 May 2024 15:36:15 +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=1717083376; cv=none; b=GLwupHJI87GCSvAyjO/pCMd5vtcAFcKT2ZtKaidVOkq0H2fen+HJ9GiWvENpZJaYuaUQnTGoLPgaoyf0nI0BWGxlm8ijjeGT3eAkBQj8fT+U5AwcNr3yO0Ev8BSqb5nytX4w58H+J7/ivV8GwieqnuRdPByra/X72EyzPgse0tg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083376; c=relaxed/simple; bh=/Y0c1f746mDAXTT25u2Lpkga6yqx245tjJ8kfBLp8Bc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mlenOneK2nqq81Gv7mDpVHUFGaK0YkMIiJVY9HylG9jCqKM3shCW/EeHj+8VBpfGGaHPaL4mMjEwVyFUQXM/qAtgwKvkF+JjBX0PI5I5p/J4/Dfvz0jcO8CEN7MLzTP2xAF55YFSqsXgZSHZJKBtMkK8NstFtEX9DhLzgXOlGv4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RcLx3TBH; 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="RcLx3TBH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34D96C4AF08; Thu, 30 May 2024 15:36:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083375; bh=/Y0c1f746mDAXTT25u2Lpkga6yqx245tjJ8kfBLp8Bc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RcLx3TBHKN39QgSrzHzxJz9euRysJn72zZJx+Gq+pbyJnLujaacXD+xMaupbJvHAE Q3SEjTwAMi2uL2Iz+RgYCoAs4RdflwjfvR6HwH3YcD+zq8Al8r7ShlxgzEAwArU7zV QdlJi22oy9djAfN0g7U4Jghi4uM8KbO/dZC0RnZA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36946: phonet: fix rtm_phonet_notify() skb allocation Date: Thu, 30 May 2024 17:35:43 +0200 Message-ID: <2024053039-CVE-2024-36946-3087@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=2918; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/Y0c1f746mDAXTT25u2Lpkga6yqx245tjJ8kfBLp8Bc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRc04rvVOSesPz4WrltCfrOOJ/P/9h/vHosfuWASnyL Iv2bTVO6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJKLczLJiwNVUpRUQi7VWn VkuS5tVpd6wehjIsmJiePu+g4cv5c9av3x3t1jaj0tRhJQA= 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: phonet: fix rtm_phonet_notify() skb allocation fill_route() stores three components in the skb: - struct rtmsg - RTA_DST (u8) - RTA_OIF (u32) Therefore, rtm_phonet_notify() should use NLMSG_ALIGN(sizeof(struct rtmsg)) + nla_total_size(1) + nla_total_size(4) The Linux kernel CVE team has assigned CVE-2024-36946 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.33 with commit f062f41d0657 and fixed in 4.19.314 with commit ec1f71c05cae Issue introduced in 2.6.33 with commit f062f41d0657 and fixed in 5.4.276 with commit dc6beac059f0 Issue introduced in 2.6.33 with commit f062f41d0657 and fixed in 5.10.217 with commit f085e02f0a32 Issue introduced in 2.6.33 with commit f062f41d0657 and fixed in 5.15.159 with commit 4ff334cade9d Issue introduced in 2.6.33 with commit f062f41d0657 and fixed in 6.1.91 with commit 728a83160f98 Issue introduced in 2.6.33 with commit f062f41d0657 and fixed in 6.6.31 with commit ee9e39a6cb3c Issue introduced in 2.6.33 with commit f062f41d0657 and fixed in 6.8.10 with commit 9a7722644000 Issue introduced in 2.6.33 with commit f062f41d0657 and fixed in 6.9 with commit d8cac8568618 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-36946 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/phonet/pn_netlink.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/ec1f71c05caeba0f814df77e0f511d8b4618623a https://git.kernel.org/stable/c/dc6beac059f0331de97155a89d84058d4a9e49c7 https://git.kernel.org/stable/c/f085e02f0a32f6dfcfabc6535c9c4a1707cef86b https://git.kernel.org/stable/c/4ff334cade9dae50e4be387f71e94fae634aa9b4 https://git.kernel.org/stable/c/728a83160f98ee6b60df0d890141b9b7240182fe https://git.kernel.org/stable/c/ee9e39a6cb3ca2a3d35b4ae25547ee3526a44d00 https://git.kernel.org/stable/c/9a77226440008cf04ba68faf641a2d50f4998137 https://git.kernel.org/stable/c/d8cac8568618dcb8a51af3db1103e8d4cc4aeea7