In FreeRDP before version 2.1.2, there is a use-after-free in gdi_SelectObject. All FreeRDP clients using compatibility mode with /relax-order-checks are affected. This is fixed in version 2.1.2.
https://usn.ubuntu.com/4481-1/
https://lists.debian.org/debian-lts-announce/2023/10/msg00008.html
https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-gwcq-hpq2-m74g
https://github.com/FreeRDP/FreeRDP/commit/6d86e20e1e7caaab4f0c7f89e36d32914dbccc52
http://www.freerdp.com/2020/06/22/2_1_2-released
http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00080.html