Constant Time Memory Comparisons Are Important
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | sunrpc: use constant time memory comparison for macnet/ | +2 | 0 replies | |
| 2/6 | net/ipv6: use constant time memory comparison for macnet/ | +2 | 0 replies | |
| 3/6 | ccree: use constant time memory comparison for macs and tagsdrivers/ | +9 | 3 replies | |
| 4/6 | security/keys: use constant time memory comparison for macssecurity/ | +4 | 1 reply | |
| 5/6 | bluetooth/smp: use constant time memory comparison for secret valuesnet/ | +20 | 1 reply | |
| 6/6 | mac80211/wpa: use constant time memory comparison for MACsnet/ | +5 | 2 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | James Morris |
|---|---|
| 1/6 | |
| 2/6 | |
| 3/6 | |
| 4/6 | R-b |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] Constant Time Memory Comparisons Are Important
Whenever you're comparing two MACs, it's important to do this using crypto_memneq instead of memcmp. With memcmp, you leak timing information, which could then be used to iteratively forge a MAC. This is far too basic of a mistake for us to have so pervasively in the year 2017, so let's begin cleaning this stuff up. The following 6 locations were found with some simple regex greps, but I'm sure more lurk below the surface. If you maintain some code or know somebody who maintains some code that deals with MACs, tell them to double check which comparison function they're using.
Jason A. Donenfeld (6):
sunrpc: use constant time memory comparison for mac net/ipv6: use constant time memory comparison for mac
ccree: use constant time memory comparison for macs and tags security/keys: use constant time memory comparison for macs bluetooth/smp: use constant time memory comparison for secret values mac80211/wpa: use constant time memory comparison for MACs
drivers/staging/ccree/ssi_fips_ll.c | 17 ++++++++------- net/bluetooth/smp.c | 39 ++++++++++++++++++----------------- net/ipv6/seg6_hmac.c | 3 ++- net/mac80211/wpa.c | 9 ++++---- net/sunrpc/auth_gss/gss_krb5_crypto.c | 3 ++- security/keys/trusted.c | 7 ++++--- 6 files changed, 42 insertions(+), 36 deletions(-)
Signature · 1 line
2.13.1