Re: [PATCH v3] pktcdvd: Fix possible Spectre-v1 for pkt_devs

From: Jens Axboe
Date: Sat Jul 28 2018 - 11:08:37 EST


On 7/27/18 10:20 PM, Jinbum Park wrote:
> User controls @dev_minor which to be used as index of pkt_devs.
> So, It can be exploited via Spectre-like attack. (speculative execution)
>
> This kind of attack leaks address of pkt_devs, [1]
> It leads an attacker to bypass security mechanism such as KASLR.
>
> So sanitize @dev_minor before using it to prevent attack.
>
> [1] https://github.com/jinb-park/linux-exploit/
> tree/master/exploit-remaining-spectre-gadget/leak_pkt_devs.c

Applied for 4.19, thanks.

--
Jens Axboe