RDMA/core: fix refcount bug in iwpm_get_nlmsg_request()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 30dc5e63d6a5ad24894b5512d10b228d73645a44 · < e15eb536be4f646ce683d2867572b2200be877f7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: fix refcount bug in iwpm_get_nlmsg_request()
iwpm_get_nlmsg_request() initializes refcount _after_ list_add_tail() making it accessible to global list where another CPU can kref_get() on nlmsg_request causing a refcount "addition on 0" bug. Fix this by initializing kref _before_ list_add_tail() so refcount for nlmsg_request can be incremented/decremented normally. In addition, also initialize every field before list_add_tail().
From the CVE record · Linux
The Linux kernel’s iwpm_get_nlmsg_request() adds a request to a global list before initializing its reference count. Another CPU can access the request during that window and trigger a refcount “addition on 0” error. The input does not specify attacker access requirements or whether user interaction is needed.
Engineers running Linux kernels with RDMA/core should check their versions; affected versions are not specified.