Vulnerabilities / CVE-2017-15118

critical

CVE-2017-15118

Qemu: stack buffer overflow in NBD server triggered via long export name

Published Modified CWE 121, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), Ubuntu (medium).

Description

A stack-based buffer overflow vulnerability was found in NBD server implementation in qemu before 2.11 allowing a client to request an export name of size up to 4096 bytes, which in fact should be limited to 256 bytes, causing an out-of-bounds stack write in the qemu process. If NBD server requires TLS, the attacker cannot trigger the buffer overflow without first successfully negotiating TLS.

Affected packages and fixed versions

SourcePackageFixed in
debian 11qemu1:2.11+dfsg-1
debian 12qemu1:2.11+dfsg-1
debian 13qemu1:2.11+dfsg-1
debian 14qemu1:2.11+dfsg-1
echoqemu1:2.11+dfsg-1
Red Hatqemu-img-ma, qemu-kvm-common-ma, qemu-kvm-ma and 1 moreno fix listed
ubuntu 17.10qemu1:2.10+dfsg-0ubuntu3.5
Show all 10 entries from 7 sources
SourcePackageFixed in
debian 11qemu1:2.11+dfsg-1
debian 12qemu1:2.11+dfsg-1
debian 13qemu1:2.11+dfsg-1
debian 14qemu1:2.11+dfsg-1
echoqemu1:2.11+dfsg-1
Red Hatqemu-img-mano fix listed
Red Hatqemu-kvm-common-mano fix listed
Red Hatqemu-kvm-mano fix listed
Red Hatqemu-kvm-tools-mano fix listed
ubuntu 17.10qemu1:2.10+dfsg-0ubuntu3.5

References

All 11 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.