]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a race in by_store_subject
authorMatt Caswell <matt@openssl.org>
Tue, 19 Aug 2025 12:27:50 +0000 (13:27 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 21 Aug 2025 12:46:29 +0000 (14:46 +0200)
commitf0c9ea78439a6f944ce9c9d2527a07167550bb34
treeda32d1e26f5882275e242e41836002b08e87c150
parent3b18c28cafbbd82b23decb15b546ff8a4017dae5
Fix a race in by_store_subject

When looking in the stack of objects in the store we need to ensure we
are holding a read lock for the store.

Issue detected via thread sanitizer after the test from the previous
commit was added.

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28198)

(cherry picked from commit 07f65e16c209e06be9887c2d5f943f528e3f0139)
crypto/x509/by_store.c
crypto/x509/x509_local.h
crypto/x509/x509_lu.c