{"id":"CVE-2026-22851","state":"PUBLISHED","title":"FreeRDP RDPGFX ResetGraphics race leads to use-after-free in SDL client (sdl->primary)","description":"FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, a race condition between the RDPGFX dynamic virtual channel thread and the SDL render thread leads to a heap use-after-free. Specifically, an escaped pointer to sdl->primary (SDL_Surface) is accessed after it has been freed during RDPGFX ResetGraphics handling. This vulnerability is fixed in 3.20.1.","publishedAt":"2026-01-14T17:43:28.114Z","updatedAt":"2026-01-14T21:03:36.764Z","severity":{"score":6.9,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P","source":"GitHub_M"},"assigner":"GitHub_M","products":["FreeRDP FreeRDP"],"affected":[{"vendor":"FreeRDP","product":"FreeRDP","versions":[{"version":"< 3.20.1","status":"affected"}]}],"references":["https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-8g87-6pvc-wh99","https://github.com/FreeRDP/FreeRDP/releases/tag/3.20.1"],"weaknesses":["CWE-362","CWE-416"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/22xxx/CVE-2026-22851.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-22851","state":"PUBLISHED","datePublished":"2026-01-14T17:43:28.114Z","dateUpdated":"2026-01-14T21:03:36.764Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-01-12T16:20:16.745Z"},"containers":{"cna":{"title":"FreeRDP RDPGFX ResetGraphics race leads to use-after-free in SDL client (sdl->primary)","descriptions":[{"lang":"en","value":"FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, a race condition between the RDPGFX dynamic virtual channel thread and the SDL render thread leads to a heap use-after-free. Specifically, an escaped pointer to sdl->primary (SDL_Surface) is accessed after it has been freed during RDPGFX ResetGraphics handling. This vulnerability is fixed in 3.20.1."}],"affected":[{"vendor":"FreeRDP","product":"FreeRDP","versions":[{"version":"< 3.20.1","status":"affected"}]}],"references":[{"url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-8g87-6pvc-wh99","name":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-8g87-6pvc-wh99","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/FreeRDP/FreeRDP/releases/tag/3.20.1","name":"https://github.com/FreeRDP/FreeRDP/releases/tag/3.20.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.9,"baseSeverity":"MEDIUM","vectorString":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","lang":"en","description":"CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"CWE-416: Use After Free","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-14T17:43:28.114Z"},"source":{"advisory":"GHSA-8g87-6pvc-wh99","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-01-14T21:03:26.062441Z","id":"CVE-2026-22851","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T21:03:36.764Z"}}]}}}