CVE-2023-40186: debian debian_linux Integer Overflow or Wraparound
Vulnerability summary
CVE-2023-40186 is a critical (CVSS 9.8) Integer Overflow or Wraparound vulnerability in debian debian_linux. EPSS estimates a 1.36% chance of exploitation in the next 30 days, higher than 71.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 8 · Related 4Timeline
- 31-08-2023PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an IntegerOverflow leading to Out-Of-Bound Write Vulnerability in the `gdi_CreateSurface` function. This issue affects FreeRDP based clients only. FreeRDP proxies are not affected as image decoding is not done by a proxy. This issue has been addressed in versions 2.11.0 and 3.0.0-beta3. Users are advised to upgrade. There are no known workarounds for this issue.
CVSS metrics
4 scores · 4 sources · 1 version- CVE.orgCNA6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:LDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.36%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
0.00 pp
From 1.36% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundFreerdp
Maturity: poc
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Debian2 products
- freerdp2< 2.11.7+dfsg1-6~deb12u1
- debian_linuxEOL10.0
Fedoraproject1 product
- fedoraEOL37 | 38 | 39
Freerdp1 product
- freerdp≥ 3.0.0-beta1, < 3.0.0-beta3 | < 2.11.0 | 3.0.0:beta1 | 3.0.0:beta2
Ubuntu1 product
- freerdp2< 2.2.0+dfsg1-0ubuntu0.18.04.4+esm1 | < 2.2.0+dfsg1-0ubuntu0.20.04.5 | < 2.6.1+dfsg1-3ubuntu2.4
4 vendors · 5 products
References
12 links- github.com/FreeRDP/FreeRDP/security/advisories/GHSA-hcj4-3c3r-5j3vX Refsource CONFIRMREPORTExploitVendor Advisory
- github.com/FreeRDP/FreeRDP/blob/fee2b10ba1154f952769a53eb608f044782e22f8/libfreerdp/gdi/gfx.cX Refsource MISCREPORTIssue Tracking
- lists.fedoraproject.org/archives/…Mailing List
- lists.fedoraproject.org/archives/…Mailing List
- lists.fedoraproject.org/archives/…Mailing List