mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 17:15:44 +01:00
d8e2e8347b
Zeroize local MAC variables used for CBC+HMAC cipher suites. In encryption, this is just good hygiene but probably not needed for security since the data protected by the MAC that could leak is about to be transmitted anyway. In DTLS decryption, this could be a security issue since an adversary could learn the MAC of data that they were trying to inject. At least with encrypt-then-MAC, the adversary could then easily inject a datagram with a corrected packet. TLS would still be safe since the receiver would close the connection after the bad MAC. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
6 lines
306 B
Plaintext
6 lines
306 B
Plaintext
Security
|
|
* Zeroize intermediate variables used to calculate the MAC in CBC cipher
|
|
suites. This hardens the library in case stack memory leaks through a
|
|
memory disclosure vulnerabilty, which could formerly have allowed a
|
|
man-in-the-middle to inject fake ciphertext into a DTLS connection.
|