<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/x509, branch libressl-v3.2.5</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.2.5</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.2.5'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2021-02-03T07:06:14+00:00</updated>
<entry>
<title>This is errata/6.8/013_libressl.patch.sig</title>
<updated>2021-02-03T07:06:14+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2021-02-03T07:06:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5eca2774fbb65f0eac0df1f87aaa91c139b0f724'/>
<id>urn:sha1:5eca2774fbb65f0eac0df1f87aaa91c139b0f724</id>
<content type='text'>
Various interoperability issues and memory leaks were discovered in
libcrypto and libssl.

The new verifier is not bug compatible with the old verifier and caused
many issues by failing to propagate errors correctly, returning different
error codes than some software was trained to expect and otherwise failing
when it shouldn't. While much of this is fixed in -current, it's still not
perfect, so switching back to the legacy verifier is preferable at this
point.

Other included fixes:

* Unbreak DTLS retransmissions for flights that include a CCS
* Only check BIO_should_read() on read and BIO_should_write() on write
* Implement autochain for the TLSv1.3 server
* Use the legacy verifier for AUTO_CHAIN
* Implement exporter for TLSv1.3
* Free alert_data and phh_data in tls13_record_layer_free()
* Plug leak in x509_verify_chain_dup()
* Free the policy tree in x509_vfy_check_policy()

Original commits by jsing and tb

ok inoguchi jsing
</content>
</entry>
<entry>
<title>Fix a NULL dereference in GENERAL_NAME_cmp()</title>
<updated>2020-12-08T15:08:47+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-12-08T15:08:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=267ac14fa6781b6553b05a6d8dcdf99eaacc0edf'/>
<id>urn:sha1:267ac14fa6781b6553b05a6d8dcdf99eaacc0edf</id>
<content type='text'>
Comparing two GENERAL_NAME structures containing an EDIPARTYNAME can lead
to a crash. This enables a denial of service attack for an attacker who can
control both sides of the comparison.

Issue reported to OpenSSL on Nov 9 by David Benjamin.
OpenSSL shared the information with us on Dec 1st.
Fix from Matt Caswell (OpenSSL) with a few small tweaks.

ok jsing

this is errata/6.8/008_asn1.patch.sig
</content>
</entry>
<entry>
<title>Ensure leaf is set up on X509_STORE_CTX before verification.</title>
<updated>2020-09-26T15:44:06+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-09-26T15:44:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4e8347390553060ef9ddb7e486d3c945d2af54ab'/>
<id>urn:sha1:4e8347390553060ef9ddb7e486d3c945d2af54ab</id>
<content type='text'>
Previously the leaf certificate was only being set up on the X509_STORE_CTX
after two verification steps were performed, however at least one of those
steps could result in the verification callback being triggered and
existing code breaking.

Issue noticed by Raf Czlonka when attempting to connect to talk.google.com
using profanity (which does not set SNI and ends up receiving an invalid
certificate).

ok beck@ deraadt@ tb@
</content>
</entry>
<entry>
<title>jumping into the x509 fray with a bunch of whitespace repair</title>
<updated>2020-09-26T02:06:28+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2020-09-26T02:06:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3e6655fb0b20e8ae2d4546bab15df8fe320eec75'/>
<id>urn:sha1:3e6655fb0b20e8ae2d4546bab15df8fe320eec75</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Ensure chain is set on the X509_STORE_CTX before triggering callback.</title>
<updated>2020-09-23T18:20:16+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2020-09-23T18:20:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=75f522291d5ee57ddc9fa504c8c61e280dacfbaf'/>
<id>urn:sha1:75f522291d5ee57ddc9fa504c8c61e280dacfbaf</id>
<content type='text'>
Various software expects the previous behaviour where the certificate chain
is available on the X509_STORE_CTX when the verify callback is triggered.

Issue hit by bket@ with lastpass-cli which has built in certificate
pinning that is checked via the verify callback.

Fix confirmed by bket@.

ok beck@
</content>
</entry>
<entry>
<title>Fix some line wrapping and other whitespace issues.</title>
<updated>2020-09-21T05:41:43+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-09-21T05:41:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6ee00092aca7120fdc6c535595cc4d55cda3e05d'/>
<id>urn:sha1:6ee00092aca7120fdc6c535595cc4d55cda3e05d</id>
<content type='text'>
No change in the generated assembly on amd64.
</content>
</entry>
<entry>
<title>Move freeing and zeroing up to right after the while loop.</title>
<updated>2020-09-21T05:20:20+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-09-21T05:20:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e61b320e8d19af9d30c2c97c456cf47cf857c241'/>
<id>urn:sha1:e61b320e8d19af9d30c2c97c456cf47cf857c241</id>
<content type='text'>
Requested by jsing
</content>
</entry>
<entry>
<title>Avoid memleak caused by shadowing</title>
<updated>2020-09-20T19:13:06+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-09-20T19:13:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=997a143ecd162f797e525fdea4a0e42c1c73c939'/>
<id>urn:sha1:997a143ecd162f797e525fdea4a0e42c1c73c939</id>
<content type='text'>
The outer scope in x509_constraints_extract_names() contains a vname
variable which will be freed on error, but an inner scope contains
another vname that won't be freed, e.g., if x509_constraints_names_add
fails.

Found by llvm scan-build.

ok beck
</content>
</entry>
<entry>
<title>KNF/whitespace nits</title>
<updated>2020-09-20T18:32:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2020-09-20T18:32:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d1b6fcd5204171614ffca34c18b320cbdd1650b1'/>
<id>urn:sha1:d1b6fcd5204171614ffca34c18b320cbdd1650b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Correct a 1 byte read overflow in x509_contraints_uri and add</title>
<updated>2020-09-20T18:22:31+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2020-09-20T18:22:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=407345d49b1ca886ab4bc7e429c61fb07a7eb964'/>
<id>urn:sha1:407345d49b1ca886ab4bc7e429c61fb07a7eb964</id>
<content type='text'>
regress to catch it in the future.

found by Guido Vranken's cryptofuzzer

ok tb@
</content>
</entry>
</feed>
