# CVE-2026-139664: RDMA/uverbs: Drop restrack ref on ib\_init\_ucontext() failure in GET\_CONTEXT

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:50.627Z
- **Modified:** 2026-11-30T14:19:50.737Z

> **AI summary (AI-generated, claude-haiku-5-5):** A local user with access to an RDMA device can leak task\_struct references by triggering a failure path in the Linux kernel RDMA uverbs GET\_CONTEXT handler, eventually exhausting memory or blocking process reaping.

## Who should check

- Anyone running Linux \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< e845dc5fa35d90c28861c6a21063f7c73360af75; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< d1946ab6dbc31ac4fd87123c337fbabe4da539ef; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< e47ea092ab3cc9f0074f141f749165c86de42171; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 02e31eea7c929384b5efe2e80fa22fb42601724a; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 9dcacdc41083cccff74292851bf9fde999e0731a
- Anyone running Linux 5.6

## Description

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

RDMA/uverbs: Drop restrack ref on ib\_init\_ucontext() failure in GET\_CONTEXT

The UVERBS\_METHOD\_GET\_CONTEXT handler allocates the ucontext via
ib\_alloc\_ucontext(), which calls rdma\_restrack\_new() (initialising the
kref to 1) and rdma\_restrack\_set\_name(NULL), the latter attaching the
current task and taking a task\_struct reference.  When ib\_init\_ucontext()
subsequently fails, the error path only does:

	kfree(attrs-\>context);
	attrs-\>context = NULL;

without first calling rdma\_restrack\_put() on &attrs-\>context-\>res.  The
kref therefore never reaches zero, restrack\_release() is never invoked,
and put\_task\_struct() is never called, so the task\_struct reference taken
during set\_name is leaked permanently.

A local user with access to an RDMA device can repeat this path (e.g. by
hitting an RDMA cgroup limit or supplying invalid ucaps) and leak one
task\_struct reference per attempt, eventually preventing those processes
from being reaped or exhausting memory.

The legacy ib\_uverbs\_get\_context() path already handles this correctly
at its err\_ucontext label, where rdma\_restrack\_put() precedes kfree().
Mirror that ordering here.

## Affected and fixed versions

- Linux: \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< e845dc5fa35d90c28861c6a21063f7c73360af75; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< d1946ab6dbc31ac4fd87123c337fbabe4da539ef; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< e47ea092ab3cc9f0074f141f749165c86de42171; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 02e31eea7c929384b5efe2e80fa22fb42601724a; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 9dcacdc41083cccff74292851bf9fde999e0731a (cvelist)
- Linux: 5.6 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 9dcacdc41083cccff74292851bf9fde999e0731a 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-139664. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139664.md
Affected: Linux >= a1123418ba1078037d9fecb72573ff7222dfe201, < e845dc5fa35d90c28861c6a21063f7c73360af75; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d; >= a1123418ba1078037d9fecb72573ff7222dfe201, < c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f; >= a1123418ba1078037d9fecb…
Fixed in: Linux 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d, Linux 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d, Linux 02e31eea7c929384b5efe2e80fa22fb42601724a, Linux 9dcacdc41083cccff74292851bf9fde999e0731a

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< e845dc5fa35d90c28861c6a21063f7c73360af75; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< d1946ab6dbc31ac4fd87123c337fbabe4da539ef; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< e47ea092ab3cc9f0074f141f749165c86de42171; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 02e31eea7c929384b5efe2e80fa22fb42601724a; \>= a1123418ba1078037d9fecb72573ff7222dfe201, \< 9dcacdc41083cccff74292851bf9fde999e0731a; Linux 5.6.

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

Yes. Fixed in Linux 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d, Linux 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d, Linux 02e31eea7c929384b5efe2e80fa22fb42601724a, Linux 9dcacdc41083cccff74292851bf9fde999e0731a. Upgrade Linux to 9dcacdc41083cccff74292851bf9fde999e0731a or later.

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

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/e845dc5fa35d90c28861c6a21063f7c73360af75>
- other: <https://git.kernel.org/stable/c/7f0bac5c52cb3a31a674ca61c25cd0be2151a05d>
- other: <https://git.kernel.org/stable/c/c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f>
- other: <https://git.kernel.org/stable/c/7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d>
- other: <https://git.kernel.org/stable/c/d1946ab6dbc31ac4fd87123c337fbabe4da539ef>
- other: <https://git.kernel.org/stable/c/e47ea092ab3cc9f0074f141f749165c86de42171>
- other: <https://git.kernel.org/stable/c/02e31eea7c929384b5efe2e80fa22fb42601724a>
- other: <https://git.kernel.org/stable/c/9dcacdc41083cccff74292851bf9fde999e0731a>

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

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