netfilter: ipset: Fix suspicious rcu_dereference_protected()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 90ae20d47de602198eb69e6cd7a3db3420abfc08 · < 3fc09e1ca854bc234e007a56e0f7431f5e2defb5| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ipset: Fix suspicious rcu_dereference_protected()
When destroying all sets, we are either in pernet exit phase or are executing a "destroy all sets command" from userspace. The latter was taken into account in ip_set_dereference() (nfnetlink mutex is held), but the former was not. The patch adds the required check to rcu_dereference_protected() in ip_set_dereference().
From the CVE record · Linux
The Linux kernel's netfilter ipset code lacked a required check when dereferencing set data during per-network-namespace exit. The issue also concerns the destroy-all-sets path, which can be invoked from userspace; the input does not establish what an attacker can do or whether authentication is required.
Engineers running Linux kernels with netfilter ipset should check their vendor advisories; affected versions were not provided.