# CVE-2026-139776: soc: qcom: apr: clean up failed service registrations

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:37:54.061Z
- **Modified:** 2026-11-30T14:20:10.740Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can trigger a use-after-free in the Linux kernel's Qualcomm APR driver by sending a packet that references a service left in the IDR after a failed device registration.

## Who should check

- Anyone running Linux \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< fc8b553d61cc5ff47875344dc9aec5b1c5234e70; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 36e7f2598831be71421e4d73cb317b696ec215f4; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 0995f9123d9c17019108e95d110c58f26c3b1dad; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 7c00f8a39f29994c2fb495c74811f465fac3d031; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 5254160d7b6a72607297b66627a85e445c0c4e7a; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 7dc14f37ca4ee35040c67c4b0180dd7b32079caf
- Anyone running Linux 4.18

## Description

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

soc: qcom: apr: clean up failed service registrations

apr\_add\_device() publishes a service in svcs\_idr before parsing the
optional protection domain and registering the device. If device
registration fails, put\_device() frees the apr\_device while its service
remains in the IDR. A received packet can then dereference that stale
entry. The property error path also leaves the service and allocation
behind.

Split device\_register() into device\_initialize() and device\_add() so every
pre-registration error can safely drop the device reference. Remove the
service from the IDR on all failures after publication, then drain the RX
workqueue before dropping the device reference. This prevents an in-flight
lookup from outliving the device.

## Affected and fixed versions

- Linux: \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< fc8b553d61cc5ff47875344dc9aec5b1c5234e70; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 36e7f2598831be71421e4d73cb317b696ec215f4; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 0995f9123d9c17019108e95d110c58f26c3b1dad; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 7c00f8a39f29994c2fb495c74811f465fac3d031; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 5254160d7b6a72607297b66627a85e445c0c4e7a; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 7dc14f37ca4ee35040c67c4b0180dd7b32079caf (cvelist)
- Linux: 4.18 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 7dc14f37ca4ee35040c67c4b0180dd7b32079caf or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139776. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139776.md
Affected: Linux >= 6adba21eb434d8160da05507c564c2339f4afdda, < fc8b553d61cc5ff47875344dc9aec5b1c5234e70; >= 6adba21eb434d8160da05507c564c2339f4afdda, < 36e7f2598831be71421e4d73cb317b696ec215f4; >= 6adba21eb434d8160da05507c564c2339f4afdda, < 0995f9123d9c17019108e95d110c58f26c3b1dad; >= 6adba21eb434d8160da0550…
Fixed in: Linux 36e7f2598831be71421e4d73cb317b696ec215f4, Linux 0995f9123d9c17019108e95d110c58f26c3b1dad, Linux 7c00f8a39f29994c2fb495c74811f465fac3d031, Linux 5254160d7b6a72607297b66627a85e445c0c4e7a, Linux 7dc14f37ca4ee35040c67c4b0180dd7b32079caf

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-139776 being exploited?

There is no confirmed exploitation: CVE-2026-139776 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139776?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139776?

Linux \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< fc8b553d61cc5ff47875344dc9aec5b1c5234e70; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 36e7f2598831be71421e4d73cb317b696ec215f4; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 0995f9123d9c17019108e95d110c58f26c3b1dad; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 7c00f8a39f29994c2fb495c74811f465fac3d031; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 5254160d7b6a72607297b66627a85e445c0c4e7a; \>= 6adba21eb434d8160da05507c564c2339f4afdda, \< 7dc14f37ca4ee35040c67c4b0180dd7b32079caf; Linux 4.18.

### Is there a fix for CVE-2026-139776?

Yes. Fixed in Linux 36e7f2598831be71421e4d73cb317b696ec215f4, Linux 0995f9123d9c17019108e95d110c58f26c3b1dad, Linux 7c00f8a39f29994c2fb495c74811f465fac3d031, Linux 5254160d7b6a72607297b66627a85e445c0c4e7a, Linux 7dc14f37ca4ee35040c67c4b0180dd7b32079caf. Upgrade Linux to 7dc14f37ca4ee35040c67c4b0180dd7b32079caf or later.

### How do I check if I'm affected by CVE-2026-139776?

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

- other: <https://git.kernel.org/stable/c/fc8b553d61cc5ff47875344dc9aec5b1c5234e70>
- other: <https://git.kernel.org/stable/c/36e7f2598831be71421e4d73cb317b696ec215f4>
- other: <https://git.kernel.org/stable/c/0995f9123d9c17019108e95d110c58f26c3b1dad>
- other: <https://git.kernel.org/stable/c/7c00f8a39f29994c2fb495c74811f465fac3d031>
- other: <https://git.kernel.org/stable/c/5254160d7b6a72607297b66627a85e445c0c4e7a>
- other: <https://git.kernel.org/stable/c/7dc14f37ca4ee35040c67c4b0180dd7b32079caf>

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

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