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 E6A52482F4 for ; Wed, 1 May 2024 05:32:44 +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=1714541565; cv=none; b=iicJNVyDPO3f8Zuq9gXW93r4L8eXJfeYLb7+l3Tik1/kwjNDiAnCMhpou36bRxwNe3Dlw7xwl7fgMQLrk/WwpTGGrx5tvo23Sp0g0n4livQz4AcaJKgmU9o+FtBE+YwmFc+7jeDdq3M291q1HonRkXxp7fbVbzjJlwNu6Mejs4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714541565; c=relaxed/simple; bh=2SzIy1AFZWaO3/4mv3bKefMxKnL2kuYhD9zAXAhs9BY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RHAyyh9hPBYdvYIgb9u9Pxw7AmPuglfW3J7SmbwCXymZKem+xA8YV7tOKFhoJPL5lJgtGJcajwhkMeoMc5Iapoe+CbJ8iXKjgaIW5Zic2epzVREqEOQU60yVyveYBEpXfBgcsEDSBOcjrf+EWEkDDXjtjt+NFkUkpXOtGgd+0To= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jVFqSqJi; 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="jVFqSqJi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E652C113CC; Wed, 1 May 2024 05:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714541564; bh=2SzIy1AFZWaO3/4mv3bKefMxKnL2kuYhD9zAXAhs9BY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jVFqSqJiT7HPDoP7vyLy3VZVOpmQ7UDCMkfd9nHZPtEDrJfoWlQObktar4EGVy3Ul 7kKNSiPqtZmwkvqYJJ1RgRc2o3hFF+M2/yrUdGuXEv1i45mIyJVSj8ci6WI9L8z5E0 FD/hAsItPOxPQ1NLwy4iNFIWT6uUSNmpsGPk1/rg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27016: netfilter: flowtable: validate pppoe header Date: Wed, 1 May 2024 07:31:17 +0200 Message-ID: <2024050149-CVE-2024-27016-5114@gregkh> X-Mailer: git-send-email 2.44.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=2426; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2SzIy1AFZWaO3/4mv3bKefMxKnL2kuYhD9zAXAhs9BY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGlzsbgrQcfp4s23Drt9qzEiGHb+l1IclMT035/zFfF 92S5ifZEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZNJ1hwfXuHK/fhVsOqgSx nSpbtnK6/ZcHMgwL9grxSU+QnntT8YqVzjX+7QZnReO8AA== 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: netfilter: flowtable: validate pppoe header Ensure there is sufficient room to access the protocol field of the PPPoe header. Validate it once before the flowtable lookup, then use a helper function to access protocol field. The Linux kernel CVE team has assigned CVE-2024-27016 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 72efd585f714 and fixed in 5.15.157 with commit d06977b9a410 Issue introduced in 5.13 with commit 72efd585f714 and fixed in 6.1.88 with commit 8bf7c76a2a20 Issue introduced in 5.13 with commit 72efd585f714 and fixed in 6.6.29 with commit a2471d271042 Issue introduced in 5.13 with commit 72efd585f714 and fixed in 6.8.8 with commit cf366ee3bc1b Issue introduced in 5.13 with commit 72efd585f714 and fixed in 6.9-rc5 with commit 87b3593bed18 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-27016 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: include/net/netfilter/nf_flow_table.h net/netfilter/nf_flow_table_inet.c net/netfilter/nf_flow_table_ip.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/d06977b9a4109f8738bb276125eb6a0b772bc433 https://git.kernel.org/stable/c/8bf7c76a2a207ca2b4cfda0a279192adf27678d7 https://git.kernel.org/stable/c/a2471d271042ea18e8a6babc132a8716bb2f08b9 https://git.kernel.org/stable/c/cf366ee3bc1b7d1c76a882640ba3b3f8f1039163 https://git.kernel.org/stable/c/87b3593bed1868b2d9fe096c01bcdf0ea86cbebf