Menu

Star on GitHub · 3.2k

CVE-2022-50129

7.0 · HIGH

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.

Published Jun 18, 2025CWE-416EPSS 0.18%

Overview

CVE-2022-50129 is a high-severity vulnerability. It was published on June 18, 2025 and has a CVSS 3.1 base score of 7.0 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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:

<TASK>

show_stack+0x4e/0x53

dump_stack_lvl+0x51/0x66

print_address_description.constprop.0.cold+0xea/0x41e

print_report.cold+0x90/0x205

kasan_report+0xb9/0xf0

__asan_load8+0x69/0x90

srpt_enable_tpg+0x31/0x70 [ib_srpt]

target_fabric_tpg_base_enable_

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-50129?

CVE-2022-50129 is a high-severity vulnerability. It was published on June 18, 2025 and has a CVSS 3.1 base score of 7.0 (HIGH).

How severe is CVE-2022-50129?

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-50129?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-50129?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-50129 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2022

View all