In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: HWS, Fix memory leak in hwsactiongetsharedstc_nic error flow
When an invalid stctype is provided, the function allocates memory for sharedstc but jumps to unlockandout without freeing it, causing a memory leak.
Fix by jumping to freesharedstc label instead to ensure proper cleanup.