Skip to content
OpenAdvisories
Unscored CVE-2017-1000255 EUVD-2017-1516GHSA-7w7v-hmqg-8956

On Linux running on PowerPC hardware (Power8 or later) a user process can craft a signal frame and then do a sigreturn so that the kernel w…

Published Oct 30, 2017 · Updated Aug 5, 2024 · Assigned by mitre

Description

On Linux running on PowerPC hardware (Power8 or later) a user process can craft a signal frame and then do a sigreturn so that the kernel will take an exception (interrupt), and use the r1 value *from the signal frame* as the kernel stack pointer. As part of the exception entry the content of the signal frame is written to the kernel stack, allowing an attacker to overwrite arbitrary locations with arbitrary values. The exception handling does produce an oops, and a panic if panic_on_oops=1, but only after kernel memory has been over written. This flaw was introduced in commit: "5d176f751ee3 (powerpc: tm: Enable transactional memory (TM) lazily for userspace)" which was merged upstream into v4.9-rc1. Please note that kernels built with CONFIG_PPC_TRANSACTIONAL_MEM=n are not vulnerable.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 4.13.4-2 —
Debian 13 linux 4.13.4-2 —
Debian 12 linux 4.13.4-2 —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux-hwe 4.10.0-37.41~16.04.1 USN-3443-2
ReleasePackageFixed inAdvisory
RHEL 7 perf +18 4.14.0-49.el7a RHSA-2018:0654

Advisories 2

References