{"id":"CVE-2026-25997","summary":"FreeRDP has heap-use-after-free in xf_clipboard_format_equal","details":"FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_clipboard_format_equal` reads freed `lastSentFormats` memory because `xf_clipboard_formats_free` (called from the cliprdr channel thread during auto-reconnect) frees the array while the X11 event thread concurrently iterates it in `xf_clipboard_changed`, triggering a heap use after free. Version 3.23.0 fixes the issue.","aliases":["GHSA-q5j3-m6jf-3jq4"],"modified":"2026-08-18T18:38:47.224660Z","published":"2026-02-25T20:38:40.483Z","related":["ALSA-2026:16014","SUSE-SU-2026:1632-1","SUSE-SU-2026:1633-1","SUSE-SU-2026:1634-1","SUSE-SU-2026:1635-1","SUSE-SU-2026:1640-1","SUSE-SU-2026:21436-1","openSUSE-SU-2026:10408-1","openSUSE-SU-2026:10611-1","openSUSE-SU-2026:20632-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-25997.json"},"references":[{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L1884"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L1889"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L265"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L616"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L831"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L851-L855"},{"type":"WEB","url":"https://github.com/FreeRDP/FreeRDP/blob/5c7aae27d0417b42b4806c2a5c583ca39dd9ef1e/client/X11/xf_cliprdr.c#L868-L875"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25997.json"},{"type":"ADVISORY","url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-q5j3-m6jf-3jq4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25997"},{"type":"FIX","url":"https://github.com/FreeRDP/FreeRDP/commit/58409406afe7c2a8a71ed2dc8e22075be4f41c0c"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/freerdp/freerdp","events":[{"introduced":"0"},{"fixed":"b933ae18d9ad2a1d73c610868fcc30eb61654070"},{"fixed":"58409406afe7c2a8a71ed2dc8e22075be4f41c0c"}],"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-25997.json","vanir_signatures_modified":"2026-08-18T18:38:47Z","vanir_signatures":[{"source":"https://github.com/freerdp/freerdp/commit/58409406afe7c2a8a71ed2dc8e22075be4f41c0c","target":{"file":"client/X11/xf_cliprdr.c","function":"xf_cliprdr_monitor_ready"},"deprecated":false,"digest":{"function_hash":"195849574162932588145718783437253003595","length":419},"id":"CVE-2026-25997-25d86b87","signature_type":"Function","signature_version":"v1"},{"deprecated":false,"digest":{"line_hashes":["213134136836180262365431837827228730461","277752843233953448648189769488259531807","4964755656961635326905751501448807356","108864957116009187920511780557764778242","315943788099464136332529350953945905405","248374935966901917132843977254113233595","10244202000254632556120268878885523237","234628572719705076252523942131172036233","55990807952088988161917268347216149190","298881736267022793904247585657603751224","46650901616901917821578809886350007354","298292769769841049615805825273001898253","327066214340680784749134499370173748622","72550550739841773298717687094663279216","71747830891949038026006767757655546066","223822752226424211273268088594268624193","124832886688866327895298760551761521092","253537164236478619529944105598025493461","110073672116881815492195304918401154298"],"threshold":0.9},"id":"CVE-2026-25997-c249e9fb","signature_type":"Line","signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/58409406afe7c2a8a71ed2dc8e22075be4f41c0c","target":{"file":"client/X11/xf_cliprdr.c"}},{"deprecated":false,"digest":{"function_hash":"236834648570296669487754527101298463963","length":202},"id":"CVE-2026-25997-f0d189d9","signature_type":"Function","signature_version":"v1","source":"https://github.com/freerdp/freerdp/commit/58409406afe7c2a8a71ed2dc8e22075be4f41c0c","target":{"file":"client/X11/xf_cliprdr.c","function":"xf_clipboard_formats_free"}}]}}],"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"}]}