GHSA-q445-7m23-qrmw openssl's `MemBio::get_buf` has undefined behavior with empty buffers

Not scored Published

Undefined behavior in MemBio::get_buf with empty buffers can cause assertion failures or crashes in debug builds.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is GHSA-q445-7m23-qrmw?

GHSA-q445-7m23-qrmw is a memory corruption vulnerability in openssl, published on 21 Jul 2024.

Official description

Previously, MemBio::get_buf called slice::from_raw_parts with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed.

Which versions are affected by GHSA-q445-7m23-qrmw?

3 open source packages ship an affected version, including openssl.

PackageAffectedFixed in
openssl crates.ioAll versions0.10.66
openssl crates.ioAll versions0.10.66
openssl crates.ioFrom 0.0.0-00.10.66

How do I fix GHSA-q445-7m23-qrmw?

Upgrade openssl to 0.10.66 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is GHSA-q445-7m23-qrmw being exploited?

There is no known exploitation of GHSA-q445-7m23-qrmw in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2024-0357.

Is GHSA-q445-7m23-qrmw in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free