CVE-2026-45922

RDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler

MEDIUM
5.5
CVSS Score
Published: May 27, 2026 at 12:17 PM UTC
Updated: June 27, 2026 at 11:41 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler The UVERBS_HANDLER(MLX5_IB_METHOD_GET_DATA_DIRECT_SYSFS_PATH) function allocates memory for the device path using kobject_get_path(). If the length of the device path exceeds the output buffer length, the function returns -ENOSPC but does not free the allocated memory, resulting in a memory leak. Add a kfree() call to the error path to ensure the allocated memory is properly freed. Compile tested only. Issue found using a prototype static analysis tool and code review.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.12 ≤ v < 6.12.756.12 ≤ v < 6.18.146.12 ≤ v < 6.19.46.12 ≤ v < 7.06.13 ≤ v < 6.18.146.19 ≤ v < 6.19.46.12ec7ad6530909983c8736c80af46e3529ce7bab55
Vendor states this is fixed in 9b9d253908478f504297ac283c514e5953ddafa6 (fixed)
Vendor states this is fixed in b2bc649c18fbe8a7fd38d17266da3dcbfbcc44d2 (fixed)
Vendor states this is fixed in b3a10eca24fcfe913c0875e620f19596001bd6dc (fixed)
Vendor states this is fixed in ee998cdbff6680891b0efd9d6ce53a388e5342c3 (fixed)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.12.75 (unaffected)
Vendor states this is fixed in 6.18.14 (unaffected)
Vendor states this is fixed in 6.19.4 (unaffected)
Vendor states this is fixed in 7.0 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusUNDERGOING ANALYSIS
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card