Linux
netfilter: nf_tables: make nft_object rhltable per table
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: make nft_object rhltable per table The nft_object rhltable is global, this allows for accessing objects that are being dismangled from lookup path by other existing netns. Given the nft_obj_destroy() releases the object inmediately, this might lead to use-after-free of these objects that are being released. Make the existing rhltable per table to address this issue to deal with with the nft_rcv_nl_event() path too. Update nft_obj_lookup() to take the table as non-const, otherwise, compiler complains when passing the objname_ht to rhltable_lookup().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4d44175aa5bb5f68772b1eb0306554812294ca52, < 4b549d32d34ee765527e63726bb1af984876e776
- >= 4d44175aa5bb5f68772b1eb0306554812294ca52, < 523c881661dde67efb44fce38c8eed50a72a57c1
- >= 4d44175aa5bb5f68772b1eb0306554812294ca52, < 71714a2cec6c6d79bbd425ad968f9d6a3e4a2066
- >= 4d44175aa5bb5f68772b1eb0306554812294ca52, < 1948e4f85b855618b5b9a27265f98d816f4cb7cb
- >= 4d44175aa5bb5f68772b1eb0306554812294ca52, < 63ba12b664a2cd3220ed43e22c717715f4cc2ae8
- >= 4d44175aa5bb5f68772b1eb0306554812294ca52, < 7d4789b58761d9d48d9b5f5e7e0a510c3bbfb3af
- >= 4d44175aa5bb5f68772b1eb0306554812294ca52, < f4f699790590bd0896c48a71e9232a65198f92f0
Fixed in 4b549d32d34ee765527e63726bb1af984876e776, 523c881661dde67efb44fce38c8eed50a72a57c1, 71714a2cec6c6d79bbd425ad968f9d6a3e4a2066, 1948e4f85b855618b5b9a27265f98d816f4cb7cb, 63ba12b664a2cd3220ed43e22c717715f4cc2ae8, 7d4789b58761d9d48d9b5f5e7e0a510c3bbfb3af, f4f699790590bd0896c48a71e9232a65198f92f0
- 5.1
Fixed in 0, 5.10.270, 6.1.188, 6.6.160, 6.12.103, 6.18.44, 7.1.8, 7.2
Mitigation
Upgrade Linux to 4b549d32d34ee765527e63726bb1af984876e776 or 523c881661dde67efb44fce38c8eed50a72a57c1 or 71714a2cec6c6d79bbd425ad968f9d6a3e4a2066 or 1948e4f85b855618b5b9a27265f98d816f4cb7cb or 63ba12b664a2cd3220ed43e22c717715f4cc2ae8 or 7d4789b58761d9d48d9b5f5e7e0a510c3bbfb3af or f4f699790590bd0896c48a71e9232a65198f92f0 or later.
Upgrade Linux to 0 or 5.10.270 or 6.1.188 or 6.6.160 or 6.12.103 or 6.18.44 or 7.1.8 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.