Bug 1280236
| Summary: | kernel: Unprivileged user can freeze journald [fedora-all] | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Adam Mariš <amaris> |
| Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 23 | CC: | ebiederm, gansalmon, itamar, jforbes, jonathan, jwboyer, kernel-maint, madhu.chinakonda, mchehab |
| Target Milestone: | --- | Keywords: | Security, SecurityTracking |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Release Note | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-12-11 18:18:11 UTC | Type: | --- |
| 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: | 1280234 | ||
|
Description
Adam Mariš
2015-11-11 10:02:04 UTC
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 ;) |