CyberAlerts is shutting down on June 30th, 2025. Thank you for your support!

CVE-2025-21800: net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset

Description

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

Classification

CVE ID: CVE-2025-21800

Affected Products

Vendor: Linux, Linux

Product: Linux, Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.03% (probability of being exploited)

EPSS Percentile: 4.0% (scored less or equal to compared to others)

EPSS Date: 2025-03-28 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-21800
https://git.kernel.org/stable/c/92cff996624c4757d5bbace3dfa3f1567ba94143
https://git.kernel.org/stable/c/69c676c0ded472713e6d1b3a456b3c4f52f66f0e
https://git.kernel.org/stable/c/be482f1d10da781db9445d2753c1e3f1fd82babf

Timeline