{"id":"CVE-2025-21800","aliases":["CVE-2025-21800"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"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","source":"nvd"}],"published":"2025-02-27T20:00:54.884Z","modified":"2026-06-17T08:44:18.730Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"74a778b4a63faef9ff02aad0d332b209835f93e1","fixed":"92cff996624c4757d5bbace3dfa3f1567ba94143","status":"affected"},{"type":"git","introduced":"74a778b4a63faef9ff02aad0d332b209835f93e1","fixed":"69c676c0ded472713e6d1b3a456b3c4f52f66f0e","status":"affected"},{"type":"git","introduced":"74a778b4a63faef9ff02aad0d332b209835f93e1","fixed":"be482f1d10da781db9445d2753c1e3f1fd82babf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.13","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.2","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12","fixed":"6.12.13"},{"status":"affected","introduced":"6.13","fixed":"6.13.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/92cff996624c4757d5bbace3dfa3f1567ba94143","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69c676c0ded472713e6d1b3a456b3c4f52f66f0e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be482f1d10da781db9445d2753c1e3f1fd82babf","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21800","url":"https://www.cve.org/CVERecord?id=CVE-2025-21800","licence":"CVE Terms of Use","modified":"2026-05-11T21:06:44.750Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21800","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21800","licence":"Public domain","modified":"2026-06-17T08:44:18.730Z"}],"updatedAt":"2026-11-25T22:58:54.603Z","epss":{"score":0.00214,"percentile":0.12556,"date":"2026-12-01T12:00:22.000Z"}}