Bug 2373623 (CVE-2022-50212) - CVE-2022-50212 kernel: netfilter: nf_tables: do not allow CHAIN_ID to refer to another table
Summary: CVE-2022-50212 kernel: netfilter: nf_tables: do not allow CHAIN_ID to refer t...
Keywords:
Status: NEW
Alias: CVE-2022-50212
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:11 UTC by OSIDB Bzimport
Modified: 2025-06-19 02:51 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:11:14 UTC
In the Linux kernel, the following vulnerability has been resolved:

netfilter: nf_tables: do not allow CHAIN_ID to refer to another table

When doing lookups for chains on the same batch by using its ID, a chain
from a different table can be used. If a rule is added to a table but
refers to a chain in a different table, it will be linked to the chain in
table2, but would have expressions referring to objects in table1.

Then, when table1 is removed, the rule will not be removed as its linked to
a chain in table2. When expressions in the rule are processed or removed,
that will lead to a use-after-free.

When looking for chains by ID, use the table that was used for the lookup
by name, and only return chains belonging to that same table.

Comment 1 Avinash Hanwate 2025-06-19 02:17:57 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061844-CVE-2022-50212-1ff1@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.