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.
{
"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"
}"2026-04-11T03:29:12Z"
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-25997.json"
[
{
"target": {
"function": "xf_cliprdr_monitor_ready",
"file": "client/X11/xf_cliprdr.c"
},
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 419.0,
"function_hash": "195849574162932588145718783437253003595"
},
"id": "CVE-2026-25997-25d86b87",
"source": "https://github.com/freerdp/freerdp/commit/58409406afe7c2a8a71ed2dc8e22075be4f41c0c",
"signature_type": "Function"
},
{
"target": {
"file": "client/X11/xf_cliprdr.c"
},
"signature_version": "v1",
"deprecated": false,
"digest": {
"threshold": 0.9,
"line_hashes": [
"213134136836180262365431837827228730461",
"277752843233953448648189769488259531807",
"4964755656961635326905751501448807356",
"108864957116009187920511780557764778242",
"315943788099464136332529350953945905405",
"248374935966901917132843977254113233595",
"10244202000254632556120268878885523237",
"234628572719705076252523942131172036233",
"55990807952088988161917268347216149190",
"298881736267022793904247585657603751224",
"46650901616901917821578809886350007354",
"298292769769841049615805825273001898253",
"327066214340680784749134499370173748622",
"72550550739841773298717687094663279216",
"71747830891949038026006767757655546066",
"223822752226424211273268088594268624193",
"124832886688866327895298760551761521092",
"253537164236478619529944105598025493461",
"110073672116881815492195304918401154298"
]
},
"id": "CVE-2026-25997-c249e9fb",
"source": "https://github.com/freerdp/freerdp/commit/58409406afe7c2a8a71ed2dc8e22075be4f41c0c",
"signature_type": "Line"
},
{
"target": {
"function": "xf_clipboard_formats_free",
"file": "client/X11/xf_cliprdr.c"
},
"signature_version": "v1",
"deprecated": false,
"digest": {
"length": 202.0,
"function_hash": "236834648570296669487754527101298463963"
},
"id": "CVE-2026-25997-f0d189d9",
"source": "https://github.com/freerdp/freerdp/commit/58409406afe7c2a8a71ed2dc8e22075be4f41c0c",
"signature_type": "Function"
}
]