Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to upstream 1.1.1t #430

Merged
merged 462 commits into from
Feb 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
462 commits
Select commit Hold shift + click to select a range
2753b6f
VMS: Fix misspelt type
levitte Sep 8, 2021
9e44ffc
Fix nc_email to check ASN1 strings with NULL byte in the middle
Sep 7, 2021
2f3b120
MacOS prior to 10.12 does not support random API correctly
lprimak Sep 11, 2021
97a1fb5
Clarify what SSL_get_session() does on the server side in TLSv1.3
mattcaswell Sep 11, 2021
5402f96
Correct the documentation for SSL_set_num_tickets()
mattcaswell Sep 11, 2021
5cd84a9
ssl: Correct filename in README
uudiin Sep 26, 2021
b9b45aa
Add sm2 encryption test case from GM/T 0003.5-2012
Sep 6, 2021
c23abef
doc/man3/SSL_set_fd.pod: add note about Windows compiler warning
mspncp Sep 28, 2021
1be120a
Fix a NPD bug in engines/e_dasync.c
bernd-edlinger Sep 30, 2021
2fd9c43
Fix a memory leak in the afalg engine
bernd-edlinger Oct 4, 2021
503eb0e
Fix some possible memory leaks in EVP_CipherInit_ex
bernd-edlinger Oct 6, 2021
14357a5
Fix double-free in e_dasync.c
bernd-edlinger Oct 5, 2021
a653e03
Bindhost/bindport should be freed
beldmit Oct 7, 2021
f5ed4f0
New extensions can be sent in a certificate request
mattcaswell Sep 20, 2021
993ae6d
Extend custom extension testing
mattcaswell Sep 20, 2021
6b0f7a6
Fix test/recipes/01-test_symbol_presence.t to allow for stripped libr…
levitte Oct 13, 2021
bf07844
Fix test/recipes/01-test_symbol_presence.t to disregard version info
levitte Oct 14, 2021
2f8b804
test/ssl_old_test.c: Fix potential leak
PeiweiHu Oct 12, 2021
3ce10cc
Ensure pkey_set_type handles ENGINE references correctly
mattcaswell Oct 15, 2021
69211b0
Add tests for ENGINE problems
mattcaswell Oct 15, 2021
851abe7
Fix some documentation errors related to return values
PeiweiHu Oct 9, 2021
b28d41a
Fix BIO_get_md_ctx return value check
PeiweiHu Oct 9, 2021
0ad7578
Fix the s_server psk_server_cb for use in DTLS
mattcaswell Oct 14, 2021
95fd012
Fix no-cmac
mattcaswell Oct 22, 2021
c03fa13
Fix a gcc 11.2.0 warning
mattcaswell Oct 22, 2021
886e685
speed: range check the argument given to -multi for 1.1.1
paulidale Oct 26, 2021
afbea17
check the return value of BN_new() and BN_dup()
x2018 Nov 1, 2021
bdaf55d
Fix a memory leak in tls_parse_stoc_key_share
bernd-edlinger Nov 3, 2021
80e52bb
Fix a memory leak in ssl_create_cipher_list
bernd-edlinger Nov 3, 2021
45838e5
Fix: invoking x509_name_cannon improperly
PeiweiHu Nov 5, 2021
ce287b7
Reset the rwstate before calling ASYNC_start_job()
mattcaswell Nov 11, 2021
4204cd6
free the Post-Handshake Auth digest when there is an error saving the…
x2018 Oct 27, 2021
c28bcc5
evp: fix EVP_PKEY_get0_EC_KEY when EC_KEY is SM2
zhaozg Nov 12, 2021
9b06ebb
Avoid loading of a dynamic engine twice
bernd-edlinger Nov 19, 2021
79ef187
ERR: Add a missing common reason string
levitte Nov 19, 2021
6d022b0
Add a test case for duplicate engine loading
bernd-edlinger Nov 19, 2021
6052078
DOC: Add a few previously documented functions
levitte Nov 21, 2021
19706a3
Fix detection of ARMv7 and ARM64 CPU features on FreeBSD
allanjude Nov 19, 2021
fd0fd72
Clarify and correct the EVP_CTRL_AEAD_SET_TAG docs
mattcaswell Nov 23, 2021
5f42292
doc: fix macro name
paulidale Nov 24, 2021
791bfd9
BIO_push.pod: fix confusing text and add details on corner cases
DDvO Nov 19, 2021
37dc4f9
Fix speed, use OPENSSL_free instead of free
dongbeiouba Nov 25, 2021
162bd56
TEST: Enable and fix test_bn2padded() in test/bntest.c
levitte Nov 25, 2021
76eb12a
No EtM for GOST ciphers
beldmit Nov 29, 2021
f623a68
Fix ssl_free() and thus BIO_free() to respect BIO_NOCLOSE
DDvO Sep 27, 2021
54c3583
BIO_f_ssl.pod: Make clear where an SSL BIOs are expected as an argument
DDvO Sep 30, 2021
b1553c8
Fix documentation for tlsext_ticket_key
mattcaswell Dec 6, 2021
7a045a4
OBJ_nid2obj.pod: Replace remaining 'B<' by 'I<' were appropriate
DDvO Dec 7, 2021
ca607d6
Fix a deadlock in OBJ_NAME_add
bernd-edlinger Dec 8, 2021
f560b4c
CI: Replace windows-2016 with windows-2022
t8m Dec 6, 2021
8b35838
Fix faulty detail in BN_rand() manual
levitte Nov 25, 2021
e9e7265
Fix a carry overflow bug in bn_sqr_comba4/8 for mips 32-bit targets
bernd-edlinger Dec 11, 2021
4f281f0
Add some CHANGES entries for 1.1.1m
levitte Dec 14, 2021
defe51c
Update copyright year
mattcaswell Dec 14, 2021
b82cf49
Update NEWS for 1.1.1m
levitte Dec 14, 2021
ac3cef2
Prepare for 1.1.1m release
mattcaswell Dec 14, 2021
e9dc49c
Prepare for 1.1.1n-dev
mattcaswell Dec 14, 2021
f2f7cff
Fix the null pointer dereference
KanPlus Dec 17, 2021
8a5dbc1
Fix Configure variable spill
roussosalex Dec 20, 2021
5da141f
document additional stack push error code
baentsch Dec 24, 2021
c680b3f
Ensure s_client sends SNI data when used with -proxy
mattcaswell Dec 9, 2021
e5050aa
Add support for BSD-riscv64 target
pkubaj Dec 18, 2021
4623700
OBJ_obj2txt(): fix off-by-one documentation of the result
DDvO Dec 3, 2021
692520a
Update troublesome copyright years of auto-generated files to 2022
DDvO Jan 3, 2022
dd05385
apps/passwd.c: free before error exiting
PeiweiHu Jan 4, 2022
52d9a1d
close_console: Always unlock as the lock is always held
t8m Dec 28, 2021
f494213
Fix password_callback to handle short passwords
bernd-edlinger Jan 7, 2022
5e7098e
Remove unsafe call to OPENSSL_cpuid_setup
bernd-edlinger Jan 11, 2022
93dd7ab
Fix a leak in EVP_DigestInit_ex()
mattcaswell Dec 10, 2021
4c5c2a5
Add a test for a custom digest created via EVP_MD_meth_new()
mattcaswell Dec 29, 2021
0b13bd0
lhash: Avoid 32 bit right shift of a 32 bit value
t8m Jan 25, 2022
588702d
Ensure X509_STORE_CTX_purpose_inherit handles a 0 default purpose
mattcaswell Dec 30, 2021
aaa5837
Add a test for X509_STORE_CTX_set_purpose()
mattcaswell Dec 30, 2021
7349bf1
Document purpose and trust setting functions
mattcaswell Jan 13, 2022
b728ac9
Fix builds with DJGPP
jmgdjgpp Feb 1, 2022
624f858
Don't link test/ec_internal_test with libapps.a
levitte Feb 4, 2022
191c9e6
Correct return type for BIO_ptr_ctrl
Thomas1664 Jan 20, 2022
8aa3536
scrypt: increase memory usage beyond limit
paulidale Feb 1, 2022
38ac441
Prevent crash with engine using different openssl runtime
bernd-edlinger Nov 22, 2021
0418e99
Check for presence of 3.x openssl runtime
bernd-edlinger Jan 16, 2022
999cce6
crypto/x509/v3_utl.c: Add missing check for OPENSSL_strndup
JiangJias Feb 21, 2022
2d7afbd
Improve documentation of BIO_FLAGS_BASE64_NO_NL flag.
faramir-dev Feb 21, 2022
8845aeb
Fix NULL pointer dereference for BN_mod_exp2_mont
hlandau Mar 1, 2022
30b6e24
VMS: move copy_argc to its own module and make it an aux source
levitte Mar 3, 2019
b6b7e6f
[ssl] Prefer SSL_k(EC)?DHE to the SSL_kE(EC)?DH alias
romen Feb 22, 2022
cabebaf
[ssl] Add SSL_kDHEPSK and SSL_kECDHEPSK as PFS ciphersuites for SECLE…
romen Feb 22, 2022
4bb3476
[ssl] Add tests for Perfect Forward Secrecy criteria on SECLEVEL >= 3
romen Feb 23, 2022
d360208
Document bug in openssl cms -binary
hlandau Mar 4, 2022
c02fff5
Avoid potential memory leak
beldmit Mar 7, 2022
3aeed22
Set protocol in init_client()
tmshort Mar 8, 2022
add8c29
Fix issue where OBJ_nid2obj doesn't always raise an error
hlandau Mar 3, 2022
655e06a
DOC: TLS compression is disabled by default
tmshort Mar 9, 2022
568c44e
Fix OPENSSL_ENGINES in Configurations/descrip.mms.tmpl
levitte Mar 10, 2022
84a9f7e
Make ossltest engine use in test/recipes/20-test_dgst.t platform agno…
levitte Mar 10, 2022
3118eb6
Fix possible infinite loop in BN_mod_sqrt()
t8m Feb 28, 2022
b5fcb7e
Add documentation of BN_mod_sqrt()
t8m Feb 28, 2022
3ef5c30
Add a negative testcase for BN_mod_sqrt
t8m Feb 28, 2022
f22896a
Update CHANGES/NEWS for new release
mattcaswell Mar 14, 2022
0c5bc96
Update copyright year
mattcaswell Mar 15, 2022
d82e959
Prepare for 1.1.1n release
mattcaswell Mar 15, 2022
60f3fa7
Prepare for 1.1.1o-dev
mattcaswell Mar 15, 2022
0a9bb44
Check password length only when verify is enabled.
faramir-dev Mar 16, 2022
d6bf4a2
eng_dyn: Avoid spurious errors when checking for 3.x engine
t8m Mar 16, 2022
0d9f48d
print SSL session, fix build warnings on OpenBSD.
devnexen Mar 16, 2022
2f1c425
Fix coverity 1498607: uninitialised value
paulidale Mar 16, 2022
cd2471c
Fix Coverity 1498611 & 1498608: uninitialised read
paulidale Mar 16, 2022
ad24941
Fix Coverity 1201763 uninitialised pointer read
paulidale Mar 16, 2022
eed53b9
Fix integer overflow in evp_EncryptDecryptUpdate
hlandau Mar 11, 2022
00e5603
Fix Coverity 1498612: integer overflow
paulidale Mar 16, 2022
04a768f
s390x: Hide internal cpuid symbol and function
juergenchrist Mar 23, 2022
79dbd85
ticket_lifetime_hint may exceed 1 week in TLSv1.3
tmshort Mar 23, 2022
739d2bd
Fix: ticket_lifetime_hint may exceed 1 week in TLSv1.3
tmshort Mar 25, 2022
fb67978
tls_process_server_hello: Disallow repeated HRR
t8m Mar 22, 2022
f29ec65
Test processing of a duplicated HRR
t8m Mar 22, 2022
3e8f70c
Fix usage of SSLfatal
mattcaswell Mar 30, 2022
93ac3b8
Fix failure to check result of bn_rshift_fixed_top
hlandau Apr 4, 2022
fdc4646
err: fix crash in ERR_load_strings() when configured with no-err
mspncp Mar 28, 2022
2b66175
err: fix indentation of preprocessor directive
mspncp Mar 28, 2022
c1c7004
err: get rid of err_free_strings_int()
mspncp Mar 29, 2022
a1d3ecd
Fix -no-tls1_2 in tests
tmshort Apr 1, 2022
6e73a0a
Fix a DTLS server hangup due to TLS13_AD_MISSING_EXTENSION
bernd-edlinger Apr 12, 2022
564a8d4
Fix an assertion in the DTLS server code
bernd-edlinger Apr 11, 2022
91db522
x509: use actual issuer name if a CA is used
faramir-dev Apr 18, 2022
25f4bf0
Revert "[github-ci][ci.yml] Disable pyca external tests"
romen Aug 17, 2021
2cf2202
[github-ci] Sync pyca workflow with master
romen Apr 26, 2022
982fad3
add wycheproof submodule
reaperhulk Apr 24, 2021
e5fd172
c_rehash: Do not use shell to invoke openssl
t8m Apr 26, 2022
76eb96b
Add additional keys to release key fingerprints
t8m Apr 22, 2022
58d24ad
Update CHANGES and NEWS for new release
mattcaswell Apr 26, 2022
b5b3755
Update copyright year
mattcaswell May 3, 2022
ca2e078
Prepare for 1.1.1o release
mattcaswell May 3, 2022
988c7b2
Prepare for 1.1.1p-dev
mattcaswell May 3, 2022
ec1b4bf
(1.1) Add SSL_(CTX_)?get0_(verify|chain)_cert_store functions
hlandau Apr 27, 2022
ac2d4cb
1_1_1-stable: Detect arm64-*-*bsd and enable assembly optimizations
allanjude Nov 19, 2021
bd16488
Do not send an empty supported groups extension
t8m Apr 29, 2022
c7d6c08
Add test for empty supported-groups extension
t8m Apr 29, 2022
6ef91d8
Fix leakage when the cacheline is 32-bytes in CBC_MAC_ROTATE_IN_PLACE
basavesh Apr 5, 2022
e04ba88
s_serve: Report an error if init-connection fails without an attempt …
faramir-dev May 10, 2022
03ba56f
Backport some fuzzing data files from master
bernd-edlinger May 19, 2022
17519e2
Backport a missing bug-fix from master
bernd-edlinger May 19, 2022
8e60f41
Fix a crash in asn1_item_embed_new
bernd-edlinger May 20, 2022
8e1ece2
Fix a memory leak in ec_key_simple_oct2priv
bernd-edlinger May 20, 2022
e4b84b7
Fix undefined behaviour in EC_GROUP_new_from_ecparameters
bernd-edlinger May 20, 2022
59b8eca
Fix a memory leak in X509_issuer_and_serial_hash
bernd-edlinger May 21, 2022
4a28f84
Fix a crash in ssl_security_cert_chain
bernd-edlinger May 22, 2022
8754fa5
Fix a memory leak in crl_set_issuers
bernd-edlinger May 21, 2022
73db5d8
Update expired SCT certificates
t8m Jun 1, 2022
b7ce611
ct_test.c: Update the epoch time
t8m Jun 1, 2022
3bd9765
Fix strict client chain check with TLS-1.3
t8m Mar 29, 2022
ab7d056
Update further expiring certificates that affect tests
t8m Jun 2, 2022
8f07881
Fix a crash in X509v3_asid_subset()
mattcaswell Jun 9, 2022
0ed27fb
Always end BN_mod_exp_mont_consttime with normal Montgomery reduction.
t8m Jun 9, 2022
8438d3a
Add an extra reduction step to RSAZ mod_exp implementations
t8m Jun 9, 2022
20af01d
Fix documentation of BIO_FLAGS_BASE64_NO_NL
frasertweedale Jun 15, 2022
9639817
Fix file operations in c_rehash.
faramir-dev May 29, 2022
51e0652
Update CHANGES and NEWS for new release
mattcaswell Jun 20, 2022
a3fc812
Update copyright year
mattcaswell Jun 21, 2022
8aaca20
Prepare for 1.1.1p release
mattcaswell Jun 21, 2022
7f77ecd
Prepare for 1.1.1q-dev
mattcaswell Jun 21, 2022
6c8879c
Fix a memory leak in EC_GROUP_new_from_ecparameters
bernd-edlinger Jun 22, 2022
8825732
SSL_get_current_cipher() and SSL_get_pending_cipher() return 'const S…
olszomal Jun 17, 2022
4c1cf6d
Fix compile issues in test/v3ext.c with no-rfc3779
bernd-edlinger Jun 17, 2022
a1d80ed
Fix range_should_be_prefix() to actually return the correct result
mattcaswell Jun 10, 2022
7a05fcb
v3_sxnet: add a check for the return of i2s_ASN1_INTEGER()
x2018 Jun 20, 2022
6495cab
Fix bn_gcd code to check return value when calling BN_one()
slontis Jul 1, 2022
9199256
Fix AES OCB encrypt/decrypt for x86 AES-NI
achernya Jun 16, 2022
9131afd
AES OCB test vectors
achernya Jun 16, 2022
78ba51a
Update CHANGES and NEWS for upcoming release 1.1.1q
levitte Jul 5, 2022
95a17c0
Update copyright year
levitte Jul 5, 2022
29708a5
Prepare for 1.1.1q release
levitte Jul 5, 2022
299e101
Prepare for 1.1.1r-dev
levitte Jul 5, 2022
60f011f
Add missing header for memcmp
gjasny Jul 5, 2022
a8f6d73
Fix reported performance degradation on aarch64
bernd-edlinger Jun 12, 2022
241f3a7
Fixes OSCP->OCSP typo in ocsp command line
cipherboy Jun 29, 2022
a937806
Fix a memory leak in tls13_generate_secret
bernd-edlinger Jul 5, 2022
17098c1
Make the DRBG seed propagation thread safe
bernd-edlinger Oct 23, 2021
ccc7ccb
use #pragma comment(lib) with _MSC_VER only
vszakats Jul 3, 2022
c3efe5c
Fix memory leak in X509V3_add1_i2d when flag is X509V3_ADD_DELETE
allanchang96 Jul 7, 2022
d94f8aa
ci: add GitHub token permissions for workflows
varunsh-coder Jul 9, 2022
55eafed
APPS/x509: With -CA but both -CAserial and -CAcreateserial not given,…
DDvO May 30, 2022
ff23817
x509.pod: fix description of certificate serial number storage
DDvO May 31, 2022
86945b1
Fix verify_callback in the openssl s_client/s_server app
beldmit Jul 14, 2022
ee4562d
X509_STORE_CTX_purpose_inherit(): add missing details to its document…
DDvO Jul 20, 2022
5ba7a33
Add loongarch64 target
shipujin Jul 20, 2022
952fab0
Fix re-signing certificates with different key sizes
tmshort Jul 20, 2022
65e30e7
Fix ipv4_from_asc behavior on invalid Ip addresses
amiremohamadi Aug 4, 2021
bd41b84
Test case for a2i_IPADDRESS
tiran Aug 15, 2020
c3b0279
Fix test case for a2i_IPADDRESS
amiremohamadi Aug 4, 2021
264a3f4
Fix a crash in v2i_IPAddrBlocks()
mattcaswell Jun 10, 2022
e544f3e
Fix error in LHASH documentation
paulidale Jul 25, 2022
3b9082c
Fixes segfault occurrence in PEM_write()
valdaarhun Jul 25, 2022
7dfe4aa
Note that EVP_CIPHER_iv_length returns negative values on error
paulidale Jul 28, 2022
26cfeb7
Fix copyright year issues
bernd-edlinger Jan 5, 2022
0b755cd
X509_REQ_get_extensions(): Return empty stack if no extensions found
DDvO Jan 8, 2021
143d7d4
Fix EC_KEY_set_private_key() priv_key regression
robertohueso Jul 26, 2022
1c2f52b
Add test for EC_KEY_set_private_key()
robertohueso Aug 1, 2022
4648839
Fix EC_KEY_set_private_key() NULL priv_key docs
robertohueso Aug 1, 2022
01fc812
Fix SSL_pending() and SSL_has_pending() with DTLS
mattcaswell Jul 25, 2022
d87e99d
Test that swapping the first app data record with Finished msg works
mattcaswell Jul 25, 2022
6246649
bn_nist: fix strict aliasing problem
paulidale May 6, 2022
552603e
Coverity 1508534 & 1508540: misuses of time_t
paulidale Aug 16, 2022
07ecb79
Coverity 1508506: misuse of time_t
paulidale Aug 16, 2022
9eae491
Moving notify check after the no time check
doorsdown Aug 16, 2022
6e6aad3
Convert serverinfo in SSL_CTX_use_serverinfo() to v2.
faramir-dev Aug 28, 2022
002cf9a
X509 x509_req.c: Set 'modified' flag when X509_req_info_st member dat…
gibeom-gwon Aug 27, 2022
748df18
X509 x_all.c: Set 'modified' flag when ASN1_item_sign{,_ctx} call was…
gibeom-gwon Aug 27, 2022
01b5335
Configurations: mips64*-linux-*abin32 needs bn_ops SIXTY_FOUR_BIT
Oct 1, 2022
3d28f74
Updated CHANGES and NEWS for new release
mattcaswell Oct 10, 2022
0874d7f
Update copyright year
mattcaswell Oct 11, 2022
fbda8a9
Prepare for 1.1.1r release
mattcaswell Oct 11, 2022
0ca7eae
Prepare for 1.1.1s-dev
mattcaswell Oct 11, 2022
a3c229e
Fix no longer implicitly refresh the cached TBSCertificate
gibeom-gwon Oct 11, 2022
ad714ba
Fix many inconsistencies in doc of CMS_verify() and PKC7_verify() etc.
DDvO Jul 29, 2022
c7a02ba
doc: fix copy/paste error
paulidale Oct 20, 2022
9b3219b
ssl_cipher_process_rulestr: don't read outside rule_str buffer
millert Oct 24, 2022
aa542d2
Make openVMS seeding less dependent of OpenVMS version
levitte Jul 6, 2022
7e8642c
Update CHANGES and NEWS for new release
t8m Nov 1, 2022
7d8a20c
Update copyright year
t8m Nov 1, 2022
1290581
Prepare for 1.1.1s release
t8m Nov 1, 2022
8a9a71b
Prepare for 1.1.1t-dev
t8m Nov 1, 2022
2c0ae1e
Update GitHub actions as suggested by dependabot
t8m Nov 2, 2022
cf1a7cf
Update the validity period of ed25519 cerificates
bernd-edlinger Nov 10, 2022
f868abc
Resign test/certs/rootCA.pem to expire in 100 years
bernd-edlinger Nov 10, 2022
31efcf2
Fix the ceiling on how much encryption growth we can have
mattcaswell Oct 27, 2022
68cec7e
Fix a memory leak in rsa_priv_encode
bernd-edlinger Nov 16, 2022
ed8af05
Fix a logic flaw in test_mod_exp_zero
bernd-edlinger Dec 16, 2022
6446cb4
Fix BIO_f_cipher() flushing
mattcaswell Dec 6, 2022
1354191
Fix SMIME_crlf_copy() to properly report an error
mattcaswell Dec 6, 2022
e913b91
Fix BIO_f_asn1() to properly report some errors
mattcaswell Dec 6, 2022
1d0fa26
Ensure ossl_cms_EncryptedContent_init_bio() reports an error on no OID
mattcaswell Dec 6, 2022
5bbd921
Limit size of modulus for bn_mul_mont and BN_mod_exp_mont_consttime
bernd-edlinger Nov 8, 2022
d49c98d
Fix various clang-14/15 compiler warnings
bernd-edlinger Dec 4, 2022
d90907d
Fix CI failures with ubuntu-22.04
bernd-edlinger Dec 5, 2022
2bcf8e6
Padlock: fix byte swapping assembly for AES-192 and 256
ValdikSS Jan 18, 2023
b958ecf
Add a test for large app data
mattcaswell Jan 19, 2023
4b5ec7c
Ensure our buffer allocation allows for the Explicit IV
mattcaswell Jan 19, 2023
adc3cfe
Add DTLS support to the large app data test
mattcaswell Jan 20, 2023
44da716
Fix corruption when searching for CRLs in hashed directories (1.1)
hlandau Jan 18, 2023
b9e3749
crypto/bio: drop float formating for UEFI
kraxel Jan 12, 2022
1dc2ae4
Use $config{build_file} instead of $target{build_file}
levitte Jan 30, 2023
43d8f88
Fix Timing Oracle in RSA decryption
mattcaswell Jan 20, 2023
bbcf509
Avoid dangling ptrs in header and data params for PEM_read_bio_ex
mattcaswell Dec 13, 2022
2bd6112
Add a test for CVE-2022-4450
mattcaswell Dec 13, 2022
c3829dd
Fix a UAF resulting from a bug in BIO_new_NDEF
mattcaswell Dec 14, 2022
f040f25
Check CMS failure during BIO setup with -stream is handled correctly
mattcaswell Dec 14, 2022
2c6c9d4
CVE-2023-0286: Fix GENERAL_NAME_cmp for x400Address (1.1.1)
hlandau Jan 17, 2023
a85fbb5
Add CHANGES and NEWS entries for the 1.1.1t release
t8m Jan 23, 2023
c3a54c3
Update copyright year
levitte Feb 7, 2023
830bf8e
Prepare for 1.1.1t release
levitte Feb 7, 2023
abc3b6a
Upstream 1.1.1t merge
baentsch Feb 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
check_update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: config
Expand All @@ -35,7 +35,7 @@ jobs:
check_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --strict-warnings && perl configdata.pm --dump
- name: make build_generated
Expand All @@ -49,7 +49,7 @@ jobs:
check-ansi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CPPFLAGS=-ansi ./config no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
- name: make
Expand All @@ -58,7 +58,7 @@ jobs:
basic_gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=gcc ./config --strict-warnings && perl configdata.pm --dump
- name: make
Expand All @@ -69,7 +69,7 @@ jobs:
basic_clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=clang ./config --strict-warnings && perl configdata.pm --dump
- name: make
Expand All @@ -80,7 +80,7 @@ jobs:
minimal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --strict-warnings no-shared no-dso no-pic no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-comp no-ct no-des no-dgram no-dh no-dsa no-dtls no-ec2m no-engine no-filenames no-gost no-idea no-mdc2 no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-sm2 no-sm3 no-sm4 no-srp no-srtp no-ssl3 no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT && perl configdata.pm --dump
- name: make
Expand All @@ -91,7 +91,7 @@ jobs:
no-deprecated:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --strict-warnings no-deprecated && perl configdata.pm --dump
- name: make
Expand All @@ -105,7 +105,7 @@ jobs:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --strict-warnings no-shared && perl configdata.pm --dump
- name: make
Expand All @@ -116,7 +116,7 @@ jobs:
address_ub_sanitizer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --debug enable-asan enable-ubsan enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION && perl configdata.pm --dump
- name: make
Expand All @@ -130,7 +130,7 @@ jobs:
# memory_sanitizer:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/checkout@v3
# - name: config
# # --debug -O1 is to produce a debug build that runs in a reasonable amount of time
# run: CC=clang ./config --debug -O1 -fsanitize=memory -DOSSL_SANITIZE_MEMORY -fno-optimize-sibling-calls enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 && perl configdata.pm --dump
Expand All @@ -142,7 +142,7 @@ jobs:
threads_sanitizer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=clang ./config --strict-warnings -fsanitize=thread && perl configdata.pm --dump
- name: make
Expand All @@ -153,7 +153,7 @@ jobs:
enable_non-default_options:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config --strict-warnings no-ec enable-ssl-trace enable-zlib enable-zlib-dynamic enable-crypto-mdebug enable-crypto-mdebug-backtrace enable-egd && perl configdata.pm --dump
- name: make
Expand All @@ -164,7 +164,7 @@ jobs:
legacy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 && perl configdata.pm --dump
- name: make
Expand All @@ -175,7 +175,7 @@ jobs:
buildtest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: ./config no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE && perl configdata.pm --dump
- name: make
Expand All @@ -186,7 +186,7 @@ jobs:
out-of-tree_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: setup build dir
run: |
set -eux
Expand All @@ -210,7 +210,7 @@ jobs:
os: [ubuntu-latest, macos-latest ]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: extra preparations
run: |
mkdir ./build
Expand All @@ -231,7 +231,7 @@ jobs:
external-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: package installs
Expand Down Expand Up @@ -263,15 +263,15 @@ jobs:
PYTHON:
- 3.9
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure OpenSSL
run: ./config --strict-warnings --debug enable-external-tests && perl configdata.pm --dump
- name: make
run: make -s -j4
- name: Setup Python
uses: actions/setup-python@v2.2.2
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.PYTHON }}
- uses: actions-rs/toolchain@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cross-compiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ jobs:
tests: none
}
]
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: install packages
run: |
sudo apt-get update
sudo apt-get -yq --force-yes install \
gcc-${{ matrix.platform.arch }} \
${{ matrix.platform.libs }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: config
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-checker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=clang ./config --strict-warnings ${{ matrix.opt }}
- name: config dump
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-checker-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=clang ./config --strict-warnings ${{ matrix.opt }}
- name: config dump
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-checker-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: config
run: CC=clang ./config --strict-warnings ${{ matrix.opt }}
- name: config dump
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
config: VC-WIN32 --strict-warnings
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.platform.arch }}
Expand Down Expand Up @@ -57,7 +57,11 @@ jobs:
- windows-2022
runs-on: ${{matrix.os}}
steps:
<<<<<<< HEAD
- uses: actions/checkout@v2
=======
- uses: actions/checkout@v3
>>>>>>> OpenSSL_1_1_1t
- uses: ilammy/msvc-dev-cmd@v1
- uses: shogo82148/actions-setup-perl@v1
- name: prepare the build directory
Expand All @@ -81,7 +85,11 @@ jobs:
- windows-2022
runs-on: ${{matrix.os}}
steps:
<<<<<<< HEAD
- uses: actions/checkout@v2
=======
- uses: actions/checkout@v3
>>>>>>> OpenSSL_1_1_1t
- uses: ilammy/msvc-dev-cmd@v1
- uses: shogo82148/actions-setup-perl@v1
- name: prepare the build directory
Expand Down
76 changes: 75 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,85 @@
https://github.com/openssl/openssl/commits/ and pick the appropriate
release branch.

Changes between 1.1.1s and 1.1.1t [7 Feb 2023]

*) Fixed X.400 address type confusion in X.509 GeneralName.

There is a type confusion vulnerability relating to X.400 address processing
inside an X.509 GeneralName. X.400 addresses were parsed as an ASN1_STRING
but subsequently interpreted by GENERAL_NAME_cmp as an ASN1_TYPE. This
vulnerability may allow an attacker who can provide a certificate chain and
CRL (neither of which need have a valid signature) to pass arbitrary
pointers to a memcmp call, creating a possible read primitive, subject to
some constraints. Refer to the advisory for more information. Thanks to
David Benjamin for discovering this issue. (CVE-2023-0286)

This issue has been fixed by changing the public header file definition of
GENERAL_NAME so that x400Address reflects the implementation. It was not
possible for any existing application to successfully use the existing
definition; however, if any application references the x400Address field
(e.g. in dead code), note that the type of this field has changed. There is
no ABI change.
[Hugo Landau]

*) Fixed Use-after-free following BIO_new_NDEF.

The public API function BIO_new_NDEF is a helper function used for
streaming ASN.1 data via a BIO. It is primarily used internally to OpenSSL
to support the SMIME, CMS and PKCS7 streaming capabilities, but may also
be called directly by end user applications.

The function receives a BIO from the caller, prepends a new BIO_f_asn1
filter BIO onto the front of it to form a BIO chain, and then returns
the new head of the BIO chain to the caller. Under certain conditions,
for example if a CMS recipient public key is invalid, the new filter BIO
is freed and the function returns a NULL result indicating a failure.
However, in this case, the BIO chain is not properly cleaned up and the
BIO passed by the caller still retains internal pointers to the previously
freed filter BIO. If the caller then goes on to call BIO_pop() on the BIO
then a use-after-free will occur. This will most likely result in a crash.
(CVE-2023-0215)
[Viktor Dukhovni, Matt Caswell]

*) Fixed Double free after calling PEM_read_bio_ex.

The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and
decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload
data. If the function succeeds then the "name_out", "header" and "data"
arguments are populated with pointers to buffers containing the relevant
decoded data. The caller is responsible for freeing those buffers. It is
possible to construct a PEM file that results in 0 bytes of payload data.
In this case PEM_read_bio_ex() will return a failure code but will populate
the header argument with a pointer to a buffer that has already been freed.
If the caller also frees this buffer then a double free will occur. This
will most likely lead to a crash.

The functions PEM_read_bio() and PEM_read() are simple wrappers around
PEM_read_bio_ex() and therefore these functions are also directly affected.

These functions are also called indirectly by a number of other OpenSSL
functions including PEM_X509_INFO_read_bio_ex() and
SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL
internal uses of these functions are not vulnerable because the caller does
not free the header argument if PEM_read_bio_ex() returns a failure code.
(CVE-2022-4450)
[Kurt Roeckx, Matt Caswell]

*) Fixed Timing Oracle in RSA Decryption.

A timing based side channel exists in the OpenSSL RSA Decryption
implementation which could be sufficient to recover a plaintext across
a network in a Bleichenbacher style attack. To achieve a successful
decryption an attacker would have to be able to send a very large number
of trial messages for decryption. The vulnerability affects all RSA padding
modes: PKCS#1 v1.5, RSA-OEAP and RSASVE.
(CVE-2022-4304)
[Dmitry Belyavsky, Hubert Kario]

Changes between 1.1.1r and 1.1.1s [1 Nov 2022]

*) Fixed a regression introduced in 1.1.1r version not refreshing the
certificate data to be signed before signing the certificate.

[Gibeom Gwon]

Changes between 1.1.1q and 1.1.1r [11 Oct 2022]
Expand Down
18 changes: 9 additions & 9 deletions Configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env perl
# -*- mode: perl; -*-
# Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
# Copyright 2016-2023 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
Expand Down Expand Up @@ -1215,7 +1215,7 @@ $target{build_scheme} = [ $target{build_scheme} ]
my ($builder, $builder_platform, @builder_opts) =
@{$target{build_scheme}};

foreach my $checker (($builder_platform."-".$target{build_file}."-checker.pm",
foreach my $checker (($builder_platform."-".$config{build_file}."-checker.pm",
$builder_platform."-checker.pm")) {
my $checker_path = catfile($srcdir, "Configurations", $checker);
if (-f $checker_path) {
Expand Down Expand Up @@ -1712,8 +1712,8 @@ if ($builder eq "unified") {
# Store the name of the template file we will build the build file from
# in %config. This may be useful for the build file itself.
my @build_file_template_names =
( $builder_platform."-".$target{build_file}.".tmpl",
$target{build_file}.".tmpl" );
( $builder_platform."-".$config{build_file}.".tmpl",
$config{build_file}.".tmpl" );
my @build_file_templates = ();

# First, look in the user provided directory, if given
Expand Down Expand Up @@ -1937,8 +1937,8 @@ if ($builder eq "unified") {
}
next if @skip && $skip[$#skip] <= 0;
push @rawlines, $_
if ($target_kind eq $target{build_file}
|| $target_kind eq $target{build_file}."(".$builder_platform.")");
if ($target_kind eq $config{build_file}
|| $target_kind eq $config{build_file}."(".$builder_platform.")");
}
},
qr/^\s*(?:#.*)?$/ => sub { },
Expand Down Expand Up @@ -2813,8 +2813,8 @@ if ($builder_platform eq 'unix') {

my %builders = (
unified => sub {
print 'Creating ',$target{build_file},"\n";
run_dofile(catfile($blddir, $target{build_file}),
print 'Creating ',$config{build_file},"\n";
run_dofile(catfile($blddir, $config{build_file}),
@{$config{build_file_templates}});
},
);
Expand Down Expand Up @@ -2868,7 +2868,7 @@ exit(0);
#
sub death_handler {
die @_ if $^S; # To prevent the added message in eval blocks
my $build_file = $target{build_file} // "build file";
my $build_file = $config{build_file} // "build file";
my @message = ( <<"_____", @_ );

Failure! $build_file wasn't produced.
Expand Down
Loading