]> git.baikalelectronics.ru Git - kernel.git/commit
media: dvb_ca_en50221: avoid speculation from CA slot
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 16 Jun 2021 11:02:07 +0000 (13:02 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Jun 2021 07:24:10 +0000 (09:24 +0200)
commit7ac07d7fce931cc5ff72c5f496c77264ad8f3ebd
tree332cc9d45480a34ac4b702c31afd4d2466de1937
parentdcb054bc705e8db46d9417c4a68bf683e17542e3
media: dvb_ca_en50221: avoid speculation from CA slot

As warned by smatch:
drivers/media/dvb-core/dvb_ca_en50221.c:1392 dvb_ca_en50221_io_do_ioctl() warn: potential spectre issue 'ca->slot_info' [r] (local cap)

There's a potential of using a CAM ioctl for speculation.

The risk here is minimum, as only a small subset of DVB
boards have CI, with a CAM module installed. Also, exploiting
it would require a user capable of starting a DVB application.

There are probably a lot of easier ways to try to exploit.

Yet, it doesn't harm addressing it.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-core/dvb_ca_en50221.c