Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rxe: Fix mr->map double free
rxe_mr_cleanup() which tries to free mr->map again will be called when rxe_mr_init_user() fails:
CPU: 0 PID: 4917 Comm: rdma_flush_serv Kdump: loaded Not tainted 6.1.0-rc1-roce-flush+ #25
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Call Trace:
This issue was firstly exposed since commit b18c7da63fcb (“RDMA/rxe: Fix memory leak in error path code”) and then we fixed it in commit 8ff5f5d9d8cf (“RDMA/rxe: Prevent double freeing rxe_map_set()”) but this fix was reverted together at last by commit 1e75550648da (Revert “RDMA/rxe: Create duplicate mapping tables for FMRs”)
Simply let rxe_mr_cleanup() always handle freeing the mr->map once it is successfully allocated.
Details
- Affected product:
- AlmaLinux 9.2 ESU , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS
- Affected packages:
- kernel @ 4.18.0 (+3 more)
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rxe: Fix mr->map double free
rxe_mr_cleanup() which tries to free mr->map again will be called when rxe_mr_init_user() fails:
CPU: 0 PID: 4917 Comm: rdma_flush_serv Kdump: loaded Not tainted 6.1.0-rc1-roce-flush+ #25
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Call Trace:
This issue was firstly exposed since commit b18c7da63fcb (“RDMA/rxe: Fix memory leak in error path code”) and then we fixed it in commit 8ff5f5d9d8cf (“RDMA/rxe: Prevent double freeing rxe_map_set()”) but this fix was reverted together at last by commit 1e75550648da (Revert “RDMA/rxe: Create duplicate mapping tables for FMRs”)
Simply let rxe_mr_cleanup() always handle freeing the mr->map once it is successfully allocated.