OSV-2022-1223 Heap-use-after-free in mbedtls_pkcs7_free
A heap-use-after-free vulnerability in Mbed TLS allows attackers to cause denial of service or potentially execute code via crafted PKCS7 data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is OSV-2022-1223?
OSV-2022-1223 is an use after free vulnerability in mbedtls, published on 28 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53798
Crash type: Heap-use-after-free READ 8
Crash state:
mbedtls_pkcs7_free
mbedtls_pkcs7_parse_der
fuzz_pkcs7.c
Which versions are affected by OSV-2022-1223?
1 open source package ship an affected version, including mbedtls.
| Package | Affected | Fixed in |
|---|---|---|
mbedtls OSS-Fuzz | All versions | None |
How do I fix OSV-2022-1223?
No fix has been published for OSV-2022-1223 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-2022-1223 being exploited?
There is no known exploitation of OSV-2022-1223 in the wild and no public exploit code.