aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2021-02-01 09:32:47 +0100
committerMauro Carvalho Chehab <[email protected]>2021-03-11 11:59:41 +0100
commitc49206786ee252f28b7d4d155d1fff96f145a05d (patch)
tree05fd6c377af8a4ce9a5a37207a08f4e630320655 /tools
parent13a79f14ab285120bc4977e00a7c731e8143f548 (diff)
media: dvb-usb: Fix use-after-free access
dvb_usb_device_init() copies the properties to the own data, so that the callers can release the original properties later (as done in the commit 299c7007e936 ("media: dw2102: Fix memleak on sequence of probes")). However, it also stores dev->desc pointer that is a reference to the original properties data. Since dev->desc is referred later, it may result in use-after-free, in the worst case, leading to a kernel Oops as reported. This patch addresses the problem by allocating and copying the properties at first, then get the desc from the copied properties. Reported-and-tested-by: Stefan Seyfried <[email protected]> BugLink: http://bugzilla.opensuse.org/show_bug.cgi?id=1181104 Reviewed-by: Robert Foss <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions