{"id":"CVE-2026-25955","summary":"FreeRDP has heap-use-after-free in xf_AppUpdateWindowFromSurface (stale XImage)","details":"FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_AppUpdateWindowFromSurface` reuses a cached `XImage` whose `data` pointer references a freed RDPGFX surface buffer, because `gdi_DeleteSurface` frees `surface-\u003edata` without invalidating the `appWindow-\u003eimage` that aliases it. Version 3.23.0 fixes the issue.","aliases":["GHSA-4g54-x8v7-559x"],"modified":"2026-08-18T18:38:45.481231Z","published":"2026-02-25T20:32:42.458Z","related":["SUSE-SU-2026:1633-1","SUSE-SU-2026:21436-1","openSUSE-SU-2026:10408-1","openSUSE-SU-2026:20657-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-416"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25955.json"},"references":[{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1484-L1492"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1494-L1500"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_window.c#L1528"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/libfreerdp/gdi/gfx.c#L1224-L1227"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25955.json"},{"type":"ADVISORY","url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-4g54-x8v7-559x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25955"},{"type":"FIX","url":"https://github.com/FreeRDP/FreeRDP/commit/169d358734509e82663a0d6a0085ae726d439d8e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/freerdp/freerdp","events":[{"introduced":"0"},{"fixed":"b933ae18d9ad2a1d73c610868fcc30eb61654070"},{"fixed":"169d358734509e82663a0d6a0085ae726d439d8e"}],"database_specific":{"cpe":"cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.23.0"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["3.5.1","3.5.0","3.4.0","3.3.0","3.2.0","3.1.0","3.0.0","3.0.0-rc0","3.0.0-beta4","3.0.0-beta3","3.0.0-beta2","3.0.0-beta1","2.0.0","2.0.0-rc4","2.0.0-rc3","2.0.0-rc2","2.0.0-rc1","2.0.0-rc0","2.0.0-beta1+android11","2.0.0-beta1+android10","1.2.0-beta1+android9","1.2.0-beta1+android7","1.1.0-beta+2013071101","1.1.0-beta1+ios4","1.1.0-beta1+android5","1.1.0-beta1+android4","1.1.0-beta1+ios3","1.1.0-beta1+ios2","1.1.0-beta1+android3","1.1.0-beta1+android2","1.1.0-beta1+ios1","1.1.0-beta1","1.0.1","1.0.0","1.0-beta5","1.0-beta4","1.0-beta2","1.0-beta1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-25955.json","vanir_signatures_modified":"2026-08-18T18:38:45Z","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/169d358734509e82663a0d6a0085ae726d439d8e","target":{"file":"client/X11/xf_gfx.c","function":"xf_graphics_pipeline_init"},"deprecated":false,"digest":{"function_hash":"230624877803178313183853038157178133264","length":518},"id":"CVE-2026-25955-4c320021","signature_type":"Function"},{"signature_type":"Line","signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/169d358734509e82663a0d6a0085ae726d439d8e","target":{"file":"client/X11/xf_window.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["243529717739569533684677910977833101610","307921445723320159618554933166517132440","213455639638254885527558728264828985474","2353051177811375233891963000348469859"]},"id":"CVE-2026-25955-7048ed9a"},{"signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/169d358734509e82663a0d6a0085ae726d439d8e","target":{"file":"client/X11/xf_window.c","function":"xf_AppWindowDestroyImage"},"deprecated":false,"digest":{"function_hash":"124676779988898232143899520915483035523","length":176},"id":"CVE-2026-25955-7509ce41","signature_type":"Function"},{"digest":{"line_hashes":["274989684726415854464860555426590600791","157415152814815066604456711882283525613","130389643594465153924391638423004511","69614774208158716414427812049481401373","301401017960183807966362045809666094476","100051856654893783752645365936153427058","43349210179461126525492169005781632617","215538969033604108146732541947987911972","290948695116854499007892397015936029216","185438788870802339939463699230008602285","62434136499166560226958797792779197958","109999624526993878280757234893010676708"],"threshold":0.9},"id":"CVE-2026-25955-8547faf9","signature_type":"Line","signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/169d358734509e82663a0d6a0085ae726d439d8e","target":{"file":"client/X11/xf_gfx.c"},"deprecated":false},{"target":{"file":"client/X11/xf_window.h"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["249217399184350562114878016738027530299","114958354134534920921718169867340966258","22054594270502427431110768934478992215","27190643845189031551534858640230522061","307514238429116723752395879286764604255","28530011447516391941862576764716015742","80680984582061645344468879997002228621","66026900180561348995929476936789856149","116583118306453343983134646751243818886"]},"id":"CVE-2026-25955-e8a02b08","signature_type":"Line","signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/169d358734509e82663a0d6a0085ae726d439d8e"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"}]}