Commit 80b9442
committed
netfilter: nf_tables: disallow element removal on anonymous sets
jira VULN-430
cve CVE-2023-4244
commit-author Pablo Neira Ayuso <[email protected]>
commit 23a3bfd
Anonymous sets need to be populated once at creation and then they are
bound to rule since 938154b ("netfilter: nf_tables: reject unbound
anonymous set before commit phase"), otherwise transaction reports
EINVAL.
Userspace does not need to delete elements of anonymous sets that are
not yet bound, reject this with EOPNOTSUPP.
From flush command path, skip anonymous sets, they are expected to be
bound already. Otherwise, EINVAL is hit at the end of this transaction
for unbound sets.
Fixes: 9651851 ("netfilter: add nftables")
Signed-off-by: Pablo Neira Ayuso <[email protected]>
(cherry picked from commit 23a3bfd)
Signed-off-by: Marcin Wcisło <[email protected]>1 parent b5c6baa commit 80b9442
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
1388 | | - | |
1389 | | - | |
| 1388 | + | |
1390 | 1389 | | |
1391 | 1390 | | |
1392 | 1391 | | |
| |||
6909 | 6908 | | |
6910 | 6909 | | |
6911 | 6910 | | |
6912 | | - | |
6913 | | - | |
| 6911 | + | |
| 6912 | + | |
| 6913 | + | |
| 6914 | + | |
6914 | 6915 | | |
6915 | 6916 | | |
6916 | 6917 | | |
| |||
0 commit comments