CVE-2019-14842
published 2019-11-26CVE-2019-14842: Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks. A bounds check which was supposed to test for chunk…
PriorityP355critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
1.85%
76.7th percentile
Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks. A bounds check which was supposed to test for chunk offsets smaller than the beginning of the request did not work because of signed/unsigned confusion. If one of these chunks contains a negative offset then data under control of the server is written to memory before the read buffer supplied by the client. If the read buffer is located on the stack then this allows the stack return address from nbd_pread() to be trivially modified, allowing arbitrary code execution under the control of the server. If the buffer is located on the heap then other memory objects before the buffer can be overwritten, which again would usually lead to arbitrary code execution.
Affected
6 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libnbd | < libnbd 1.0.3-1 (bookworm) | libnbd 1.0.3-1 (bookworm) |
| redhat | libnbd | < 1.0.3 | 1.0.3 |
| redhat | libnbd | >= 0 < 1.0.3-1 | 1.0.3-1 |
| redhat | libnbd | >= 0 < 1.0.3-1 | 1.0.3-1 |
| redhat | libnbd | >= 0 < 1.0.3-1 | 1.0.3-1 |
| redhat | libnbd | >= 0 < 1.0.3-1 | 1.0.3-1 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv3.07.3HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-xv5g-h355-j9v9: Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks
ghsa_unreviewed·2022-05-24
CVE-2019-14842 [CRITICAL] CWE-681 GHSA-xv5g-h355-j9v9: Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks
Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks. A bounds check which was supposed to test for chunk offsets smaller than the beginning of the request did not work because of signed/unsigned confusion. If one of these chunks contains a negative offset then data under control of the server is written to memory before the read buffer supplied by the client. If the read buffer is located on the stack then this allows the stack return address from nbd_pread() to be trivially modified, allowing arbitrary code execution under the control of the server. If the buffer is located on the heap then other memory objects before the buffer can be overwritten, which again would usually lead to arbitrary code execution.
OSV
CVE-2019-14842: Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks
osv·2019-11-26·CVSS 9.8
CVE-2019-14842 [CRITICAL] CVE-2019-14842: Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks
Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks. A bounds check which was supposed to test for chunk offsets smaller than the beginning of the request did not work because of signed/unsigned confusion. If one of these chunks contains a negative offset then data under control of the server is written to memory before the read buffer supplied by the client. If the read buffer is located on the stack then this allows the stack return address from nbd_pread() to be trivially modified, allowing arbitrary code execution under the control of the server. If the buffer is located on the heap then other memory objects before the buffer can be overwritten, which again would usually lead to arbitrary code execution.
Red Hat
libnbd: remote code execution vulnerability
vendor_redhat·2019-10-09·CVSS 9.8
CVE-2019-14842 [CRITICAL] CWE-681 libnbd: remote code execution vulnerability
libnbd: remote code execution vulnerability
Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks. A bounds check which was supposed to test for chunk offsets smaller than the beginning of the request did not work because of signed/unsigned confusion. If one of these chunks contains a negative offset then data under control of the server is written to memory before the read buffer supplied by the client. If the read buffer is located on the stack then this allows the stack return address from nbd_pread() to be trivially modified, allowing arbitrary code execution under the control of the server. If the buffer is located on the heap then other memory objects before the buffer can be overwritten, which again would usually lead to arbitrary
Debian
CVE-2019-14842: libnbd - Structured reply is a feature of the newstyle NBD protocol allowing the server t...
vendor_debian·2019·CVSS 9.8
CVE-2019-14842 [CRITICAL] CVE-2019-14842: libnbd - Structured reply is a feature of the newstyle NBD protocol allowing the server t...
Structured reply is a feature of the newstyle NBD protocol allowing the server to send a reply in chunks. A bounds check which was supposed to test for chunk offsets smaller than the beginning of the request did not work because of signed/unsigned confusion. If one of these chunks contains a negative offset then data under control of the server is written to memory before the read buffer supplied by the client. If the read buffer is located on the stack then this allows the stack return address from nbd_pread() to be trivially modified, allowing arbitrary code execution under the control of the server. If the buffer is located on the heap then other memory objects before the buffer can be overwritten, which again would usually lead to arbitrary code execution.
Scope: local
bookworm: resolv
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2019-14842 libnbd: remote code execution vulnerability
bugzilla·2019-11-26·CVSS 9.8
CVE-2019-14842 [CRITICAL] CVE-2019-14842 libnbd: remote code execution vulnerability
CVE-2019-14842 libnbd: remote code execution vulnerability
A vulnerabilty was found in libnbd. There is an improper bounds checking, when receiving a structured reply some offset/lengths sent by the server could cause libnbd to execute arbitrary code under control of a malicious server.
Discussion:
Created libnbd tracking bugs for this issue:
Affects: fedora-all [bug 1776862]
---
External References:
https://www.redhat.com/archives/libguestfs/2019-October/msg00060.html
---
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.
---
Statement:
This vulnerability does not affect any package in a commercial
Bugzilla
CVE-2019-14842 libnbd: remote code execution vulnerability [fedora-all]
bugzilla·2019-11-26·CVSS 9.8
CVE-2019-14842 [CRITICAL] CVE-2019-14842 libnbd: remote code execution vulnerability [fedora-all]
CVE-2019-14842 libnbd: remote code execution vulnerability [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions of Fe
2019-11-26
Published