Skip to content
FlawDB
Sign in

CVE-2026-139664

UNSCORED

RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT

AI summary AI generated

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.

Mitigation

  • Upgrade Linux to 9dcacdc41083cccff74292851bf9fde999e0731a or later.

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

Vulnerability facts

Affected
Linux >= a1123418ba1078037d9fecb72573ff7222dfe201, < e845dc5fa35d90c28861c6a21063f7c73360af75; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d; >= a1123418ba1078037d9fecb72573ff7222dfe201, < c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d; >= a1123418ba1078037d9fecb72573ff7222dfe201, < d1946ab6dbc31ac4fd87123c337fbabe4da539ef; >= a1123418ba1078037d9fecb72573ff7222dfe201, < e47ea092ab3cc9f0074f141f749165c86de42171; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 02e31eea7c929384b5efe2e80fa22fb42601724a; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 9dcacdc41083cccff74292851bf9fde999e0731a; Linux 5.6
Fixed in
Linux 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d, Linux 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d, Linux 02e31eea7c929384b5efe2e80fa22fb42601724a, Linux 9dcacdc41083cccff74292851bf9fde999e0731a
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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

Package / productAffectedFixedSource
Linux>= a1123418ba1078037d9fecb72573ff7222dfe201, < e845dc5fa35d90c28861c6a21063f7c73360af75; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d; >= a1123418ba1078037d9fecb72573ff7222dfe201, < c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d; >= a1123418ba1078037d9fecb72573ff7222dfe201, < d1946ab6dbc31ac4fd87123c337fbabe4da539ef; >= a1123418ba1078037d9fecb72573ff7222dfe201, < e47ea092ab3cc9f0074f141f749165c86de42171; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 02e31eea7c929384b5efe2e80fa22fb42601724a; >= a1123418ba1078037d9fecb72573ff7222dfe201, < 9dcacdc41083cccff74292851bf9fde999e0731a—cvelist
Linux5.6—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-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.

Technologies

References

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 6.5CVE-2026-140063

Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker

Linux kernel+1
MEDIUM 5.1CVE-2026-140038

Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber

Linux kernel+1
HIGH 7.3CVE-2026-139801

KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM

Linux kernel
UNSCOREDCVE-2026-139800

9p/xen: drain response work after unbinding IRQ

Linux kernel
HIGH 7.0CVE-2026-139799

mm/shmem: hold off eviction in shmem_writeout()

Linux kernel
Sponsors