Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1198972

Summary: xfreerdp crashes while connecting to windows machine
Product: Red Hat Enterprise Linux 6 Reporter: Siteshwar Vashisht <svashisht>
Component: freerdpAssignee: Ondrej Holy <oholy>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.5CC: jkoten, thudziec, tpelka, zsarosi
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: freerdp-1.0.2-3.el6 Doc Type: Bug Fix
Doc Text:
Previously, the xfreerdp client terminated unexpectedly when connecting to a Certification Authority (CA)-signed RDP server. With this update, the pointer dereference in CA verification code that caused the crash has been fixed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 19:44:05 UTC Type: Bug
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:    
Bug Blocks: 1271696    
Attachments:
Description Flags
Fixes segfault while connecting to windows machine none

Description Siteshwar Vashisht 2015-03-05 09:13:21 UTC
Description of problem:
xfreerdp crashes while connecting to windows machine

Version-Release number of selected component (if applicable):
freerdp-1.0.2-2.el6.x86_64
freerdp-libs-1.0.2-2.el6.x86_64
freerdp-plugins-1.0.2-2.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
Try to connect to windows 2012 server via xfreerdp :

xfreerdp -0 -u <MYUSER> <SERVER-IP>:3389

Actual results:
xfreerdp crashes.

Expected results:
xfreerdp should connect to windows machine.


Additional info:
xfreerdp crashes with below backtrace :

(gdb) bt
#0  0x0000003df780f5db in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1  0x00000030b8808aab in fatal_handler (signum=11) at /usr/src/debug/freerdp-1.0.2/libfreerdp-utils/signal.c:52
#2  <signal handler called>
#3  0x00000030b901cd08 in crypto_cert_subject_alt_name (xcert=<value optimized out>, count=0x7faa5b1e8948, lengths=0x7faa5b1e8940)
    at /usr/src/debug/freerdp-1.0.2/libfreerdp-core/crypto.c:446
#4  0x00000030b9031dd5 in tls_verify_certificate (tls=0x7faa54026040, cert=0x7faa5405a710, hostname=0x7faa54000f60 "10.132.0.19")
    at /usr/src/debug/freerdp-1.0.2/libfreerdp-core/tls.c:265
#5  0x00000030b901e2b9 in credssp_get_public_key (credssp=0x7faa540562e0)
    at /usr/src/debug/freerdp-1.0.2/libfreerdp-core/credssp.c:139
#6  0x00000030b901e4a8 in credssp_authenticate (credssp=0x7faa540562e0)
    at /usr/src/debug/freerdp-1.0.2/libfreerdp-core/credssp.c:163
#7  0x00000030b90340da in transport_connect_nla (transport=0x719060)
    at /usr/src/debug/freerdp-1.0.2/libfreerdp-core/transport.c:118
#8  0x00000030b902ea29 in rdp_client_connect (rdp=0x717220) at /usr/src/debug/freerdp-1.0.2/libfreerdp-core/connection.c:91
#9  0x00000030b902a5e1 in freerdp_connect (instance=<value optimized out>)
    at /usr/src/debug/freerdp-1.0.2/libfreerdp-core/freerdp.c:49
#10 0x000000000041036b in xfreerdp_run (instance=0x717090) at /usr/src/debug/freerdp-1.0.2/client/X11/xfreerdp.c:979
#11 0x00000000004106ac in thread_func (param=0x73b810) at /usr/src/debug/freerdp-1.0.2/client/X11/xfreerdp.c:1091
#12 0x0000003df78079d1 in start_thread (arg=0x7faa5b1e9700) at pthread_create.c:301
#13 0x0000003df70e88fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Comment 1 Siteshwar Vashisht 2015-03-05 09:18:18 UTC
Created attachment 998248 [details]
Fixes segfault while connecting to windows machine

Backported patch from https://github.com/FreeRDP/FreeRDP/commit/aa7b83ff1e97ac394f76b0968acc1d9f55a11d41

Comment 2 Ondrej Holy 2015-03-05 09:35:28 UTC
There is also bug for RHEL 7, see Bug 1186916.

Comment 4 zsarosi 2015-03-05 12:06:56 UTC
The problem can be solved (this might just be a workaround - I am not sure) if the command is started with the --ignore-certificate and without the -0 switch:

xfreerdp -u <MYUSER> --ignore-certificate <SERVER-IP>:3389

Comment 5 Ondrej Holy 2015-03-05 13:01:48 UTC
Thanks for notice. I don't think we want to ignore certificates generally, so this isn't solution (code to verify certificates should be fixed instead), but good workaround...

Comment 10 errata-xmlrpc 2016-05-10 19:44:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0756.html