← All Advisories

Linux Kernel RDMA/siw siw_accept Connection Establishment Race Frees QP and cep Under Lock, Enabling a Local Use-After-Free

Last refreshed2026-10-10

Status: UPDATED  |  Advisory ID: CVE-2026-98367

Key Details

CVECVE-2026-98367
CVSS Score / Version7.8 (High) / CVSS v3.1
Updated2026-10-07
CVSS VectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Proseattack vector is local; attack complexity is low; privileges required is low; user interaction is none; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected productsLinux Kernel

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
LinuxLinux Kernel
SubsystemsOT Supporting Infrastructure
SectorsAll Sectors

What to Know

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

RDMA/siw: Clear association under lock if siw_qp_modify fails in siw_accept

We need to clear cep before release state_lock as siw_qp_llp_close and

siw_qp_modify->siw_qp_llp_close did.

Otherwise if siw_qp_modify() fails in siw_accept(), the QP's state_lock

is released before the error path cleanup. A concurrent ibv_modify_qp()

transitioning the QP to ERROR can race in this window:

siw_accept() ibv_modify_qp(ERROR)

---------------------- ----------------------

siw_qp_modify() fails

up_write(&qp->state_lock)

down_write(&qp->state_lock)

nextstate_from_idle():

if (qp->cep)

siw_cep_put(qp->cep) <- frees cep

qp->cep = NULL

goto error

cep->qp = NULL <- UAF

Clear qp->cep and drop the association reference taken by siw_cep_get(),

all under the write lock held from the initial down_write(&qp->state_lock).

Thread B therefore sees qp->cep == NULL, skips its own put, and cannot free

the cep before siw_accept() is done with it. (NVD)

What to Do

Monitor Linux's web page for any future patch releases.

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-98367
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-98367