In the Linux kernel, the following vulnerability has been resolved: net: ena: clean up XDP TX queues when regular TX setup fails create_queues_with_size_backoff() creates XDP TX queues before setting up the regular TX path. If the subsequent allocation or creation of regular TX queues fails, the error handling paths omit the teardown of the XDP TX queues, leading to a resource leak. Fix this by explicitly destroying the XDP TX queue subset at the two missing failure points. The bug was first flagged by an experimental analysis tool we are developing for kernel memory-management bugs while analyzing v6.13-rc1. The tool is still under development and is not yet publicly available. Manual inspection confirms that the bug is still present in v7.1-rc7. An x86_64 allyesconfig build showed no new warnings. As we do not have an ENA device to test with, no runtime testing was able to be performed.
https://git.kernel.org/stable/c/f2ff634d95f8a6c885b9ce71a64067e255bcc34a
https://git.kernel.org/stable/c/df65d9fea8437235e740552e542fb309765507db
https://git.kernel.org/stable/c/6773d6d82bdabddab2b31605d6d7029c91dbd217
https://git.kernel.org/stable/c/6596baf8041100a9d1647beb5ea8ea4496ce058f
https://git.kernel.org/stable/c/5daa63404b708fc74e94da8398affbb148d09044
https://git.kernel.org/stable/c/523caef03124ecc08ce62a78c617759c2d28cf1c
https://git.kernel.org/stable/c/1bd6676254b4ab6acd44b662b5e92822c036463a
https://git.kernel.org/stable/c/11f68ebc6891d11de5f32b7dee918c5dc18b8de1