netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ef1f7df9170dbd875ce198ba84e6ab80f6fc139e · < a9ebf340d123ae12582210407f879d6a5a1bc25b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()
nft_unregister_expr() can concurrent with __nft_expr_type_get(), and there is not any protection when iterate over nf_tables_expressions list in __nft_expr_type_get(). Therefore, there is potential data-race of nf_tables_expressions list entry.
Use list_for_each_entry_rcu() to iterate over nf_tables_expressions list in __nft_expr_type_get(), and use rcu_read_lock() in the caller nft_expr_type_get() to protect the entire type query process.
From the CVE record · Linux
A potential data race exists in the Linux kernel’s nf_tables expression-type lookup when expression unregistration occurs concurrently with a type query. The input does not establish what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Anyone running a Linux kernel with the affected nf_tables code should check their version; affected versions are not specified.