Linux
net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 74a778b4a63faef9ff02aad0d332b209835f93e1, < 92cff996624c4757d5bbace3dfa3f1567ba94143
- >= 74a778b4a63faef9ff02aad0d332b209835f93e1, < 69c676c0ded472713e6d1b3a456b3c4f52f66f0e
- >= 74a778b4a63faef9ff02aad0d332b209835f93e1, < be482f1d10da781db9445d2753c1e3f1fd82babf
Fixed in 92cff996624c4757d5bbace3dfa3f1567ba94143, 69c676c0ded472713e6d1b3a456b3c4f52f66f0e, be482f1d10da781db9445d2753c1e3f1fd82babf
- 6.12
Fixed in 0, 6.12.13, 6.13.2, 6.14
Mitigation
Upgrade Linux to 92cff996624c4757d5bbace3dfa3f1567ba94143 or 69c676c0ded472713e6d1b3a456b3c4f52f66f0e or be482f1d10da781db9445d2753c1e3f1fd82babf or later.
Upgrade Linux to 0 or 6.12.13 or 6.13.2 or 6.14 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.