CVE-2019-14842

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2019-14842
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-14842.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2019-14842
Published
2019-11-26T16:15:11Z
Modified
2024-09-03T02:26:07.205901Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/libguestfs/libnbd

Affected ranges

Type
GIT
Repo
https://github.com/libguestfs/libnbd
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*

v0.1
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v0.9.6
v0.9.7
v0.9.8
v0.9.9

v1.*

v1.0.0
v1.0.1
v1.0.2