CVE-2017-15118: Buffer Overflow
A stack-based buffer overflow vulnerability was found in NBD server implementation in qemu allowing client to request an export name of size up to 4096 bytes, which in fact should be limited to 256 bytes, allowing to cause out-of-bounds stack write in qemu process.
If NBD server requires TLS, the attacker cannot trigger the buffer overflow without first successfully negotiating TLS.
Upstream patch: --------------- -> https://lists.gnu.org/archive/html/qemu-devel/2017-11/msg05045.html
Reference: ---------- -> http://www.openwall.com/lists/oss-security/2017/11/28/8
Other sources
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.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/qemuto a version that resolves this vulnerability.Fixed in 2.11 - Upgrade
Upgrade
debian/qemuto a version that resolves this vulnerability.Fixed in 1:5.2+dfsg-11+deb11u3Fixed in 1:5.2+dfsg-11+deb11u5Fixed in 1:7.2+dfsg-7+deb12u18Fixed in 1:7.2+dfsg-7+deb12u15Fixed in 1:10.0.11+ds-0+deb13u1Fixed in 1:10.0.2+ds-2+deb13u1Fixed in 1:11.0.2+ds-2
Event History
Frequently Asked Questions
What is the severity of CVE-2017-15118?
CVE-2017-15118 is rated as a high severity vulnerability due to its potential to cause a stack-based buffer overflow.
How do I fix CVE-2017-15118?
To fix CVE-2017-15118, upgrade the qemu package to versions 2.11 or later.
Which versions of qemu are affected by CVE-2017-15118?
CVE-2017-15118 affects qemu versions up to 2.11.
Is CVE-2017-15118 exploitable remotely?
Yes, CVE-2017-15118 is exploitable remotely when the NBD server is improperly configured to allow oversized export names.
What systems are impacted by CVE-2017-15118?
CVE-2017-15118 impacts systems running qemu versions prior to 2.11, including specific versions of Ubuntu and Red Hat Enterprise Linux.