Bug 1611119 (CVE-2018-14348) - CVE-2018-14348 libcgroup: cgrulesengd creates log files with insecure permissions
Summary: CVE-2018-14348 libcgroup: cgrulesengd creates log files with insecure permiss...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-14348
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1611121 1611122 1612122
Blocks: 1611124
TreeView+ depends on / blocked
 
Reported: 2018-08-02 06:03 UTC by Sam Fowler
Modified: 2019-09-29 14:46 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-06 19:19:19 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:2047 0 None None None 2019-08-06 12:07:16 UTC

Description Sam Fowler 2018-08-02 06:03:28 UTC
The cgrulesengd daemon (cgred) in libcgroup through version 0.41 creates log files (/var/log/cgred) with world readable and writable permissions (0o666) due to a reset of the file mode creation mask (umask(0)) in the daemon/cgrulesengd.c:cgre_start_daemon() function.


Upstream Patch:

https://sourceforge.net/p/libcg/libcg/ci/0d88b73d189ea3440ccaab00418d6469f76fa590/

Comment 1 Sam Fowler 2018-08-02 06:04:14 UTC
Created libcgroup tracking bugs for this issue:

Affects: fedora-all [bug 1611121]

Comment 3 Riccardo Schirone 2018-08-03 13:08:31 UTC
Fedora is not affected as it disables the daemon, through the `--disable-daemon` option in the configure script, thus it does not contain the cgrulesengd binary.

Comment 5 Riccardo Schirone 2018-08-03 14:32:34 UTC
In RHEL 7 default options in /etc/sysconfig/cgred, which are used when the daemon is started through systemd, use the syslog facility, thus the log file is not created by the daemon itself, making it not vulnerable to this flaw by default.

Comment 7 errata-xmlrpc 2019-08-06 12:07:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2019:2047 https://access.redhat.com/errata/RHSA-2019:2047

Comment 8 Product Security DevOps Team 2019-08-06 19:19:19 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-14348


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