CVE-2022-50129 Information
Description
In the Linux kernel the following vulnerability has been resolved:
RDMA/srpt: Fix a use-after-free
Change the LIO port members inside struct srpt_port from regular members into pointers. Allocate the LIO port data structures from inside srpt_make_tport() and free these from inside srpt_make_tport(). Keep struct srpt_device as long as either an RDMA port or a LIO target port is associated with it. This patch decouples the lifetime of struct srpt_port (controlled by the RDMA core) and struct srpt_port_id (controlled by LIO). This patch fixes the following KASAN complaint:
BUG: KASAN: use-after-free in srpt_enable_tpg+0x31/0x70 [ib_srpt] Read of size 8 at addr ffff888141cc34b8 by task check/5093
Call Trace:
Reference
https://git.kernel.org/stable/c/388326bb1c32fcd09371c1d494af71471ef3a04b https://git.kernel.org/stable/c/4ee8c39968a648d58b273582d4b021044a41ee5e https://git.kernel.org/stable/c/b5605148e6ce36bb21020d49010b617693933128 https://git.kernel.org/stable/c/de95b52d9aabc979166aba81ccbe623aaf9c16a1 https://git.kernel.org/stable/c/e60d7e2462bf57273563c4e00dbfa79ee973b9e2
Related CNNVD
CNNVD-202506-2427 (Published: 2025-06-18)
Share on: