7.8high
net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 74a778b4a63faef9ff02aad0d332b209835f93e1 before 92cff996624c4757d5bbace3dfa3f1567ba94143, from 74a778b4a63faef9ff02aad0d332b209835f93e1 before 69c676c0ded472713e6d1b3a456b3c4f52f66f0e, from 74a778b4a63faef9ff02aad0d332b209835f93e1 before be482f1d10da781db9445d2753c1e3f1fd82babf, 6.12 Not affected: before 6.12, from 6.12.13 up to 6.12.*, from 6.13.2 up to 6.13.*, from 6.14 up to * | CVE List |
| linux linux_kernel | from 6.12 before 6.12.13, from 6.13 before 6.13.2 | NVD |
What each source says
CVE List
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
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/mlx5: HWS, corrige la macro HWS_SET32 del definidor para desplazamiento negativo Cuando el desplazamiento de bits para la macro HWS_SET32 es negativo, UBSAN se queja del desplazamiento fuera de los límites: UBSAN: desplazamiento fuera de los límites en drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c:177:2 el exponente de desplazamiento -8 es negativo
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21800 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-21800 changed 2026-06-17 | Public domain |