An issue was discovered in LibVNCServer before 0.9.13. libvncserver/hextile.c allows out-of-bounds access via encodings. Upstream commit: https://github.com/LibVNC/libvncserver/commit/74e8a70f2c9a5248d6718ce443e07c7ed314dfff
Created libvncserver tracking bugs for this issue: Affects: epel-7 [bug 1860335] Affects: fedora-all [bug 1860336]
in libvncserver/hextile.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.