net/mlx5e: TC, Hold sample_attr on stack instead of pointer
Summary
GSD-2022-1001079: net/mlx5e: TC, Hold sample_attr on stack instead of pointer. Affects Kernel versions < cdd08fa7be90e7340cff631326188d5fcc9b6594. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The net/mlx5e package is a component of the Linux Kernel ecosystem. It is responsible for handling network traffic for Mellanox ConnectX-4 and ConnectX-5 Ethernet adapters. The package utilizes the Traffic Control (TC) subsystem to manage network traffic and implement various features such as Quality of Service (QoS) and traffic shaping. However, a vulnerability has been identified in the package that could potentially lead to security issues.
Vulnerability Detail
The vulnerability in net/mlx5e involves the handling of sample_attr, which is a data structure used for sampling network packets. The package currently holds a pointer to sample_attr, which can be manipulated by an attacker to cause memory corruption or execute arbitrary code. This vulnerability could be exploited to gain unauthorized access, escalate privileges, or launch denial-of-service attacks. The vulnerability has been fixed in Linux Kernel version v5.17.3 by commit cdd08fa7be90e7340cff631326188d5fcc9b6594.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Conclusion
The net/mlx5e package in the Linux Kernel is vulnerable to a security issue related to the handling of sample_attr. This vulnerability has been addressed in Linux Kernel version v5.17.3 by commit cdd08fa7be90e7340cff631326188d5fcc9b6594. It is crucial to update the Linux Kernel to the fixed version to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
net/mlx5e is a package in the Linux Kernel ecosystem that handles network traffic for Mellanox ConnectX-4 and ConnectX-5 Ethernet adapters.
This vulnerability could allow an attacker to manipulate the sample_attr data structure, leading to memory corruption or arbitrary code execution. This could result in unauthorized access, privilege escalation, or denial-of-service attacks.
Yes, the vulnerability has been fixed in Linux Kernel version v5.17.3 by commit cdd08fa7be90e7340cff631326188d5fcc9b6594.
To update the Linux Kernel, follow the official update process provided by your Linux distribution. Make sure to include the commit cdd08fa7be90e7340cff631326188d5fcc9b6594 in the update.
No specific workaround has been provided. It is recommended to update the Linux Kernel to the fixed version.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.