Critical Vulnerability in Linux Kernel: Negative Offset Issue in HWS_SET32 Macro

linux Updated 02 Oct 2025

Summary

27/02/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-21800: In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset When bit offset for HWS_SET32 macro is negative, UBSAN complains about the shift-out-of... Affects linux versions < 6.12.13-1. Fixed in 6.12.13-1. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware management and system resources. It is widely used in various distributions, including Debian. The kernel is responsible for managing system resources, enabling hardware communication, and ensuring security. This vulnerability affects the Linux kernel versions in Debian 13 and 14, specifically related to the mlx5 driver, which is used for Mellanox Ethernet devices.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the net/mlx5 driver related to the HWS_SET32 macro. When the bit offset for this macro is negative, it triggers a shift-out-of-bounds error reported by UBSAN (Undefined Behavior Sanitizer). This can lead to unexpected behavior in the kernel, potentially allowing for exploitation or system instability. The issue was found in the file drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c at line 177.

How To Fix

Minimum fixed version

6.12.13-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to apply the patch by updating the package as mentioned above.

Conclusion

The vulnerability identified in the Linux kernel's mlx5 driver poses a significant risk due to its potential to cause system instability. Users are strongly advised to update their systems to the patched version to ensure protection against this issue.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is related to a negative offset in the HWS_SET32 macro within the mlx5 driver, causing a shift-out-of-bounds error.

The vulnerability affects the Linux kernel versions in Debian 13 and 14 prior to the fixed version 6.12.13-1.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

Exploitation of this vulnerability could lead to system instability or unexpected behavior, which may compromise system security.

The most effective way to mitigate the risk is to update to the patched version of the Linux kernel. No specific workarounds are available.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.12.13-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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