Commit e4508ce
committed
netfilter: nf_tables: release mutex after nft_gc_seq_end from abort path
jira VULN-4906
cve CVE-2024-26925
commit-author Pablo Neira Ayuso <[email protected]>
commit 0d459e2
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: Marcin Wcisło <[email protected]>1 parent b434d9d commit e4508ce
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10069 | 10069 | | |
10070 | 10070 | | |
10071 | 10071 | | |
10072 | | - | |
10073 | | - | |
10074 | | - | |
10075 | | - | |
10076 | | - | |
10077 | 10072 | | |
10078 | 10073 | | |
10079 | 10074 | | |
| |||
10090 | 10085 | | |
10091 | 10086 | | |
10092 | 10087 | | |
| 10088 | + | |
| 10089 | + | |
| 10090 | + | |
| 10091 | + | |
| 10092 | + | |
| 10093 | + | |
| 10094 | + | |
| 10095 | + | |
10093 | 10096 | | |
10094 | 10097 | | |
10095 | 10098 | | |
| |||
0 commit comments