Commit 35ee0b2
committed
netfilter: nf_tables: release mutex after nft_gc_seq_end from abort path
jira VULN-4905
cve CVE-2024-26925
commit-author Pablo Neira Ayuso <[email protected]>
commit 0d459e2
upstream-diff - Red Hat has not backported this fix to Rocky 8.10, or
at least not in our current Rocky 8.10 branch. There was some fuzz and
offsets in around the commit that caused a minor conflict.
The commit mutex should not be released during the critical section
between nft_gc_seq_begin() and nft_gc_seq_end(), otherwise, async GC
worker could collect expired objects and get the released commit lock
within the same GC sequence.
nf_tables_module_autoload() temporarily releases the mutex to load
module dependencies, then it goes back to replay the transaction again.
Move it at the end of the abort phase after nft_gc_seq_end() is called.
Cc: [email protected]
Fixes: 7203443 ("netfilter: nf_tables: GC transaction race with abort path")
Reported-by: Kuan-Ting Chen <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
(cherry picked from commit 0d459e2)
Signed-off-by: Greg Rose <[email protected]>1 parent d41cf40 commit 35ee0b2
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8615 | 8615 | | |
8616 | 8616 | | |
8617 | 8617 | | |
8618 | | - | |
8619 | | - | |
8620 | | - | |
8621 | | - | |
8622 | | - | |
8623 | 8618 | | |
8624 | 8619 | | |
8625 | 8620 | | |
| |||
8640 | 8635 | | |
8641 | 8636 | | |
8642 | 8637 | | |
| 8638 | + | |
| 8639 | + | |
| 8640 | + | |
| 8641 | + | |
| 8642 | + | |
| 8643 | + | |
| 8644 | + | |
| 8645 | + | |
8643 | 8646 | | |
8644 | 8647 | | |
8645 | 8648 | | |
| |||
0 commit comments