Commit d432f7b
committed
Merge tag 'nf-24-04-04' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf
Pablo Neira Ayuso says:
====================
Netfilter fixes for net
The following patchset contains Netfilter fixes for net:
Patch #1 unlike early commit path stage which triggers a call to abort,
an explicit release of the batch is required on abort, otherwise
mutex is released and commit_list remains in place.
Patch #2 release mutex after nft_gc_seq_end() in commit path, otherwise
async GC worker could collect expired objects.
Patch #3 flush pending destroy work in module removal path, otherwise UaF
is possible.
Patch #4 and #6 restrict the table dormant flag with basechain updates
to fix state inconsistency in the hook registration.
Patch #5 adds missing RCU read side lock to flowtable type to avoid races
with module removal.
* tag 'nf-24-04-04' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf:
netfilter: nf_tables: discard table flag update with pending basechain deletion
netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()
netfilter: nf_tables: reject new basechain after table flag update
netfilter: nf_tables: flush pending destroy work before exit_net release
netfilter: nf_tables: release mutex after nft_gc_seq_end from abort path
netfilter: nf_tables: release batch on table validation from abort path
====================
Link: https://lore.kernel.org/r/20240404104334.1627-1-pablo@netfilter.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 file changed
Lines changed: 34 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1209 | 1209 | | |
1210 | 1210 | | |
1211 | 1211 | | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
1216 | 1217 | | |
1217 | 1218 | | |
1218 | 1219 | | |
| |||
2449 | 2450 | | |
2450 | 2451 | | |
2451 | 2452 | | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
2452 | 2456 | | |
2453 | 2457 | | |
2454 | 2458 | | |
| |||
8293 | 8297 | | |
8294 | 8298 | | |
8295 | 8299 | | |
| 8300 | + | |
8296 | 8301 | | |
8297 | 8302 | | |
8298 | 8303 | | |
8299 | 8304 | | |
8300 | | - | |
| 8305 | + | |
8301 | 8306 | | |
8302 | 8307 | | |
8303 | 8308 | | |
| |||
8309 | 8314 | | |
8310 | 8315 | | |
8311 | 8316 | | |
| 8317 | + | |
8312 | 8318 | | |
8313 | | - | |
| 8319 | + | |
| 8320 | + | |
8314 | 8321 | | |
| 8322 | + | |
| 8323 | + | |
8315 | 8324 | | |
8316 | 8325 | | |
8317 | 8326 | | |
| |||
10455 | 10464 | | |
10456 | 10465 | | |
10457 | 10466 | | |
| 10467 | + | |
10458 | 10468 | | |
10459 | 10469 | | |
10460 | 10470 | | |
10461 | | - | |
| 10471 | + | |
10462 | 10472 | | |
10463 | 10473 | | |
10464 | 10474 | | |
| |||
10650 | 10660 | | |
10651 | 10661 | | |
10652 | 10662 | | |
10653 | | - | |
10654 | | - | |
10655 | | - | |
10656 | | - | |
10657 | | - | |
10658 | | - | |
| 10663 | + | |
10659 | 10664 | | |
10660 | 10665 | | |
10661 | 10666 | | |
| |||
10668 | 10673 | | |
10669 | 10674 | | |
10670 | 10675 | | |
| 10676 | + | |
| 10677 | + | |
| 10678 | + | |
| 10679 | + | |
| 10680 | + | |
| 10681 | + | |
| 10682 | + | |
| 10683 | + | |
| 10684 | + | |
| 10685 | + | |
| 10686 | + | |
10671 | 10687 | | |
10672 | 10688 | | |
10673 | 10689 | | |
| |||
11473 | 11489 | | |
11474 | 11490 | | |
11475 | 11491 | | |
11476 | | - | |
11477 | | - | |
11478 | | - | |
| 11492 | + | |
| 11493 | + | |
| 11494 | + | |
| 11495 | + | |
11479 | 11496 | | |
11480 | 11497 | | |
11481 | 11498 | | |
| |||
11567 | 11584 | | |
11568 | 11585 | | |
11569 | 11586 | | |
| 11587 | + | |
11570 | 11588 | | |
11571 | 11589 | | |
11572 | 11590 | | |
| |||
0 commit comments