Bug 1860367 (CVE-2020-14402) - CVE-2020-14402 libvncserver: libvncserver/corre.c allows out-of-bounds access via encodings
Summary: CVE-2020-14402 libvncserver: libvncserver/corre.c allows out-of-bounds access...
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2020-14402
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1860368 1860369 1865710 1865711 1865712 1865713
Blocks: 1860332
TreeView+ depends on / blocked
 
Reported: 2020-07-24 11:30 UTC by Marian Rehak
Modified: 2021-11-02 17:21 UTC (History)
4 users (show)

Fixed In Version: libvncserver 0.9.13
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-02 17:21:11 UTC


Attachments (Terms of Use)

Description Marian Rehak 2020-07-24 11:30:38 UTC
An issue was discovered in LibVNCServer before 0.9.13. libvncserver/corre.c allows out-of-bounds access via encodings.

Upstream commit:

https://github.com/LibVNC/libvncserver/commit/74e8a70f2c9a5248d6718ce443e07c7ed314dfff

Comment 1 Marian Rehak 2020-07-24 11:31:02 UTC
Created libvncserver tracking bugs for this issue:

Affects: epel-7 [bug 1860369]
Affects: fedora-all [bug 1860368]

Comment 2 Todd Cullum 2020-07-28 00:13:22 UTC
in libvncserver/corre.c's subrectEncode##bpp() rectangle encoder, there's a potential out-of-bounds read due to && operator order. The patch reverses the order. This flaw could potentially cause undefined behavior or a crash if the width (w) is incorrect.


Note You need to log in before you can comment on or make changes to this bug.