CVE-2026-33516: Xrdp Memcpy From Stream Read Pointer

A g_memcpy()/memcpy() from an xrdp stream's read pointer ($S->p) is performed BEFORE the remaining-length check on the stream. The xrdp stream API provides bounds-aware in_uint8a()/in_uint8s() macros that must be paired with an explicit `len < $SIZE` check performed BEFORE the copy. When the check is performed AFTER the copy (as in xrdp_caps_process_codecs f

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-33516-xrdp-memcpy-from-stream-read-pointer --engine opengrep

Description

A g_memcpy()/memcpy() from an xrdp stream's read pointer ($S->p) is performed BEFORE the remaining-length check on the stream. The xrdp stream API provides bounds-aware in_uint8a()/in_uint8s() macros that must be paired with an explicit `len < $SIZE` check performed BEFORE the copy. When the check is performed AFTER the copy (as in xrdp_caps_process_codecs f