Use After Free Affecting freerdp/freerdp package, versions [,3.0.0-beta3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.15% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-FREERDPFREERDP-5878746
  • published1 Sept 2023
  • disclosed31 Aug 2023
  • creditpwn2car

Introduced: 31 Aug 2023

CVE-2023-40187  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade freerdp/freerdp to version 3.0.0-beta3 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the avc420_ensure_buffer and avc444_ensure_buffer functions. An attacker can set the value of piDstSize[x] to 0, leading to ppYUVDstData[x] being freed. However, ppYUVDstData[x] would not have been updated, leading to a use-after-free vulnerability.

NOTE: FreeRDP proxy is not affected.

CVSS Base Scores

version 3.1