Commit 3578ca7
committed
netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
jira LE-1907
cve CVE-2023-4147
Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2
commit-author Pablo Neira Ayuso <[email protected]>
commit 0ebc106
Bail out with EOPNOTSUPP when adding rule to bound chain via
NFTA_RULE_CHAIN_ID. The following warning splat is shown when
adding a rule to a deleted bound chain:
WARNING: CPU: 2 PID: 13692 at net/netfilter/nf_tables_api.c:2013 nf_tables_chain_destroy+0x1f7/0x210 [nf_tables]
CPU: 2 PID: 13692 Comm: chain-bound-rul Not tainted 6.1.39 #1
RIP: 0010:nf_tables_chain_destroy+0x1f7/0x210 [nf_tables]
Fixes: d0e2c7d ("netfilter: nf_tables: add NFT_CHAIN_BINDING")
Reported-by: Kevin Rich <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: Florian Westphal <[email protected]>
(cherry picked from commit 0ebc106)
Signed-off-by: Jonathan Maple <[email protected]>1 parent eabcf73 commit 3578ca7
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3460 | 3460 | | |
3461 | 3461 | | |
3462 | 3462 | | |
3463 | | - | |
3464 | | - | |
3465 | 3463 | | |
3466 | 3464 | | |
3467 | 3465 | | |
| |||
3474 | 3472 | | |
3475 | 3473 | | |
3476 | 3474 | | |
| 3475 | + | |
| 3476 | + | |
| 3477 | + | |
3477 | 3478 | | |
3478 | 3479 | | |
3479 | 3480 | | |
| |||
0 commit comments