{"schema_version":"1.9.0","id":"CVE-2025-21800","published":"2025-02-27T20:00:54.884Z","modified":"2026-08-12T03:51:20.992114997Z","related":["SUSE-SU-2025:01951-1","SUSE-SU-2025:01967-1"],"summary":"net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset\n\nWhen bit offset for HWS_SET32 macro is negative,\nUBSAN complains about the shift-out-of-bounds:\n\n  UBSAN: shift-out-of-bounds in\n  drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c:177:2\n  shift exponent -8 is negative","affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"74a778b4a63faef9ff02aad0d332b209835f93e1"},{"fixed":"92cff996624c4757d5bbace3dfa3f1567ba94143"},{"fixed":"69c676c0ded472713e6d1b3a456b3c4f52f66f0e"},{"fixed":"be482f1d10da781db9445d2753c1e3f1fd82babf"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21800.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.0"},{"fixed":"6.12.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.13.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21800.json"}}],"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/69c676c0ded472713e6d1b3a456b3c4f52f66f0e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92cff996624c4757d5bbace3dfa3f1567ba94143"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be482f1d10da781db9445d2753c1e3f1fd82babf"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21800.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21800"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21800.json"}}