netfilter: nf_tables: fix underflow in chain reference counter
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's nf_tables set-element addition error path can decrement a chain reference counter twice, causing an underflow. The input does not specify what an attacker could accomplish or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with nf_tables should check their versions; affected versions are not specified in the input.