Medium
Heap buffer overflow in virtio_crypto_sym_op_helper()
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-3180
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 02:24 UTC · Revision 1
Source evidence
Heap buffer overflow in virtio_crypto_sym_op_helper()
core-osv · Original sourcePublished 3 Aug 2023, 14:31 UTC
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.
osv:CVE-2023-3180
Complete source record
{
"id": "4acfcc5be63edc98a9f8b969493d71bb8904fdc02c34b257b256cb650811e26f",
"url": "https://osv.dev/vulnerability/CVE-2023-3180",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Heap buffer overflow in virtio_crypto_sym_op_helper()",
"summary": "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.",
"evidence": "osv:CVE-2023-3180",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-3180",
"aliases": [
"CVE-2023-3180"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/qemu/qemu",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "7e5a8bb22368b3555644cb2debd3df24592f3a21"
},
{
"introduced": "2c27fdc7a626408ee2cf30d791aa0b63027c7404"
},
{
"last_affected": "9ba37026fcf6b7f3f096c0cca3e1e7307802486b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "8.1.0"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:qemu:qemu:8.1.0:rc0:*:*:*:*:*:*",
"range": [
{
"introduced": "8.1.0-rc0"
},
{
"last_affected": "8.1.0-rc0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:qemu:qemu:8.1.0:rc1:*:*:*:*:*:*",
"range": [
{
"introduced": "8.1.0-rc1"
},
{
"last_affected": "8.1.0-rc1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:qemu:qemu:8.1.0:rc2:*:*:*:*:*:*",
"range": [
{
"introduced": "8.1.0-rc2"
},
{
"last_affected": "8.1.0-rc2"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"8.1.0-rc0",
"8.1.0-rc1",
"8.1.0-rc2",
"v8.1.0-rc2",
"v8.1.0-rc1",
"v8.1.0-rc0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-3180.json"
}
},
{
"ranges": [
{
"repo": "https://gitlab.com/qemu-project/qemu",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "7e5a8bb22368b3555644cb2debd3df24592f3a21"
},
{
"introduced": "2c27fdc7a626408ee2cf30d791aa0b63027c7404"
},
{
"last_affected": "9ba37026fcf6b7f3f096c0cca3e1e7307802486b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "8.1.0"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:qemu:qemu:8.1.0:rc0:*:*:*:*:*:*",
"range": [
{
"introduced": "8.1.0-rc0"
},
{
"last_affected": "8.1.0-rc0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:qemu:qemu:8.1.0:rc1:*:*:*:*:*:*",
"range": [
{
"introduced": "8.1.0-rc1"
},
{
"last_affected": "8.1.0-rc1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:qemu:qemu:8.1.0:rc2:*:*:*:*:*:*",
"range": [
{
"introduced": "8.1.0-rc2"
},
{
"last_affected": "8.1.0-rc2"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"8.1.0-rc0",
"8.1.0-rc1",
"8.1.0-rc2",
"v8.1.0-rc2",
"v8.1.0-rc1",
"v8.1.0-rc0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-3180.json"
}
}
],
"modified": "2026-10-28T02:30:32.338671568Z",
"provider": "osv",
"references": [
"https://access.redhat.com/downloads/content/package-browser/",
"https://lists.debian.org/debian-lts-announce/2023/10/msg00006.html",
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MURWGXDIF2WTDXV36T6HFJDBL632AO7R/",
"https://packages.fedoraproject.org/",
"https://access.redhat.com/security/cve/CVE-2023-3180",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/3xxx/CVE-2023-3180.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-3180",
"https://security.netapp.com/advisory/ntap-20230831-0008/",
"https://bugzilla.redhat.com/show_bug.cgi?id=2222424"
],
"provider_metadata": {
"cwe_ids": [
"CWE-122"
],
"cna_assigner": "redhat",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/3xxx/CVE-2023-3180.json"
}
},
"related_cves": [
{
"value": "CVE-2023-3180",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499621,
"published_at": "2023-08-03T14:31:36.083+00:00"
}