Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139664

published

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

Published
30 Nov 2026, 13:36:50 UTC
Updated
30 Nov 2026, 13:36:50 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxa1123418ba1078037d9fecb72573ff7222dfe201 to < e845dc5fa35d90c28861c6a21063f7c73360af75 · a1123418ba1078037d9fecb72573ff7222dfe201 to < 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d · a1123418ba1078037d9fecb72573ff7222dfe201 to < c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f · a1123418ba1078037d9fecb72573ff7222dfe201 to < 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d · a1123418ba1078037d9fecb72573ff7222dfe201 to < d1946ab6dbc31ac4fd87123c337fbabe4da539ef · a1123418ba1078037d9fecb72573ff7222dfe201 to < e47ea092ab3cc9f0074f141f749165c86de42171 · a1123418ba1078037d9fecb72573ff7222dfe201 to < 02e31eea7c929384b5efe2e80fa22fb42601724a · a1123418ba1078037d9fecb72573ff7222dfe201 to < 9dcacdc41083cccff74292851bf9fde999e0731a · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.6 (affected) · 0 to < 5.6 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux a1123418ba1078037d9fecb72573ff7222dfe201 to < e845dc5fa35d90c28861c6a21063f7c73360af75 (affected · git)a1123418ba1078037d9fecb72573ff7222dfe201 to < 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d (affected · git)a1123418ba1078037d9fecb72573ff7222dfe201 to < c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f (affected · git)a1123418ba1078037d9fecb72573ff7222dfe201 to < 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d (affected · git)a1123418ba1078037d9fecb72573ff7222dfe201 to < d1946ab6dbc31ac4fd87123c337fbabe4da539ef (affected · git)a1123418ba1078037d9fecb72573ff7222dfe201 to < e47ea092ab3cc9f0074f141f749165c86de42171 (affected · git)a1123418ba1078037d9fecb72573ff7222dfe201 to < 02e31eea7c929384b5efe2e80fa22fb42601724a (affected · git)a1123418ba1078037d9fecb72573ff7222dfe201 to < 9dcacdc41083cccff74292851bf9fde999e0731a (affected · git)Default: unaffected Linux · cna
Linux Linux 5.6 (affected)0 to < 5.6 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
79ee479f0598bbdb074119dc4ee11fc589e011b6807f40d87a77a1ec1943dcc8
Ingested
30 Nov 2026, 13:43:49 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected