# CVE-2026-52947: net: qrtr: fix refcount saturation and potential UAF in qrtr\_port\_remove

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.13% (percentile 1, 2026-11-26)
- **CWE:** CWE-416, CWE-362
- **Published:** 2026-06-24T16:26:05.062Z
- **Modified:** 2026-10-19T20:18:49.507Z

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

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

- Linux: \>= bdabad3e363d825ddf9679dd431cca0b2c30f881, \< 2aa4c12723fe432e623462a3be42a197a128722b; \>= bdabad3e363d825ddf9679dd431cca0b2c30f881, \< 03bfa95e452e2b6ccd76a332060ae4feaf5ad84d; \>= bdabad3e363d825ddf9679dd431cca0b2c30f881, \< 474293d90880622fde9d2430fb0165767090f7b3; \>= bdabad3e363d825ddf9679dd431cca0b2c30f881, \< 2047c2aa0963bb2872fd722300a15bcb441a4c00; \>= bdabad3e363d825ddf9679dd431cca0b2c30f881, \< 7de2d447072be3b1a76793f034432338fc9c494b; \>= bdabad3e363d825ddf9679dd431cca0b2c30f881, \< ab269990ed58143a92a263be1bee626d82ac03da; \>= bdabad3e363d825ddf9679dd431cca0b2c30f881, \< 3b20ec8f31e8a6a6782243f473b0abd3463621df; \>= bdabad3e363d825ddf9679dd431cca0b2c30f881, \< a2171131ecda1ed61a594a1eb715e75fdad0fef5 (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/2aa4c12723fe432e623462a3be42a197a128722b>
- patch: <https://git.kernel.org/stable/c/03bfa95e452e2b6ccd76a332060ae4feaf5ad84d>
- patch: <https://git.kernel.org/stable/c/474293d90880622fde9d2430fb0165767090f7b3>
- patch: <https://git.kernel.org/stable/c/2047c2aa0963bb2872fd722300a15bcb441a4c00>
- patch: <https://git.kernel.org/stable/c/7de2d447072be3b1a76793f034432338fc9c494b>
- patch: <https://git.kernel.org/stable/c/ab269990ed58143a92a263be1bee626d82ac03da>
- patch: <https://git.kernel.org/stable/c/3b20ec8f31e8a6a6782243f473b0abd3463621df>
- patch: <https://git.kernel.org/stable/c/a2171131ecda1ed61a594a1eb715e75fdad0fef5>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-52947>

HTML: <https://flawdb.com/CVE-2026-52947> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-52947>
