net: qrtr: fix node refcount leak on ctrl packet alloc failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cb6530b99fafea6c0636c4640bd21301d12cdbc9 · < 9d969c98732a4d42212ec580dd5bbad53f246103| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's QRTR networking code can leak a node reference when allocation of a control packet fails. The input does not describe an attacker-controlled trigger or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their version includes the QRTR fix; affected versions are not specified.