Skip to content

media: dvb-usb: Fix UAF and memory leaks

Takashi Iwai linux-media lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: dvb-usb: Fix memory leak at error in dvb_usb_device_init()drivers/media/usb/dvb-usb/dvb-usb-init.c+31 -160 replies
2/2media: dvb-usb: Fix use-after-free accessdrivers/media/usb/dvb-usb/dvb-usb-init.c+13 -100 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchStefan SeyfriedRobert Foss
1/2
2/2Reported-and-tested-by R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] media: dvb-usb: Fix UAF and memory leaks

Hi,

here is a revised patch set to address the use-after-free at disconnecting a USB DVB device that was recently reported on openSUSE Bugzilla. The bug itself seems to be a long-standing one, and I spotted another memory leak there, which is covered in the first patch.

This revision addressed the double-free bug Sean pointed.

I added Robert's R-b tag only to patch#2, as patch#1 differs from the v1 significantly.

thanks,

Takashi

===

Takashi Iwai (2):
media: dvb-usb: Fix memory leak at error in dvb_usb_device_init()
media: dvb-usb: Fix use-after-free access

 drivers/media/usb/dvb-usb/dvb-usb-init.c | 70 +++++++++++++++---------
 1 file changed, 44 insertions(+), 26 deletions(-)
Signature · 1 line
2.26.2