CVE-2026-46038: net: qrtr: ns: Free the node during ctrl_cmd_bye()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: qrtr: ns: Free the node during ctrl_cmd_bye()
A node sends the BYE packet when it is about to go down. So the nameserver should advertise the removal of the node to all remote and local observers and free the node finally. But currently, the nameserver doesn't free the node memory even after processing the BYE packet. This causes the node memory to leak.
Hence, remove the node from Xarray list and free the node memory during both success and failure case of ctrl_cmd_bye().
The Linux kernel CVE team has assigned CVE-2026-46038 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 6.6.140 with commit ff78ed177a66763085e3214d6fbe13ca8f0b3f11 Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 6.12.86 with commit 65932f5102bb5377db36c8a4f0c28179a1967a9a Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 6.18.27 with commit 154fc7fe3f62c46891c3c4302f4b5b5391c932e6 Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 7.0.4 with commit 076e4b162d6caba12c229e7f262df5b6881162b0 Issue introduced in 5.7 with commit 0c2204a4ad710d95d348ea006f14ba926e842ffd and fixed in 7.1-rc1 with commit 68efba36446a7774ea5b971257ade049272a07ac
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46038
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/qrtr/ns.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/ff78ed177a66763085e3214d6fbe13ca8f0b3f11 https://git.kernel.org/stable/c/65932f5102bb5377db36c8a4f0c28179a1967a9a https://git.kernel.org/stable/c/154fc7fe3f62c46891c3c4302f4b5b5391c932e6 https://git.kernel.org/stable/c/076e4b162d6caba12c229e7f262df5b6881162b0 https://git.kernel.org/stable/c/68efba36446a7774ea5b971257ade049272a07ac