CVE-2022-50213: netfilter: nf_tables: do not allow SET_ID to refer to another table
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nftables: do not allow SETID to refer to another table
When doing lookups for sets on the same batch by using its ID, a set from a different table can be used.
Then, when the table is removed, a reference to the set may be kept after the set is freed, leading to a potential use-after-free.
When looking for sets by ID, use the table that was used for the lookup by name, and only return sets belonging to that same table.
This fixes CVE-2022-2586, also reported as ZDI-CAN-17470.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.0.2-1 - Compensating control
When looking up sets by ID, use the table used for the lookup by name and return only sets belonging to that same table.
Event History
Frequently Asked Questions
What is the severity of CVE-2022-50213?
CVE-2022-50213 has a medium severity level due to its potential impact on Linux kernel netfilter functionality.
How do I fix CVE-2022-50213?
To fix CVE-2022-50213, update to the latest version of the Linux kernel where this vulnerability has been addressed.
What software is affected by CVE-2022-50213?
CVE-2022-50213 affects the Linux kernel, specifically its netfilter component.
What are the potential consequences of CVE-2022-50213?
The consequences of CVE-2022-50213 could include unauthorized access or manipulation of network filtering rules.
Is there a workaround for CVE-2022-50213?
There is no publicly documented workaround for CVE-2022-50213; applying the patch is the recommended course of action.