CVE-2026-46189: RDMA/vmw_pvrdma: Fix double free on pvrdma_alloc_ucontext() error path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/vmw_pvrdma: Fix double free on pvrdma_alloc_ucontext() error path
Sashiko points out that pvrdma_uar_free() is already called within pvrdma_dealloc_ucontext(), so calling it before triggers a double free.
The Linux kernel CVE team has assigned CVE-2026-46189 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.10 with commit 29c8d9eba550c6d73d17cc1618a9f5f2a7345aa1 and fixed in 6.6.140 with commit ecc36a82ecfcfdf3c6606d209f22ec5543c410e0 Issue introduced in 4.10 with commit 29c8d9eba550c6d73d17cc1618a9f5f2a7345aa1 and fixed in 6.12.88 with commit 45d25e3ec17900bf5a9d6876ff16ceee31c4c0e0 Issue introduced in 4.10 with commit 29c8d9eba550c6d73d17cc1618a9f5f2a7345aa1 and fixed in 6.18.30 with commit 0c63333ff97bd1275294fd12840a0efe9d7a4c59 Issue introduced in 4.10 with commit 29c8d9eba550c6d73d17cc1618a9f5f2a7345aa1 and fixed in 7.0.7 with commit 935ee27d0904aa944cbcc979094c20e5ef62eead Issue introduced in 4.10 with commit 29c8d9eba550c6d73d17cc1618a9f5f2a7345aa1 and fixed in 7.1-rc3 with commit e38e86995df27f1f854063dab1f0c6a513db3faf
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46189
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/ecc36a82ecfcfdf3c6606d209f22ec5543c410e0 https://git.kernel.org/stable/c/45d25e3ec17900bf5a9d6876ff16ceee31c4c0e0 https://git.kernel.org/stable/c/0c63333ff97bd1275294fd12840a0efe9d7a4c59 https://git.kernel.org/stable/c/935ee27d0904aa944cbcc979094c20e5ef62eead https://git.kernel.org/stable/c/e38e86995df27f1f854063dab1f0c6a513db3faf