Commit acea48f
[nrf noup] Fix buffer overread with stream cipher
Recreated from commit faf0b86
which provides the following information
"With stream ciphers, add a check that there's enough room to read a MAC
in the record. Without this check, subtracting the MAC length from the
data length resulted in an integer underflow, causing the MAC calculation
to try reading (SIZE_MAX + 1 - maclen) bytes of input, which is a buffer
overread."
This commit is a "noup" since TLS/DTLS is undergoing refactoring and
the content of the commit had to be recreated.
Signed-off-by: Frank Audun Kvamtrø <[email protected]>1 parent 4a204f2 commit acea48f
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1333 | 1341 | | |
1334 | | - | |
| 1342 | + | |
1335 | 1343 | | |
1336 | 1344 | | |
1337 | 1345 | | |
| |||
0 commit comments