Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1205752 - (CVE-2015-2704) CVE-2015-2704 realmd: untrusted data is used when configuring sssd.conf and/or smb.conf
CVE-2015-2704 realmd: untrusted data is used when configuring sssd.conf and/o...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20150218,repor...
: Security
Depends On: 1205754 1233011
Blocks: 1205773 1210268
  Show dependency treegraph
 
Reported: 2015-03-25 11:01 EDT by Vasyl Kaigorodov
Modified: 2015-11-23 07:42 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A flaw was found in the way realmd parsed certain input when writing configuration into the sssd.conf or smb.conf file. A remote attacker could use this flaw to inject arbitrary configurations into these files via a newline character in an LDAP response.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-20 00:59:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Validate text from LDAP (3.71 KB, patch)
2015-04-14 07:06 EDT, Stef Walter
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2184 normal SHIPPED_LIVE Moderate: realmd security, bug fix, and enhancement update 2015-11-19 02:51:28 EST

  None (edit)
Description Vasyl Kaigorodov 2015-03-25 11:01:48 EDT
It was reported to upstream that realmd is using untrusted data when configuring sssd.conf and/or smb.conf:

https://bugs.freedesktop.org/show_bug.cgi?id=89207

No patches are available at the time of writing.
Comment 1 Stef Walter 2015-04-14 05:45:38 EDT
Commits available upstream.
Comment 2 Stef Walter 2015-04-14 06:31:20 EDT
Relevant commits:

commit 6d5ac47cc22c273a55bea89dffbe537a3c86ad2c
Author: Stef Walter <stefw@redhat.com>
Date:   Tue Apr 14 11:30:53 2015 +0200

    service: Limit the characters we read from LDAP
    
    We strictly limit this to characters expected in domain names.


commit 502980a8a17eddb5fe3d16bcad229a6d0ba11065
Author: Stef Walter <stefw@redhat.com>
Date:   Sat Apr 11 13:29:40 2015 +0200

    service: Only accept specific characters when parsing MSCLDAP response
    
    This provides an extra layer of protection against injecting
    odd characters into configuration files.
Comment 3 Stef Walter 2015-04-14 07:06:17 EDT
Created attachment 1014276 [details]
Validate text from LDAP

Combined patch for this issue.
Comment 5 Fedora Update System 2015-04-22 18:55:31 EDT
realmd-0.16.0-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 6 Fedora Update System 2015-05-08 03:41:54 EDT
realmd-0.15.2-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 10 errata-xmlrpc 2015-11-18 22:43:51 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:2184 https://rhn.redhat.com/errata/RHSA-2015-2184.html

Note You need to log in before you can comment on or make changes to this bug.