On Intel CPUs sysret to non-canonical address causes a fault on the sysret instruction itself after the stack pointer is set to user mode provided value but before the CPL is changed. Systems running on AMD CPUs are not vulnerable to this issue as sysret on AMD CPUs does not generate a fault before the CPL change. It was found that certain Linux kernel's ptrace subsystem code paths allow the tracer to set tracee's instruction pointer to non-canonical address which is later used on tracee's return to user mode via the sysret instruction, effectively bypassing the hardening introduced via the fixes for CVE-2005-1764 (introduced guard page between the end of the user-mode accessible virtual address space and the beginning of the non-canonical) and CVE-2006-0744 (system call handler hardening). An unprivileged local user could use this flaw to increase their privileges on the system. Upstream fix: ------------- -> https://git.kernel.org/linus/b9cd18de4db3c9ffa7e17b0dc0ca99ed5aa4d43a
Statement: This issue does not affect the versions of the Linux kernel as shipped with Red Hat Enterprise Linux 5.
This is now public: http://seclists.org/oss-sec/2014/q3/40
Created kernel tracking bugs for this issue: Affects: fedora-all [bug 1116477]
Acknowledgements: Red Hat would like to thank Andy Lutomirski for reporting this issue.
Dear Red Hat, could you please explain why RHEL5 kernel is not affected?
Hello, Vasily. (In reply to Vasily Averin from comment #13) > could you please explain why RHEL5 kernel is not affected? Red Hat Enterprise Linux 5 uses utrace which sets TIF_SIGPENDING when stopping the tracee and that is why iret path is always taken on return to user space. Hope that helps. -- Petr Matousek / Red Hat Product Security
kernel-3.15.4-200.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
This issue has been addressed in following products: MRG for RHEL-6 v.2 Via RHSA-2014:0913 https://rhn.redhat.com/errata/RHSA-2014-0913.html
This issue has been addressed in following products: Red Hat Enterprise Linux 7 Via RHSA-2014:0923 https://rhn.redhat.com/errata/RHSA-2014-0923.html
This issue has been addressed in following products: Red Hat Enterprise Linux 6.4 EUS - Server and Compute Node Only Via RHSA-2014:0925 https://rhn.redhat.com/errata/RHSA-2014-0925.html
This issue has been addressed in following products: Red Hat Enterprise Linux 6 Via RHSA-2014:0924 https://rhn.redhat.com/errata/RHSA-2014-0924.html
IssueDescription: It was found that the Linux kernel's ptrace subsystem allowed a traced process' instruction pointer to be set to a non-canonical memory address without forcing the non-sysret code path when returning to user space. A local, unprivileged user could use this flaw to crash the system or, potentially, escalate their privileges on the system. Note: The CVE-2014-4699 issue only affected systems using an Intel CPU.
kernel-3.14.13-100.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
This issue has been addressed in following products: Red Hat Enterprise Linux 6.2 AUS Via RHSA-2014:0949 https://rhn.redhat.com/errata/RHSA-2014-0949.html