Commit 35d45e9
committed
netfilter: nf_tables: disallow element removal on anonymous sets
jira VULN-597
subsystem-sync netfilter:nf_tables 4.18.0-534
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: Greg Rose <[email protected]>1 parent 50e218d commit 35d45e9
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
1142 | | - | |
1143 | | - | |
| 1142 | + | |
1144 | 1143 | | |
1145 | 1144 | | |
1146 | 1145 | | |
| |||
5921 | 5920 | | |
5922 | 5921 | | |
5923 | 5922 | | |
5924 | | - | |
5925 | | - | |
| 5923 | + | |
| 5924 | + | |
| 5925 | + | |
| 5926 | + | |
5926 | 5927 | | |
5927 | 5928 | | |
5928 | 5929 | | |
| |||
0 commit comments