Lucene search

K
rustsecRustsecRUSTSEC-2021-0100
HistorySep 08, 2021 - 12:00 p.m.

Miscomputed results when using AVX2 backend

2021-09-0812:00:00
rustsec.org
7
avx2 backend
sha2 crate
v0.9.7
v0.9.8
miscomputed results
upgrade
recompute
security vulnerability

EPSS

0.002

Percentile

62.1%

The v0.9.7 release of the sha2 crate introduced a new AVX2-accelerated
backend which was automatically enabled for all x86/x86_64 CPUs where AVX2
support was autodetected at runtime.

This backend was buggy and would miscompute results for long messages
(i.e. messages spanning multiple SHA blocks).

The crate has since been yanked, but any users who upgraded to v0.9.7 should
immediately upgrade to v0.9.8 and recompute any hashes which were previously
computed by v0.9.7.

EPSS

0.002

Percentile

62.1%