A flaw was found in the Linux kernels handling of clearing SELinux attributes on /proc/pid/attr files. An empty (null) write to this file can crash the system by causing the system to attempt to access unmapped kernel memory. This may lead to local DoS by panicing the system. Proposed patch: https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=0c461cb727d146c9ef2d3e86214f498b78b7d125 https://marc.info/?l=selinux&m=148588165923772&w=2
To be clear, the problem is not with libselinux but the kernel itself (see the proposed patch in the original problem description).
(In reply to Paul Moore from comment #2) > To be clear, the problem is not with libselinux but the kernel itself (see > the proposed patch in the original problem description). Ah, sorry, my fault. Fixed!
Statement: This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5, 6 due to a missing commit ( bb646cdb12e75d82258c2f2e7746d5952d3e321a ) which enabled changed system behavior. This issue does affect Red Hat Enteprise Linux 7 and MRG-2 kernels. A future Linux kernel updates for the respective releases may address this issue.
Acknowledgements: Name: Paul Moore (Red Hat Engineering)
Created kernel tracking bugs for this issue: Affects: fedora-all [bug 1422717]
This issue has been addressed in the following products: Red Hat Enterprise MRG 2 Via RHSA-2017:0932 https://access.redhat.com/errata/RHSA-2017:0932
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2017:0931 https://access.redhat.com/errata/RHSA-2017:0931
This issue has been addressed in the following products: Red Hat Enterprise Linux 7 Via RHSA-2017:0933 https://access.redhat.com/errata/RHSA-2017:0933