What’s Vulnerable › Vulnerabilities

CVE-2023-54035: netfilter: nf_tables: fix underflow in chain reference counter

Description

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: fix underflow in chain reference counter Set element addition error path decrements reference counter on chains twice: once on element release and again via nft_data_release(). Then, d6b478666ffa ("netfilter: nf_tables: fix underflow in object reference counter") incorrectly fixed this by removing the stateful object reference count decrement. Restore the stateful object decrement as in b91d90368837 ("netfilter: nf_tables: fix leaking object reference count") and let nft_data_release() decrement the chain reference counter, so this is done only once.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.20, 5.11, 5.16, 5.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-54035 or the next vulnerability affects your stack