CVE-2023-53445
published high CVSS 3.1 · 7.8net: qrtr: Fix a refcount bug in qrtr_recvmsg()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0a7e0d0ef05440db03c3199e84d228db943b237f to < 98a9cd82c541ef6cbdb829cd6c05cbbb471e373c · 0a7e0d0ef05440db03c3199e84d228db943b237f to < b9ba5906c42089f8e1d0001b7b50a7940f086cbb · 0a7e0d0ef05440db03c3199e84d228db943b237f to < aa95efa187b4114075f312b3c4680d050b56fdec · 0a7e0d0ef05440db03c3199e84d228db943b237f to < 48a07f6e00d305597396da4d7494b81cec05b9d3 · 0a7e0d0ef05440db03c3199e84d228db943b237f to < 44d807320000db0d0013372ad39b53e12d52f758 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.6 (affected) · 0 to < 5.6 (unaffected · semver) · 5.10.178 through 5.10.* (unaffected · semver) · 5.15.107 through 5.15.* (unaffected · semver) · 6.1.24 through 6.1.* (unaffected · semver) · 6.2.11 through 6.2.* (unaffected · semver) · 6.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - Exploitation requires local syscall access — `recvmsg()` on an `AF_QIPCRTR` socket concurrent with `close()`/`write()` on the `/dev/qrtr-tun` character device. No remote peer can reach `qrtr_node_lookup()` without a local endpoint being torn down. AC:L - Although this is a race, the attacker controls both sides: one thread loops on `recvmsg()` of a self-injected packet with `confirm_rx` set while another closes the qrtr-tun fd, and the `GFP_KERNEL` allocation inside `qrtr_send_resume_tx()` sleeps, widening the free-to-use window so reclaim is reliable. PR:L - No capability check exists on the path (`qrtr_create()` and `qrtr_tun_open()` perform none); access depends only on permissions of `/dev/qrtr-tun`, which on the Qualcomm Android/embedded/automotive platforms that ship QRTR is available to unprivileged radio/qrtr service domains. UI:N - The attacker drives both the socket receive and the endpoint teardown from its own threads; no victim action of any kind is needed. S:U - The corruption is confined to kernel heap objects within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed. C:H - This is a genuine use-after-free on `struct qrtr_node` — the freed object is reallocated and its contents (including `node->ep`, `node->nid`, and the `qrtr_tx_flow` radix tree) are read back, giving an attacker who sprays the slab a kernel-memory disclosure primitive. I:H - After the free the code writes into the freed object (`mutex_lock(&node->ep_lock)`, `mutex_lock(&node->qrtr_tx_lock)`, radix-tree insertion) and performs an indirect call `node->ep->xmit(node->ep, skb)` through a freed function pointer, plus a `kref_put` on freed memory — a control-flow-hijack and arbitrary-write primitive. A:H - Even unexploited, the bug produces a `refcount_t` saturation WARN (fatal under `panic_on_warn`) followed by use of freed memory, mutex operations on freed locks, and a double free — reliably oopsing or panicking the kernel, and it can be triggered repeatedly.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0a7e0d0ef05440db03c3199e84d228db943b237f to < 98a9cd82c541ef6cbdb829cd6c05cbbb471e373c (affected · git)0a7e0d0ef05440db03c3199e84d228db943b237f to < b9ba5906c42089f8e1d0001b7b50a7940f086cbb (affected · git)0a7e0d0ef05440db03c3199e84d228db943b237f to < aa95efa187b4114075f312b3c4680d050b56fdec (affected · git)0a7e0d0ef05440db03c3199e84d228db943b237f to < 48a07f6e00d305597396da4d7494b81cec05b9d3 (affected · git)0a7e0d0ef05440db03c3199e84d228db943b237f to < 44d807320000db0d0013372ad39b53e12d52f758 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.6 (affected)0 to < 5.6 (unaffected · semver)5.10.178 through 5.10.* (unaffected · semver)5.15.107 through 5.15.* (unaffected · semver)6.1.24 through 6.1.* (unaffected · semver)6.2.11 through 6.2.* (unaffected · semver)6.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
5- https://git.kernel.org/stable/c/44d807320000db0d0013372ad39b53e12d52f758
- https://git.kernel.org/stable/c/48a07f6e00d305597396da4d7494b81cec05b9d3
- https://git.kernel.org/stable/c/98a9cd82c541ef6cbdb829cd6c05cbbb471e373c
- https://git.kernel.org/stable/c/aa95efa187b4114075f312b3c4680d050b56fdec
- https://git.kernel.org/stable/c/b9ba5906c42089f8e1d0001b7b50a7940f086cbb
Provider assertions
2Linux · cna
net: qrtr: Fix a refcount bug in qrtr_recvmsg()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 36f7f1bdde4bf85aaa66956f698d1d81668ef94ad083384bb961d842dcf9e819
- Ingested
- 23 Sep 2026, 08:14:56 UTC
- Source record
- Official CVE record