# CVE-2023-53445: net: qrtr: Fix a refcount bug in qrtr_recvmsg()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-18T16:04:21.257Z
- Modified: 2026-08-05T09:14:09.277Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

net: qrtr: Fix a refcount bug in qrtr_recvmsg()

Syzbot reported a bug as following:

refcount_t: addition on 0; use-after-free.
...
RIP: 0010:refcount_warn_saturate+0x17c/0x1f0 lib/refcount.c:25
...
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:199 [inline]
 __refcount_inc include/linux/refcount.h:250 [inline]
 refcount_inc include/linux/refcount.h:267 [inline]
 kref_get include/linux/kref.h:45 [inline]
 qrtr_node_acquire net/qrtr/af_qrtr.c:202 [inline]
 qrtr_node_lookup net/qrtr/af_qrtr.c:398 [inline]
 qrtr_send_resume_tx net/qrtr/af_qrtr.c:1003 [inline]
 qrtr_recvmsg+0x85f/0x990 net/qrtr/af_qrtr.c:1070
 sock_recvmsg_nosec net/socket.c:1017 [inline]
 sock_recvmsg+0xe2/0x160 net/socket.c:1038
 qrtr_ns_worker+0x170/0x1700 net/qrtr/ns.c:688
 process_one_work+0x991/0x15c0 kernel/workqueue.c:2390
 worker_thread+0x669/0x1090 kernel/workqueue.c:2537

It occurs in the concurrent scenario of qrtr_recvmsg() and
qrtr_endpoint_unregister() as following:

	cpu0					cpu1
qrtr_recvmsg				qrtr_endpoint_unregister
qrtr_send_resume_tx			qrtr_node_release
qrtr_node_lookup			mutex_lock(&qrtr_node_lock)
spin_lock_irqsave(&qrtr_nodes_lock, )	refcount_dec_and_test(&node->ref) [node->ref == 0]
radix_tree_lookup [node != NULL]	__qrtr_node_release
qrtr_node_acquire			spin_lock_irqsave(&qrtr_nodes_lock, )
kref_get(&node->ref) [WARNING]		...
					mutex_unlock(&qrtr_node_lock)

Use qrtr_node_lock to protect qrtr_node_lookup() implementation, this
is actually improving the protection of node reference.

(As written by CVE List.)

## Affected

- Linux Linux: from 0a7e0d0ef05440db03c3199e84d228db943b237f before 98a9cd82c541ef6cbdb829cd6c05cbbb471e373c; from 0a7e0d0ef05440db03c3199e84d228db943b237f before b9ba5906c42089f8e1d0001b7b50a7940f086cbb; from 0a7e0d0ef05440db03c3199e84d228db943b237f before aa95efa187b4114075f312b3c4680d050b56fdec; from 0a7e0d0ef05440db03c3199e84d228db943b237f before 48a07f6e00d305597396da4d7494b81cec05b9d3; from 0a7e0d0ef05440db03c3199e84d228db943b237f before 44d807320000db0d0013372ad39b53e12d52f758; 5.6 (not affected: before 5.6; from 5.10.178 up to 5.10.*; from 5.15.107 up to 5.15.*; from 6.1.24 up to 6.1.*; from 6.2.11 up to 6.2.*; from 6.3 up to *)
- linux linux_kernel: from 5.6 before 5.10.178; from 5.11 before 5.15.107; from 5.16 before 6.1.24; from 6.2 before 6.2.11; 6.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/98a9cd82c541ef6cbdb829cd6c05cbbb471e373c> (patch)
- <https://git.kernel.org/stable/c/b9ba5906c42089f8e1d0001b7b50a7940f086cbb> (patch)
- <https://git.kernel.org/stable/c/aa95efa187b4114075f312b3c4680d050b56fdec> (patch)
- <https://git.kernel.org/stable/c/48a07f6e00d305597396da4d7494b81cec05b9d3> (patch)
- <https://git.kernel.org/stable/c/44d807320000db0d0013372ad39b53e12d52f758> (patch)

## Sources

- CVE List: [CVE-2023-53445](https://www.cve.org/CVERecord?id=CVE-2023-53445), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2023-53445](https://nvd.nist.gov/vuln/detail/CVE-2023-53445), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2023-53445 · Whole record: https://cve.day/CVE-2023-53445.json · Rebuilt by cve.day 2026-11-25T22:58:34.886Z
