CVE-2025-21800

published 27 Feb 2025 · updated 11 May 2026

net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 69c676c0ded472713e6d1b3a456b3c4f52f66f0e, Kernel 92cff996624c4757d5bbace3dfa3f1567ba94143 and Kernel be482f1d10da781db9445d2753c1e3f1fd82babf.

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-bounds: UBSAN: shift-out-of-bounds in drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c:177:2 shift exponent -8 is negative

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.12, >=74a778b4a63faef9ff02aad0d332b209835f93e1 <69c676c0ded472713e6d1b3a456b3c4f52f66f0e, >=74a778b4a63faef9ff02aad0d332b209835f93e1 <92cff996624c4757d5bbace3dfa3f1567ba94143, >=74a778b4a63faef9ff02aad0d332b209835f93e1 <be482f1d10da781db9445d2753c1e3f1fd82babf69c676c0ded472713e6d1b3a456b3c4f52f66f0e, 92cff996624c4757d5bbace3dfa3f1567ba94143, be482f1d10da781db9445d2753c1e3f1fd82babf

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-21800 severity on Zeptric[![CVE-2025-21800](https://zeptric.io/badge/cve/CVE-2025-21800.svg)](https://zeptric.io/cve/CVE-2025-21800)