Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579506 (CVE-2014-9770) - <sys-apps/systemd-233-r1: systemd / journald created world readable journal files
Summary: <sys-apps/systemd-233-r1: systemd / journald created world readable journal f...
Alias: CVE-2014-9770
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
Whiteboard: B4 [noglsa cve]
Depends on: CVE-2016-7795, CVE-2016-7796
  Show dependency tree
Reported: 2016-04-10 11:47 UTC by Agostino Sarubbo
Modified: 2017-10-08 19:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2016-04-10 11:47:09 UTC
From ${URL} :

systemd-journald from systemd v213 started creating world readable journals, allowing
local users to read sensitive system log entries.

While spotted by our users in
the problem was present and fixed in upstream systemd git...

Introduced by this commit in v213:

Fixed for volatile journals was done by this commit in v214:

Fixed for the current persistent journal by this commit in v229:

@maintainer(s): since the fixed package is already in the tree, please let us know if it is ready for the stabilization or not.
Comment 1 Mike Gilbert gentoo-dev 2016-04-10 17:08:01 UTC
The summary from the oss-security list is a bit misleading.

This issue only affects users that had been running systmed-213 at some point. The tmpfiles fragment in that version would recursively set the world access bits. This was fixed in systemd-214 by not setting permissions recursively in the tmpfiles fragment.

Another tmpfiles change in 229 partially addresses the issue of permissions on archived journal files.

Given the limited scope and minor severity of this issue, I see no real reason to stabilize 229.

If you want to release a GLSA for this, you can tell users to run the following to fix the permissions on existing files.

chmod -R o-rwx /var/log/journal/{machineid}/*

{machineid} is a UUID that is unique to each system.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2016-11-21 16:58:15 UTC
Based on comment #1 we are waiting that >=sys-apps/systemd-229 goes stable. Bug 595476 is the current bug to handle that.
Comment 3 Aaron Bauman (RETIRED) gentoo-dev 2017-10-08 19:55:23 UTC
GLSA Vote: No