OSV-2021-365 Global-buffer-overflow in llvm_ks::StringRef::find_last_not_of
A global buffer overflow in the LLVM support library's string trimming functions can cause a crash when processing malformed input.
- 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-365?
OSV-2021-365 is a memory corruption vulnerability in keystone, published on 11 Feb 2021.
Official description
OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30790
Crash type: Global-buffer-overflow READ 1
Crash state:
llvm_ks::StringRef::find_last_not_of
llvm_ks::StringRef::rtrim
llvm_ks::StringRef::trim
Which versions are affected by OSV-2021-365?
1 open source package ship an affected version, including keystone.
| Package | Affected | Fixed in |
|---|---|---|
keystone OSS-Fuzz | All versions | None |
How do I fix OSV-2021-365?
No fix has been published for OSV-2021-365 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is OSV-2021-365 being exploited?
There is no known exploitation of OSV-2021-365 in the wild and no public exploit code.