Bug 2447376 (CVE-2026-31806)

Summary: CVE-2026-31806 freerdp: FreeRDP: Arbitrary code execution via crafted Remote Desktop Protocol (RDP) server messages
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in FreeRDP, a free implementation of the Remote Desktop Protocol (RDP). The `gdi_surface_bits()` function, which processes `SURFACE_BITS_COMMAND` messages, does not properly validate image dimensions (`bmp.width` and `bmp.height`) provided by a malicious RDP server. This can lead to a heap buffer overflow during bitmap decoding and memory operations. A remote attacker could exploit this to overwrite adjacent memory, potentially resulting in arbitrary code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2447392, 2447394, 2447393    
Bug Blocks:    

Description OSIDB Bzimport 2026-03-13 18:04:13 UTC
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0,  the gdi_surface_bits() function processes SURFACE_BITS_COMMAND messages sent by the RDP server. When the command is handled using NSCodec, the bmp.width and bmp.height values provided by the server are not properly validated against the actual desktop dimensions. A malicious RDP server can supply crafted bmp.width and bmp.height values that exceed the expected surface size. Because these values are used during bitmap decoding and memory operations without proper bounds checking, this can lead to a heap buffer overflow. Since the attacker can also control the associated pixel data transmitted by the server, the overflow may be exploitable to overwrite adjacent heap memory. This vulnerability is fixed in 3.24.0.

Comment 2 errata-xmlrpc 2026-04-01 09:07:25 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:6340 https://access.redhat.com/errata/RHSA-2026:6340

Comment 3 errata-xmlrpc 2026-04-07 06:16:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:6727 https://access.redhat.com/errata/RHSA-2026:6727

Comment 4 errata-xmlrpc 2026-04-07 07:42:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:6743 https://access.redhat.com/errata/RHSA-2026:6743

Comment 5 errata-xmlrpc 2026-04-07 12:19:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:6799 https://access.redhat.com/errata/RHSA-2026:6799

Comment 6 errata-xmlrpc 2026-04-07 23:05:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:6918 https://access.redhat.com/errata/RHSA-2026:6918

Comment 7 errata-xmlrpc 2026-04-08 05:09:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:6958 https://access.redhat.com/errata/RHSA-2026:6958

Comment 8 errata-xmlrpc 2026-04-22 07:45:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2026:9640 https://access.redhat.com/errata/RHSA-2026:9640

Comment 9 errata-xmlrpc 2026-04-22 07:49:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:9641 https://access.redhat.com/errata/RHSA-2026:9641

Comment 10 errata-xmlrpc 2026-04-23 07:15:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:10076 https://access.redhat.com/errata/RHSA-2026:10076

Comment 12 errata-xmlrpc 2026-04-27 05:36:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

Via RHSA-2026:10734 https://access.redhat.com/errata/RHSA-2026:10734

Comment 13 errata-xmlrpc 2026-04-27 05:39:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:10735 https://access.redhat.com/errata/RHSA-2026:10735

Comment 14 errata-xmlrpc 2026-04-27 14:50:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2026:10951 https://access.redhat.com/errata/RHSA-2026:10951

Comment 15 errata-xmlrpc 2026-04-28 06:42:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:11323 https://access.redhat.com/errata/RHSA-2026:11323

Comment 16 errata-xmlrpc 2026-05-19 13:04:22 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:19033 https://access.redhat.com/errata/RHSA-2026:19033