netfilter: synproxy: add mutex to guard hook reference counting
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ad49d86e07a497e834cb06f2b151dccd75f8e148 · < aaf80701dc2f7a48fe543961e21f8ca3924d587c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
netfilter: synproxy: add mutex to guard hook reference counting
As the synproxy infrastructure register netfilter hooks on-demand when a user adds the first iptables target or nftables expression, if done concurrently they can race each other.
Introduce a mutex to serialize the refcount control blocks access from both frontends. While a per namespace mutex might be more efficient, it is not needed for target/expression like SYNPROXY.
From the CVE record · Linux
The Linux kernel's SYNPROXY infrastructure can race while registering netfilter hooks on demand. The race can occur when users concurrently add the first iptables SYNPROXY target and nftables SYNPROXY expression; the input does not specify a resulting impact.
Teams running Linux kernels that use netfilter SYNPROXY should check their kernel versions against the vendor advisory; affected versions were not provided.