FreeRDP before 3.33.0 contains a heap use-after-free vulnerability in update_gdi_patblt(), update_gdi_polygon_cb() and update_gdi_mem3blt() that retain stale brush cache pointers. A malicious RDP server can resend CACHE_BRUSH to the same slot then send PATBLT, causing clients to read freed heap memory, disclosing data or crashing.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125394.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "3.33.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "ffc6b976e3589b768e8e279bc61dfb7b5896e832"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "3.33.0",
"range": [
{
"fixed": "5a10d7b6b79a2fbc62e8eba77085cd356dc303a6"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125394.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "28005785866881127521941708842220387088",
"length": 528
},
"id": "CVE-2026-125394-211ac923",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/freerdp/freerdp/commit/ffc6b976e3589b768e8e279bc61dfb7b5896e832",
"target": {
"file": "libfreerdp/cache/brush.c",
"function": "update_gdi_patblt"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"189569611639121620422200025393517292391",
"317093203561563492441546664910808452690",
"169892007880450735900247416698773114749",
"238690478737029924294084952032404465918",
"275766747726948354513736000885066924054",
"200384181644284099632021666784350310474",
"143315488993962791103882217637651652095",
"216548057883304481467218068237725978307",
"296126107739785167230874040850154802765",
"23679361215864515813647163471203021888",
"317755456466805372758284556094034112355",
"87575823510781756162680632045705165614",
"151784877889098647443169905283017681773",
"263837994094531097896610172269969682191",
"48084548560642888880071025880461040940",
"145760742503070155274682515346894797119"
],
"threshold": 0.9
},
"id": "CVE-2026-125394-8a0c6316",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/freerdp/freerdp/commit/ffc6b976e3589b768e8e279bc61dfb7b5896e832",
"target": {
"file": "libfreerdp/cache/brush.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"186544833482421116106838794910820036268",
"240419581122286914500784361444411312150",
"300442067708886983222347826328729446499",
"267906492655467396595875578253187658139",
"299868245330745043325113138012530608437",
"333110563963344548043581523512496996560",
"155117800397877661191675639569279874169",
"170342617026802508484469684104071422077"
],
"threshold": 0.9
},
"id": "CVE-2026-125394-9eda95e7",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/freerdp/freerdp/commit/ffc6b976e3589b768e8e279bc61dfb7b5896e832",
"target": {
"file": "libfreerdp/cache/bitmap.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "76176883909751132035200764680101307098",
"length": 696
},
"id": "CVE-2026-125394-b73ea9c9",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/freerdp/freerdp/commit/ffc6b976e3589b768e8e279bc61dfb7b5896e832",
"target": {
"file": "libfreerdp/cache/bitmap.c",
"function": "update_gdi_mem3blt"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "270941930765096636209780717700541734951",
"length": 525
},
"id": "CVE-2026-125394-c691a8d3",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/freerdp/freerdp/commit/ffc6b976e3589b768e8e279bc61dfb7b5896e832",
"target": {
"file": "libfreerdp/cache/brush.c",
"function": "update_gdi_polygon_cb"
}
}
]
"2026-11-15T07:04:30Z"