CVE-2015-8844: Input Validation
A flaw was found in the linux kernel which could cause a kernel panic when restoring machine specific registers on the power pc platform. Incorrect transactional memory state registers could inadvertently change the call path on return from userspace and cause the kernel to enter an unknown state and panic defensively.
The message is usually as follows:
kernel BUG at arch/powerpc/kernel/tm.S:177
Call Trace: [c0000001cb41ba60] [c000000000015b40] .tmreclaimcurrent+0xa0/0x120 [c0000001cb41bb00] [c000000000018188] .gettmstackpointer+0x48/0x80 [c0000001cb41bb80] [c000000000025634] .handlertsignal64+0x64/0x7c0 [c0000001cb41bc70] [c000000000017db8] .dosignal+0x168/0x320 [c0000001cb41bdb0] [c0000000000180cc] .donotifyresume+0x8c/0x100
In this situation, the transactional memory state has not been initiated correctly for the handler to work, and the BUG() is triggered.
References (Fixes): https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=d2b9d2a5ad5ef04ff978c9923d19730cb05efd55
https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=7f821fc9c77a9b01fe7b1d6e72717b33d8d64142
Oss-sec post: http://seclists.org/oss-sec/2016/q2/64
Other sources
The signal implementation in the Linux kernel before 4.3.5 on powerpc platforms does not check for an MSR with both the S and T bits set, which allows local users to cause a denial of service (TM Bad Thing exception and panic) via a crafted application.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.5