From patchwork Mon Feb 1 08:32:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 12058371 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8664C433DB for ; Mon, 1 Feb 2021 08:34:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5596B64DDC for ; Mon, 1 Feb 2021 08:34:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232480AbhBAIdd (ORCPT ); Mon, 1 Feb 2021 03:33:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:57284 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbhBAIdc (ORCPT ); Mon, 1 Feb 2021 03:33:32 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 812E6ACB7; Mon, 1 Feb 2021 08:32:50 +0000 (UTC) From: Takashi Iwai To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Seyfried , Robert Foss , Sean Young Subject: [PATCH v2 0/2] media: dvb-usb: Fix UAF and memory leaks Date: Mon, 1 Feb 2021 09:32:45 +0100 Message-Id: <20210201083247.10760-1-tiwai@suse.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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(-)