OSV-2025-42 Heap-use-after-free in r_list_free

Not scored Published

A heap-use-after-free vulnerability in the binary analysis library allows attackers to cause crashes or potentially execute arbitrary code via crafted files.

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

What is OSV-2025-42?

OSV-2025-42 is an use after free vulnerability in radare2, published on 19 Jan 2025.

Official description

OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=390467754

Crash type: Heap-use-after-free READ 8
Crash state:
r_list_free
r_bin_bflt_free
r_bin_file_free

Which versions are affected by OSV-2025-42?

1 open source package ship an affected version, including radare2.

PackageAffectedFixed in
radare2 OSS-FuzzAll versionsNone

How do I fix OSV-2025-42?

No fix has been published for OSV-2025-42 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is OSV-2025-42 being exploited?

There is no known exploitation of OSV-2025-42 in the wild and no public exploit code.

Sources

Is OSV-2025-42 in your software?

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

Check your SBOMs for free