Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
4d44175aa5bb5f68772b1eb0306554812294ca52 to < 4b549d32d34ee765527e63726bb1af984876e776affected4d44175aa5bb5f68772b1eb0306554812294ca52 to < 523c881661dde67efb44fce38c8eed50a72a57c1affected4d44175aa5bb5f68772b1eb0306554812294ca52 to < 71714a2cec6c6d79bbd425ad968f9d6a3e4a2066affected4d44175aa5bb5f68772b1eb0306554812294ca52 to < 1948e4f85b855618b5b9a27265f98d816f4cb7cbaffected4d44175aa5bb5f68772b1eb0306554812294ca52 to < 63ba12b664a2cd3220ed43e22c717715f4cc2ae8affected4d44175aa5bb5f68772b1eb0306554812294ca52 to < 7d4789b58761d9d48d9b5f5e7e0a510c3bbfb3afaffected4d44175aa5bb5f68772b1eb0306554812294ca52 to < f4f699790590bd0896c48a71e9232a65198f92f0affected
Linux Linux
Default version status: affected
5.1affected0 to < 5.1unaffected5.10.270 to ≤ 5.10.*unaffected6.1.188 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.103 to ≤ 6.12.*unaffected6.18.44 to ≤ 6.18.*unaffected7.1.8 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/4b549d32d34ee765527e63726bb1af984876e776 ↗
- https://git.kernel.org/stable/c/523c881661dde67efb44fce38c8eed50a72a57c1 ↗
- https://git.kernel.org/stable/c/71714a2cec6c6d79bbd425ad968f9d6a3e4a2066 ↗
- https://git.kernel.org/stable/c/1948e4f85b855618b5b9a27265f98d816f4cb7cb ↗
- https://git.kernel.org/stable/c/63ba12b664a2cd3220ed43e22c717715f4cc2ae8 ↗
- https://git.kernel.org/stable/c/7d4789b58761d9d48d9b5f5e7e0a510c3bbfb3af ↗
- https://git.kernel.org/stable/c/f4f699790590bd0896c48a71e9232a65198f92f0 ↗