CVE-2021-26937: GNU Screen Heap Overflow in UTF-8 Combining Character Handling
21b335c1-429b-4324-a839-34d09cf05b4e
GNU Screen v4.8.0 contains a heap buffer overflow vulnerability (CVE-2021-26937) in the utf8_handle_comb() function in src/encoding.c. The function manages a dynamic array of combining character entries with fixed sentinel entries at indices 0x800 and 0x801 that control loop iteration bounds via their c1/c2 fields. When processing UTF-8 combining characters, user-controlled values can corrupt these root entries' c2 fields, causing subsequent loop iterations to access heap memory far beyond the allocated 0x802-element array, resulting in information disclosure and potential code execution.",antml:parameter>