Commit 2ad5c3e
committed
netfilter: nft_ct: fix l3num expectations with inet pseudo family
CVE: CVE-2024-26673
JIRA: https://issues.redhat.com/browse/RHEL-31345
Upstream Status: commit 9999378
commit 9999378
Author: Florian Westphal <fw@strlen.de>
Date: Fri Mar 1 13:38:15 2024 +0100
netfilter: nft_ct: fix l3num expectations with inet pseudo family
Following is rejected but should be allowed:
table inet t {
ct expectation exp1 {
[..]
l3proto ip
Valid combos are:
table ip t, l3proto ip
table ip6 t, l3proto ip6
table inet t, l3proto ip OR l3proto ip6
Disallow inet pseudeo family, the l3num must be a on-wire protocol known
to conntrack.
Retain NFPROTO_INET case to make it clear its rejected
intentionally rather as oversight.
Fixes: 8059918 ("netfilter: nft_ct: sanitize layer 3 and 4 protocol number in custom expectations")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Phil Sutter <psutter@redhat.com>1 parent 30b009d commit 2ad5c3e
1 file changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
1197 | | - | |
| 1196 | + | |
| 1197 | + | |
1198 | 1198 | | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
| 1199 | + | |
| 1200 | + | |
1202 | 1201 | | |
1203 | | - | |
| 1202 | + | |
1204 | 1203 | | |
1205 | 1204 | | |
1206 | 1205 | | |
| |||
0 commit comments