OSV-2021-495 Heap-double-free in bit_chain_free
A heap double-free vulnerability in the DWG encoding library allows attackers to cause denial of service or potentially execute 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-2021-495?
OSV-2021-495 is an use after free vulnerability in libredwg, published on 6 Mar 2021.
Official description
OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=31724
Crash type: Heap-double-free
Crash state:
bit_chain_free
dwg_encode_MTEXT
dwg_encode_add_object
Which versions are affected by OSV-2021-495?
1 open source package ship an affected version, including libredwg.
| Package | Affected | Fixed in |
|---|---|---|
libredwg OSS-Fuzz | All versions | None |
How do I fix OSV-2021-495?
No fix has been published for OSV-2021-495 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-2021-495 being exploited?
There is no known exploitation of OSV-2021-495 in the wild and no public exploit code.