Bug 2395775 (CVE-2025-39834) - CVE-2025-39834 kernel: net/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow
Summary: CVE-2025-39834 kernel: net/mlx5: HWS, Fix memory leak in hws_action_get_share...
Keywords:
Status: NEW
Alias: CVE-2025-39834
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-16 14:01 UTC by OSIDB Bzimport
Modified: 2025-09-22 13:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-16 14:01:36 UTC
In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: HWS, Fix memory leak in hws_action_get_shared_stc_nic error flow

When an invalid stc_type is provided, the function allocates memory for
shared_stc but jumps to unlock_and_out without freeing it, causing a
memory leak.

Fix by jumping to free_shared_stc label instead to ensure proper cleanup.


Note You need to log in before you can comment on or make changes to this bug.