net/mlx5e: TC, Hold sample_attr on stack instead of pointer

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback