CVE-2026-52947
net: qrtr: fix refcount saturation and potential UAF in qrtr_port_remove
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2aa4c12723fe432e623462a3be42a197a128722b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 474293d90880622fde9d2430fb0165767090f7b3; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2047c2aa0963bb2872fd722300a15bcb441a4c00; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 7de2d447072be3b1a76793f034432338fc9c494b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < ab269990ed58143a92a263be1bee626d82ac03da; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 3b20ec8f31e8a6a6782243f473b0abd3463621df; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < a2171131ecda1ed61a594a1eb715e75fdad0fef5
- Anyone running Linux 4.7
Vulnerability facts
- Affected
- Linux >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2aa4c12723fe432e623462a3be42a197a128722b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 474293d90880622fde9d2430fb0165767090f7b3; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2047c2aa0963bb2872fd722300a15bcb441a4c00; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 7de2d447072be3b1a76793f034432338fc9c494b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < ab269990ed58143a92a263be1bee626d82ac03da; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 3b20ec8f31e8a6a6782243f473b0abd3463621df; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < a2171131ecda1ed61a594a1eb715e75fdad0fef5; Linux 4.7
- Fixed in
- Linux 2aa4c12723fe432e623462a3be42a197a128722b, Linux 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d, Linux 474293d90880622fde9d2430fb0165767090f7b3, Linux 2047c2aa0963bb2872fd722300a15bcb441a4c00, Linux 7de2d447072be3b1a76793f034432338fc9c494b, Linux 3b20ec8f31e8a6a6782243f473b0abd3463621df
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.13% chance of exploitation in 30 days (percentile 1, 2026-11-26)
- CWE
- CWE-416, CWE-362
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: net: qrtr: fix refcount saturation and potential UAF in qrtr_port_remove In qrtr_port_remove(), the socket reference count is decremented via __sock_put() before the port is removed from the qrtr_ports XArray and before the RCU grace period elapses. This breaks the fundamental RCU update paradigm. It exposes a race window where a concurrent RCU reader (such as qrtr_reset_ports() or qrtr_port_lookup()) can obtain a pointer to the socket from the XArray, and attempt to call sock_hold() on a socket whose reference count has already dropped to zero. This exact race condition was hit during syzkaller fuzzing, leading to the following refcount saturation warning and a potential Use-After-Free: refcount_t: saturated; leaking memory. WARNING: CPU: 3 PID: 1273 at lib/refcount.c:22 refcount_warn_saturate+0xae/0x1d0 Modules linked in: qrtr(+) bochs drm_shmem_helper ... Call Trace: <TASK> qrtr_reset_ports net/qrtr/af_qrtr.c:768 [inline] [qrtr] __qrtr_bind.isra.0+0x48b/0x570 net/qrtr/af_qrtr.c:805 [qrtr] qrtr_bind+0x17d/0x210 net/qrtr/af_qrtr.c:901 [qrtr] kernel_bind+0xe4/0x120 net/socket.c:3592 qrtr_ns_init+0x1a6/0x380 net/qrtr/ns.c:715 [qrtr] qrtr_proto_init+0x3b/0xff0 net/qrtr/af_qrtr.c:169 [qrtr] do_one_initcall+0xf5/0x5e0 init/main.c:1283 ... </TASK> Fix this by deferring the reference count decrement until after the xa_erase() and the synchronize_rcu() complete. (Note: The v1 of this patch incorrectly replaced __sock_put() with sock_put(). As Simon Horman pointed out, the callers of qrtr_port_remove() still hold a reference to the socket, so freeing the socket memory here would lead to a subsequent UAF in the caller. Thus, the __sock_put() is kept, but only repositioned to close the RCU race.)
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2aa4c12723fe432e623462a3be42a197a128722b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 474293d90880622fde9d2430fb0165767090f7b3; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2047c2aa0963bb2872fd722300a15bcb441a4c00; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 7de2d447072be3b1a76793f034432338fc9c494b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < ab269990ed58143a92a263be1bee626d82ac03da; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 3b20ec8f31e8a6a6782243f473b0abd3463621df; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < a2171131ecda1ed61a594a1eb715e75fdad0fef5 | — | cvelist |
| Linux | 4.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-52947. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-52947.md Affected: Linux >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2aa4c12723fe432e623462a3be42a197a128722b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 474293d90880622fde9d2430fb0165767090f7b3; >= bdabad3e363d825ddf9679d… Fixed in: Linux 2aa4c12723fe432e623462a3be42a197a128722b, Linux 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d, Linux 474293d90880622fde9d2430fb0165767090f7b3, Linux 2047c2aa0963bb2872fd722300a15bcb441a4c00, Linux 7de2d447072be3b1a76793f034432338fc9c494b, Linux 3b20ec8f31e8a6a6782243f473b0abd3463621df Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/2aa4c12723fe432e623462a3be42a197a128722b
- https://git.kernel.org/stable/c/03bfa95e452e2b6ccd76a332060ae4feaf5ad84d
- https://git.kernel.org/stable/c/474293d90880622fde9d2430fb0165767090f7b3
- https://git.kernel.org/stable/c/2047c2aa0963bb2872fd722300a15bcb441a4c00
- https://git.kernel.org/stable/c/7de2d447072be3b1a76793f034432338fc9c494b
- https://git.kernel.org/stable/c/ab269990ed58143a92a263be1bee626d82ac03da
- https://git.kernel.org/stable/c/3b20ec8f31e8a6a6782243f473b0abd3463621df
- https://git.kernel.org/stable/c/a2171131ecda1ed61a594a1eb715e75fdad0fef5
FAQ
Is CVE-2026-52947 being exploited?
There is no confirmed exploitation: CVE-2026-52947 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-52947?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-52947?
Linux >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2aa4c12723fe432e623462a3be42a197a128722b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 474293d90880622fde9d2430fb0165767090f7b3; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 2047c2aa0963bb2872fd722300a15bcb441a4c00; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 7de2d447072be3b1a76793f034432338fc9c494b; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < ab269990ed58143a92a263be1bee626d82ac03da; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < 3b20ec8f31e8a6a6782243f473b0abd3463621df; >= bdabad3e363d825ddf9679dd431cca0b2c30f881, < a2171131ecda1ed61a594a1eb715e75fdad0fef5; Linux 4.7.
Is there a fix for CVE-2026-52947?
Yes. Fixed in Linux 2aa4c12723fe432e623462a3be42a197a128722b, Linux 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d, Linux 474293d90880622fde9d2430fb0165767090f7b3, Linux 2047c2aa0963bb2872fd722300a15bcb441a4c00, Linux 7de2d447072be3b1a76793f034432338fc9c494b, Linux 3b20ec8f31e8a6a6782243f473b0abd3463621df. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-52947?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.