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 DF1D214A099 for ; Sat, 9 Nov 2024 10:17:31 +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=1731147452; cv=none; b=VLjRials2O3IRo2OceqJ44tE21jo81DUQOyZW2bb6Rzfbb7zAlZHlY4KDP+OCO8kSz/Jdmm8v9RLcUdu7ExmaOdFMTHKo9lg0JYm63Ko5LmU4iUKJB0olx4+T9TmzN5UW8Kqhqodo1R7Ati6HZbnzmfE+eeW1LCz/qdrV41spUM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731147452; c=relaxed/simple; bh=H3MFD0XGcgrcd1L5Jc4G/dhOzyocva+V53RDsjak1uc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=atzBKLj00w/0aBrN9WkCrdb3ugFHtcB7xqPFH+A7WJNsbCMZnI93GwRRDicn/1SDBsO4yk2w/QiHsSTNg2dlzK0ntz3FxwofO3ZO6Td/+1WNNIwodyGT3+bX+tZWJ8xWVzsytCaxzWegk3aURMY7Rn8RNiAnUgxrTNT46r5UO5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pM5XexpW; 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="pM5XexpW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D8F6C4CECE; Sat, 9 Nov 2024 10:17:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731147451; bh=H3MFD0XGcgrcd1L5Jc4G/dhOzyocva+V53RDsjak1uc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pM5XexpWoqIwhbWP5f0Ia/4hOxB4x3HdUtHfq4rMxc1vPSDR+xZ9ddCfRoknFMzmA Y31U87ubcixOAjgpbFAuC4Pn4QWY7F2Nlv9df7SSSR0WM/NZIoaQo7UAPLmwozjqZ1 mmqywfTFbex9byWc6x78NI7Fa+aHrYfJL4jY1mRU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50251: netfilter: nft_payload: sanitize offset and length before calling skb_checksum() Date: Sat, 9 Nov 2024 11:15:59 +0100 Message-ID: <2024110937-CVE-2024-50251-66dc@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=3031; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=H3MFD0XGcgrcd1L5Jc4G/dhOzyocva+V53RDsjak1uc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn6Zp6pjfPE6q/6Haj7orle6sNzw/3Xko7XnDHvy3kr2 GVwLOlrRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyETZRhfu6iSEmlc9ZhlxNn eLIuURUyWfi5i2EO3/loEYk1h/+mVIt5303Zv8VeQ+oFAA== 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: nft_payload: sanitize offset and length before calling skb_checksum() If access to offset + length is larger than the skbuff length, then skb_checksum() triggers BUG_ON(). skb_checksum() internally subtracts the length parameter while iterating over skbuff, BUG_ON(len) at the end of it checks that the expected length to be included in the checksum calculation is fully consumed. The Linux kernel CVE team has assigned CVE-2024-50251 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit 7ec3f7b47b8d and fixed in 4.19.323 with commit a661ed364ae6 Issue introduced in 4.5 with commit 7ec3f7b47b8d and fixed in 5.4.285 with commit ac7df3fc80fc Issue introduced in 4.5 with commit 7ec3f7b47b8d and fixed in 5.10.229 with commit e3e608cbad37 Issue introduced in 4.5 with commit 7ec3f7b47b8d and fixed in 5.15.171 with commit b1d2de8a669f Issue introduced in 4.5 with commit 7ec3f7b47b8d and fixed in 6.1.116 with commit d3217323525f Issue introduced in 4.5 with commit 7ec3f7b47b8d and fixed in 6.6.60 with commit 0ab3be58b45b Issue introduced in 4.5 with commit 7ec3f7b47b8d and fixed in 6.11.7 with commit c43e0ea848e7 Issue introduced in 4.5 with commit 7ec3f7b47b8d and fixed in 6.12-rc6 with commit d5953d680f7e 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-50251 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/netfilter/nft_payload.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/a661ed364ae6ae88c2fafa9ddc27df1af2a73701 https://git.kernel.org/stable/c/ac7df3fc80fc82bcc3b1e8f6ebc0d2c435d0c534 https://git.kernel.org/stable/c/e3e608cbad376674d19a71ccd0d41804d9393f02 https://git.kernel.org/stable/c/b1d2de8a669fa14c499a385e056944d5352b3b40 https://git.kernel.org/stable/c/d3217323525f7596427124359e76ea0d8fcc9874 https://git.kernel.org/stable/c/0ab3be58b45b996764aba0187b46de19b3e58a72 https://git.kernel.org/stable/c/c43e0ea848e7b9bef7a682cbc5608022d6d29d7b https://git.kernel.org/stable/c/d5953d680f7e96208c29ce4139a0e38de87a57fe