openssl/crypto/bio
Petr Gotthard 11efa7d45b BIO_new_from_core_bio: Fix heap-use-after-free after attach
The providers have to call up_ref to keep the cbio pointer, just like
the internal bio_prov.c does.

OSSL_STORE_attach passes a cbio pointer to the provider and then calls
ossl_core_bio_free(cbio). If up_ref is not called, the cbio gets
freed way too early.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15163)
2021-06-25 10:11:29 +10:00
..
bf_buff.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bf_lbuf.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bf_nbio.c Update copyright year 2021-06-17 13:24:59 +01:00
bf_null.c Update copyright year 2021-06-17 13:24:59 +01:00
bf_prefix.c Update copyright year 2021-06-17 13:24:59 +01:00
bf_readbuff.c Fix DER reading from stdin for BIO_f_readbuffer 2021-03-22 09:07:36 +10:00
bio_addr.c BIO: Make source file names in crypto/bio/ consistent 2021-06-15 14:23:29 +02:00
bio_cb.c Update copyright year 2021-06-17 13:24:59 +01:00
bio_dump.c Update copyright year 2021-06-17 13:24:59 +01:00
bio_err.c err: rename err_load_xxx_strings_int functions 2021-05-26 13:01:47 +10:00
bio_lib.c BIO_write_ex(): Make handing of BIO b == NULL and dlen == 0 less redundant 2021-06-15 14:23:29 +02:00
bio_local.h Rework and make DEBUG macros consistent. 2021-05-28 10:04:31 +02:00
bio_meth.c
bio_print.c BIO: Make source file names in crypto/bio/ consistent 2021-06-15 14:23:29 +02:00
bio_sock2.c BIO: Make source file names in crypto/bio/ consistent 2021-06-15 14:23:29 +02:00
bio_sock.c BIO: Make source file names in crypto/bio/ consistent 2021-06-15 14:23:29 +02:00
bss_acpt.c Update copyright year 2021-06-17 13:24:59 +01:00
bss_bio.c Update copyright year 2021-06-17 13:24:59 +01:00
bss_conn.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bss_core.c BIO_new_from_core_bio: Fix heap-use-after-free after attach 2021-06-25 10:11:29 +10:00
bss_dgram.c Update copyright year 2021-06-17 13:24:59 +01:00
bss_fd.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bss_file.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bss_log.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bss_mem.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
bss_null.c Update copyright year 2021-06-17 13:24:59 +01:00
bss_sock.c bio: remove TODOs 2021-06-02 16:30:15 +10:00
build.info BIO: Make source file names in crypto/bio/ consistent 2021-06-15 14:23:29 +02:00
ossl_core_bio.c BIO: Make source file names in crypto/bio/ consistent 2021-06-15 14:23:29 +02:00