]> 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)
committerMatt Caswell <matt@openssl.org>
Thu, 4 Sep 2025 12:26:02 +0000 (13:26 +0100)
commitc87359d22f5e92964976a91b17bda68b131b4ecc
treec1d9490e9d513b4e3e1d5a21d91ead68e1c47694
parent170f5759fc33d65a8f90272dfa0ee86d9daef26a
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: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28385)
crypto/x509/by_store.c