Re: [PATCH v3] pktcdvd: Fix possible Spectre-v1 for pkt_devs
From: Jens Axboe <axboe@kernel.dk>
Date: 2018-07-28 15:08:37
Also in:
lkml
From: Jens Axboe <axboe@kernel.dk>
Date: 2018-07-28 15:08:37
Also in:
lkml
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