android_kernel_motorola_sm6375/drivers/media
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ricardo B. Marliere 47aa8fcd5e media: pvrusb2: fix use after free on context disconnection
[ Upstream commit ded85b0c0edd8f45fec88783d7555a5b982449c1 ]

Upon module load, a kthread is created targeting the
pvr2_context_thread_func function, which may call pvr2_context_destroy
and thus call kfree() on the context object. However, that might happen
before the usb hub_event handler is able to notify the driver. This
patch adds a sanity check before the invalid read reported by syzbot,
within the context disconnection call stack.

Reported-and-tested-by: [email protected]
Closes: https://lore.kernel.org/all/[email protected]/

Fixes: e5be15c638 ("V4L/DVB (7711): pvrusb2: Fix race on module unload")
Signed-off-by: Ricardo B. Marliere <[email protected]>
Acked-by: Mike Isely <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-01-25 14:34:26 -08:00
..
cec media: cec: core: don't set last_initiator if tx in progress 2023-06-28 10:18:40 +02:00
common
dvb-core media: dvb-core: Fix use-after-free due to race at dvb_register_device() 2023-06-28 10:18:36 +02:00
dvb-frontends media: dvb: symbol fixup for dvb_attach() 2023-09-23 10:59:55 +02:00
firewire
i2c media: ov2680: Fix regulators being left enabled on ov2680_power_on() errors 2023-09-23 10:59:51 +02:00
mc
mmc
pci media: cobalt: Use FIELD_GET() to extract Link Width 2023-11-28 16:50:16 +00:00
platform media: venus: hfi: add checks to handle capabilities from firmware 2023-11-28 16:50:21 +00:00
radio media: radio-shark: Add endpoint checks 2023-05-30 12:44:10 +01:00
rc media: sharp: fix sharp encoding 2023-11-28 16:50:21 +00:00
spi
tuners media: tuners: qt1010: replace BUG_ON with a regular error 2023-09-23 11:00:04 +02:00
usb media: pvrusb2: fix use after free on context disconnection 2024-01-25 14:34:26 -08:00
v4l2-core media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link() 2023-09-23 10:59:49 +02:00
Kconfig
Makefile