Fedora Account System
Red Hat Associate
Red Hat Customer
This is an automatically created tracking bug! It was created to ensure that one or more security vulnerabilities are fixed in affected versions of Fedora. For comments that are specific to the vulnerability please use bugs filed against the "Security Response" product referenced in the "Blocks" field. For more information see: http://fedoraproject.org/wiki/Security/TrackingBugs When submitting as an update, use the fedpkg template provided in the next comment(s). This will include the bug IDs of this tracking bug as well as the relevant top-level CVE bugs. Please also mention the CVE IDs being fixed in the RPM changelog and the fedpkg commit message. NOTE: this issue affects multiple supported versions of Fedora. While only one tracking bug has been filed, please correct all affected versions at the same time. If you need to fix the versions independent of each other, you may clone this bug as appropriate. Reproducers, if any, will remain confidential and never be made public, unless done so by the security team. [bug automatically created by: add-tracking-bugs]
Use the following template to for the 'fedpkg update' request to submit an update for this issue as it contains the top-level parent bug(s) as well as this tracking bug. This will ensure that all associated bugs get updated when new packages are pushed to stable. ===== # bugfix, security, enhancement, newpackage (required) type=security # testing, stable request=testing # Bug numbers: 1234,9876 bugs=1280234,1280236 # Description of your update notes=Security fix for # Enable request automation based on the stable/unstable karma thresholds autokarma=True stable_karma=3 unstable_karma=-3 # Automatically close bugs when this marked as stable close_bugs=True # Suggest that users restart after update suggest_reboot=False ====== Additionally, you may opt to use the bodhi update submission link(s) instead: https://bodhi.fedoraproject.org/updates/new?type_=security&bugs=1280234,1280236
Eric, this one seems to be related to CLONE_NEWUSER and mandatory locking. See https://github.com/systemd/systemd/issues/1822. Do you have any ideas here?
It looks like this has been fixed in journald. The presence of mandatory locking is orthogonal to user namespaces, so fixing this in journald was certainly necessary. User namespaces in this case only made this issue in journald easier to reproduce. It is not immediately clear to me if user namespaces should prevent mandatory locking from being set on filesystems. There are details of it's design that are suggestive either way. I will dig into it on the kernel side. Thank you for the heads up.
Eric, I believe you've approached this from the kernel side with this commit: https://git.samba.org/jlayton/linux.git/?p=jlayton/linux.git;a=commit;h=95ace75414f312f9a7b93d873f386987b92a5301 is that correct? FWIW, I think the fix in journald solves the immediate CVE itself, but I wanted to come back and see if we had an approach on the kernel side too.
Actually it is the previous commit that addresses this. https://git.samba.org/jlayton/linux.git/?p=jlayton/linux.git;a=commit;h=9e8925b67a809bb27ce4b7d352d67f25cf1d7fc5 I recommend that support for mandatory locking be disabled at compile time for all kernels going forward. When a file system is mounted in such a way that mandatory locking is enabled any user on that filesystem can enable mandatory locking on one of those files and cause this issue (no user namespaces required). So either mandatory locking is unused (and we should disable it to reduce attack surface) or there is nothing we can do from the kernel side.
Hm... I guess we can try that in rawhide once it lands in Linus' tree. I suspect people will object, as many don't like the 'nuke from orbit' approach. Either way, I'm closing this CVE out as CURRENTRELEASE.
In this case I believe 'nuke from orbit' is appropriate because we are talking about the dark side of a small isolated moon that no one looks at or visits. So there is no one to care. Please let me know how the trial goes.
I will be sure to CC you on any bugs filed from the trial in rawhide ;)