netfilter: xt_nat: reject unsupported target families
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel ec88fa71c82072e9189983b05b499d3507550271, Kernel 0afc9ad987c0faa80ab5f8d6e7815085ac8dbb82, Kernel 49abe564391411057a26a9a943c8e17867c3b9b4 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_nat: reject unsupported target families xt_nat SNAT and DNAT target handlers assume IP-family conntrack state is present and can dereference a NULL pointer when instantiated from an unsupported family through nft_compat. A bridge-family compat rule can therefore trigger a NULL-dereference in nf_nat_setup_info(). Reject non-IP families in xt_nat_checkentry() so unsupported targets cannot be installed. Keep NFPROTO_INET allowed for valid inet NAT compat users and leave the runtime fast path unchanged. [ The crash was fixed via 9dbba7e694ec ("netfilter: nft_compat: ebtables emulation must reject non-bridge targets"), so this patch is no longer critical. Nevertheless, NAT is only relevant for ipv4/ipv6, so this extra family check is a good idea in any case. ]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=c7232c9979cba684c50b64c513c4a83c9aa70563 <ec88fa71c82072e9189983b05b499d3507550271, >=c7232c9979cba684c50b64c513c4a83c9aa70563 <0afc9ad987c0faa80ab5f8d6e7815085ac8dbb82, >=c7232c9979cba684c50b64c513c4a83c9aa70563 <49abe564391411057a26a9a943c8e17867c3b9b4, >=c7232c9979cba684c50b64c513c4a83c9aa70563 <4fbc2bac02edabb665beb2aa87ca6f1e1d4c4777, >=c7232c9979cba684c50b64c513c4a83c9aa70563 <5d1a2240935ea47e2673d0ea17fdb058e4dc91dd, >=c7232c9979cba684c50b64c513c4a83c9aa70563 <679ced28a9dc2f6dc679eb05027d779693e60902, >=c7232c9979cba684c50b64c513c4a83c9aa70563 <a842dab87cab29f2a5798a47b2dc5e6a449950bf, >=c7232c9979cba684c50b64c513c4a83c9aa70563 <e35c048d7511e9d4c2a537b8a231c49606e97c16, =3.7 | ec88fa71c82072e9189983b05b499d3507550271, 0afc9ad987c0faa80ab5f8d6e7815085ac8dbb82, 49abe564391411057a26a9a943c8e17867c3b9b4, 4fbc2bac02edabb665beb2aa87ca6f1e1d4c4777, 5d1a2240935ea47e2673d0ea17fdb058e4dc91dd, 679ced28a9dc2f6dc679eb05027d779693e60902, a842dab87cab29f2a5798a47b2dc5e6a449950bf, e35c048d7511e9d4c2a537b8a231c49606e97c16 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=6.13.0 <6.18.40, >=6.19.0 <7.1.5, >=6.2.0 <6.6.145, >=6.7.0 <6.12.97, >=3.7.0 <5.10.261 | 5.15.212, 6.1.178, 6.18.40, 7.1.5, 6.6.145, 6.12.97, 5.10.261 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket