Skip to contentSkip to conversation

CVE-2026-97440: net: qrtr: fix node refcount leak on ctrl packet alloc failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

net: qrtr: fix node refcount leak on ctrl packet alloc failure

qrtr_send_resume_tx() calls qrtr_node_lookup() which takes a reference on the returned node. If the subsequent call to qrtr_alloc_ctrl_packet() fails due to memory allocation failure, the function returns -ENOMEM without calling qrtr_node_release() to release the node reference.

Add qrtr_node_release(node) before returning on the allocation failure path to properly release the reference.

The Linux kernel CVE team has assigned CVE-2026-97440 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.12.111 with commit 477353db343663d5502ca442c6de785d2f23f273
	Fixed in 6.18.53 with commit 9d969c98732a4d42212ec580dd5bbad53f246103
	Fixed in 7.2 with commit 3b09ff54114566864eea59020f6b69c5bb325b9d

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-97440

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/af_qrtr.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/477353db343663d5502ca442c6de785d2f23f273
	https://git.kernel.org/stable/c/9d969c98732a4d42212ec580dd5bbad53f246103
	https://git.kernel.org/stable/c/3b09ff54114566864eea59020f6b69c5bb325b9d