Repository navigation
Fix a regression in SSL_export_keying_material - #7755
mattcaswell wants to merge 4 commits into
Conversation
This reverts commit ec0c5f5. SSL_export_keying_material() may use longer label lengths. Fixes openssl#7712
Fix some issues in tls13_hkdf_expand() which impact the above function for TLSv1.3. In particular test that we can use the maximum label length in TLSv1.3.
| unsigned char hkdflabel[sizeof(uint16_t) + sizeof(uint8_t) + | ||
| + sizeof(label_prefix) + TLS13_MAX_LABEL_LEN | ||
| + EVP_MAX_MD_SIZE]; | ||
| static unsigned char hkdflabel[sizeof(uint16_t) + sizeof(uint8_t) + |
There was a problem hiding this comment.
I suppose static here is a no-go as it would make the function non-reentrant. So it either needs to be kept on the stack or allocated.
| unsigned char *out, size_t outlen, int fatal) | ||
| { | ||
| static const unsigned char label_prefix[] = "tls13 "; | ||
| const unsigned char label_prefix[] = "tls13 "; |
There was a problem hiding this comment.
Why not keep the static here? Not that a reasonable compiler shouldn't be able to optimize it out anyway but...
There was a problem hiding this comment.
Errr...I reverted the original commit and reimplemented some bits of it. I meant to retain the static - but it looks like I "missed" and added it to the wrong variable :-)
|
Fixup commit pushed addressing feedback. |
|
Fixup commit pushed addressing travis failure. |
t-j-h
left a comment
There was a problem hiding this comment.
Once CIs are green for this update ...
This reverts commit ec0c5f5. SSL_export_keying_material() may use longer label lengths. Fixes #7712 Reviewed-by: Tim Hudson <[email protected]> (Merged from #7755) (cherry picked from commit ed371b8)
Fix some issues in tls13_hkdf_expand() which impact the above function for TLSv1.3. In particular test that we can use the maximum label length in TLSv1.3. Reviewed-by: Tim Hudson <[email protected]> (Merged from #7755) (cherry picked from commit 0fb2815)
|
CIs are green. Pushed to master and 1.1.1. |
This reverts commit ec0c5f5. SSL_export_keying_material() may use longer label lengths. Fixes #7712 Reviewed-by: Tim Hudson <[email protected]> (Merged from #7755)
Fix some issues in tls13_hkdf_expand() which impact the above function for TLSv1.3. In particular test that we can use the maximum label length in TLSv1.3. Reviewed-by: Tim Hudson <[email protected]> (Merged from #7755)
|
Is it known when this fix will go into an openssl release? It is causing Tor to break on several downstream operating systems. |
|
We normally do releases on an "as needed" basis. This means either if a sufficiently serious security defect triggers it (moderate severity or above). If no security defect triggers a release then we typically do one anyway after 3-4 months from the previous release. |
|
@mattcaswell and for regressions like this? |
|
Well its not a security defect so it doesn't trigger a release itself. It will get rolled up in the next release whenever that ends up being. The last one was a little under 3 months ago, and we typically do one every 3-4 months so I would expect one "soon". |
This reverts cbad0a6 which introduced a regression impacting Tor. This also fixes some issues in tls13_hkdf_expand() which impact the SSL_export_keying_material function for TLSv1.3. We add a test to check that we can use the maximum label length in TLSv1.3.
Fixes #7712