PT-2026-163705

CVE-2026-139664

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

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.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾