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 19A1B3839A for ; Tue, 2 Apr 2024 06:51:21 +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=1712040681; cv=none; b=ptZg6jCV2BoaFqgi3vqIfN2RzGoBGyzWWMvFPX+A3/3C81VtAySEDzJ+K6Co3mTrnOZSQwObek8u/CLD2bL1AjNo3dc/2fiL6/yn46h6HkW8mR6VzCDdiAFPJpqS0E80ijv2sThExZ7K1neHnAGJWgXPp8bkqHvOheiRcgcEO7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712040681; c=relaxed/simple; bh=4ot3XRqWCsz/tSBYwma+lRfKGxNHLSGIl5JeyJk3qFM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ldf6LqcM1H49LFHtwf0B3HQBSg5SXTsARSAiNyP+WVH0FIK6uXXDUj0gycEgrtSarnVfk8gVXXsGNJoHwGocram9/EHi91xdwwNIclyMd6mYs+FA9RWdqxn9v5fj9boXBJNAlWRGWJAAsfq2j2gGmijs+MiPJ167fevEBargyt8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=j9b7y9ZP; 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="j9b7y9ZP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94806C43399; Tue, 2 Apr 2024 06:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712040681; bh=4ot3XRqWCsz/tSBYwma+lRfKGxNHLSGIl5JeyJk3qFM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=j9b7y9ZPDTnvY6KwxBEeheOkrybMJOq6yMA8T0NKATgY8GIUZCPeHPYFJKXbtQHCP 61j6by71xUuYP3OiPNEW8tOGcRuNYT1aB73ucPZkpCrGPP68r9DO6zTQ8wTMdGarCk Nlv+9GR/5XoLTfMtnXCNjvTcFDnPZb9NC13AjwVI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26673: netfilter: nft_ct: sanitize layer 3 and 4 protocol number in custom expectations Date: Tue, 2 Apr 2024 08:51:13 +0200 Message-ID: <2024040212-CVE-2024-26673-b2d3@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=2698; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4ot3XRqWCsz/tSBYwma+lRfKGxNHLSGIl5JeyJk3qFM=; b=kA0DAAIRMUfUDdst+ykByyZiAGYLquCiPEtpvLEwAMTlkSMODeH4vN3kWevf8u9nOP+6R2UXI IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmYLquAACgkQMUfUDdst+yk7vwCggw5M 5nELr+x06NNxPgA8+P8/HvsAoKNrG6Kpl76pUrirZKaWjjmNbfed 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_ct: sanitize layer 3 and 4 protocol number in custom expectations - Disallow families other than NFPROTO_{IPV4,IPV6,INET}. - Disallow layer 4 protocol with no ports, since destination port is a mandatory attribute for this object. The Linux kernel CVE team has assigned CVE-2024-26673 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit 857b46027d6f and fixed in 5.4.269 with commit f549f340c91f Issue introduced in 5.3 with commit 857b46027d6f and fixed in 5.10.210 with commit 65ee90efc928 Issue introduced in 5.3 with commit 857b46027d6f and fixed in 5.15.149 with commit b775ced05489 Issue introduced in 5.3 with commit 857b46027d6f and fixed in 6.1.77 with commit 0f501dae16b7 Issue introduced in 5.3 with commit 857b46027d6f and fixed in 6.6.16 with commit cfe3550ea5df Issue introduced in 5.3 with commit 857b46027d6f and fixed in 6.7.4 with commit 38cc1605338d Issue introduced in 5.3 with commit 857b46027d6f and fixed in 6.8 with commit 8059918a1377 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-26673 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_ct.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/f549f340c91f08b938d60266e792ff7748dae483 https://git.kernel.org/stable/c/65ee90efc928410c6f73b3d2e0afdd762652c09d https://git.kernel.org/stable/c/b775ced05489f4b77a35fe203e9aeb22f428e38f https://git.kernel.org/stable/c/0f501dae16b7099e69ee9b0d5c70b8f40fd30e98 https://git.kernel.org/stable/c/cfe3550ea5df292c9e2d608e8c4560032391847e https://git.kernel.org/stable/c/38cc1605338d99205a263707f4dde76408d3e0e8 https://git.kernel.org/stable/c/8059918a1377f2f1fff06af4f5a4ed3d5acd6bc4