CVE-2023-3180 Heap buffer overflow in virtio_crypto_sym_op_helper()

Medium 6.0 Published Updated

A heap buffer overflow in QEMU's virtio crypto device allows attackers to execute arbitrary code or cause denial of service via crafted encryption requests.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-3180?

CVE-2023-3180 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 3 Aug 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A flaw was found in the QEMU virtual crypto device while handling data encryption/decryption requests in virtio_crypto_handle_sym_req. There is no check for the value of `src_len` and `dst_len` in virtio_crypto_sym_op_helper, potentially leading to a heap buffer overflow when the two values differ.

Weakness: CWE-787, CWE-122

Which versions are affected by CVE-2023-3180?

It affects 3 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Qemu Qemu.

How do I fix CVE-2023-3180?

Apply the vendor's patch.

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

Is CVE-2023-3180 being exploited?

There is no known exploitation of CVE-2023-3180 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as AZL-31817, AZL-35168, BELL-CVE-2023-3180, DEBIAN-CVE-2023-3180, GHSA-p36c-2mv6-8m8q, OESA-2023-1521 and 2 more.

Is CVE-2023-3180 in your software?

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

Check your SBOMs for free