Commit 50e218d
committed
netfilter: nf_tables: fix nft_trans type confusion
jira VULN-597
subsystem-sync netfilter:nf_tables 4.18.0-534
commit-author Florian Westphal <fw@strlen.de>
commit e3c361b
upstream-diff - Some cruft in nft_rule_lookup_byid() - resolved by using
branch 4.18.0-534 as the source of truth.
nft_trans_FOO objects all share a common nft_trans base structure, but
trailing fields depend on the real object size. Access is only safe after
trans->msg_type check.
Check for rule type first. Found by code inspection.
Fixes: 1a94e38 ("netfilter: nf_tables: add NFTA_RULE_ID attribute")
Signed-off-by: Florian Westphal <fw@strlen.de>
(cherry picked from commit e3c361b)
Signed-off-by: Greg Rose <g.v.rose@ciq.com>1 parent 606bcb6 commit 50e218d
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3330 | 3330 | | |
3331 | 3331 | | |
3332 | 3332 | | |
3333 | | - | |
3334 | | - | |
3335 | 3333 | | |
3336 | 3334 | | |
3337 | 3335 | | |
3338 | | - | |
| 3336 | + | |
3339 | 3337 | | |
3340 | 3338 | | |
3341 | 3339 | | |
| |||
0 commit comments