]> www.infradead.org Git - users/jedix/linux-maple.git/commit
CVE-2015-666: Revert "sched/x86_64: Don't save flags on context switch"
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 26 Aug 2015 15:35:28 +0000 (08:35 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 26 Aug 2015 15:54:50 +0000 (08:54 -0700)
commit31280baf21841b4560a1f17a8a301c6d6e53d39f
treeb64ca4b96cdb9c2b1c9e9d6675b568271d8cfbe3
parent37b9ef52181ae0c69aeaa7c6504ff472f4896819
CVE-2015-666: Revert "sched/x86_64: Don't save flags on context switch"

This reverts commit 2c7577a7583747c9b71f26dced7f696b739da745.

CVE Request: Linux x86_64 NT flag issue

When I fixed Linux's NT flag handling, I added an optimization to
Linux 3.19 and up.  A malicious 32-bit program might be able to leak
NT into an unrelated task.  On a CONFIG_PREEMPT=y kernel, this is a
straightforward DoS.  On a CONFIG_PREEMPT=n kernel, it's probably
still exploitable for DoS with some more care.

I believe that this could be used for privilege escalation, too, but
it won't be easy.

The fix is just to revert the optimization:

Orabug: 21689349
CVE:  CVE-2015-666

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
arch/x86/include/asm/switch_to.h