Skip to content
High 7.7

OpenSSLの脆弱性、PEM読み込み失敗時にメモリが解放後も参照される

CVE-2026-107493 First seen on SecPulse

Summary

OpenSSLのPEM_X509_INFO_read_bio_ex()で、既存のスタックを渡した読み込みが失敗すると、解放済みのメモリを参照する状態になります。アプリケーションがクラッシュするおそれがあり、CVSSは7.7です。影響するのは4.1.0〜4.1.1未満、4.0.0〜4.0.4未満、3.5.0〜3.5.10未満、3.0.0〜3.0.24未満、1.1.1〜1.1.1zk未満、1.0.2〜1.0.2zt未満で、4.1.1、4.0.4、3.5.10、3.0.24、1.1.1zk、1.0.2zt以降の修正版で対応できます。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

OpenSSLのPEM_X509_INFO_read_bio_ex()で、既存のスタックを渡した読み込みが失敗すると、解放済みのメモリを参照する状態になります。アプリケーションがクラッシュするおそれがあり、CVSSは7.7です。影響するのは4.1.0〜4.1.1未満、4.0.0〜4.0.4未満、3.5.0〜3.5.10未満、3.0.0〜3.0.24未満、1.1.1〜1.1.1zk未満、1.0.2〜1.0.2zt未満で、4.1.1、4.0.4、3.5.10、3.0.24、1.1.1zk、1.0.2zt以降の修正版で対応できます。

Affected packages

PackageAffected → Fixed
OpenSSLOpenSSL
≥ 4.1.0, < 4.1.1→ 4.1.1
≥ 4.0.0, < 4.0.4→ 4.0.4
≥ 3.5.0, < 3.5.10→ 3.5.10
≥ 3.0.0, < 3.0.24→ 3.0.24
≥ 1.1.1, < 1.1.1zk→ 1.1.1zk
≥ 1.0.2, < 1.0.2zt→ 1.0.2zt

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Issue summary: When an application passes a stack to
PEM_X509_INFO_read_bio_ex() to add entries to, and reading fails,
OpenSSL frees every entry in the stack, both the old ones and any new
ones, but leaves them in the stack.

Impact summary: An application that passes an existing stack to
PEM_X509_INFO_read_bio_ex() and keeps using it after a failed read may
use memory that was already freed. This can cause a crash or, in
principle, memory corruption. Malformed PEM data can make the read fail,
but only applications that pass an existing stack are affected, and
OpenSSL itself does not do this.

CWE: CWE-416: Use After Free

Description: PEM_X509_INFO_read_bio_ex() reads certificates, CRLs and
private keys from PEM data and adds them to a stack of X509_INFO
structures. If the application passes a stack that is not NULL, the
function adds the new entries to it and must leave the entries that are
already there unchanged.

If reading fails, the function frees every entry in the stack. This
includes the entries that were there before the call, and the entries
added by the call. It does not remove these entries from the stack, so
the stack keeps pointers to freed memory. The failure can happen at any
point, even before any entry was added. A PEM item with invalid content
is enough. This also happens if the stack was empty: entries added
before the failure are freed but stay in the stack.

An application that then reads or frees the stack will use memory that
was already freed. This…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details