Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3652981pxb; Mon, 1 Feb 2021 00:37:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJweLimLxa4eC8tLAHUXrnZqTVWF1p+G1t5qgH7aQdyYhsjjBLaohaCqmWuYNqFnVD5pHG+q X-Received: by 2002:aa7:d1d7:: with SMTP id g23mr17607152edp.6.1612168668943; Mon, 01 Feb 2021 00:37:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612168668; cv=none; d=google.com; s=arc-20160816; b=l62f+Bj3oEf4sqwEsKN195DnzL96i0vpRfJpLAy49qD3MZJ51fSPBhFi3nO+MLGBsy i6k0DEpHMdHcQh6r+Qga1LGdP5nsZxN03crdtCeUA71DBJr7gJWMRRtlUbD0AiP1HyTG d0nHOqO9UIroJaWHL9ehaRrsi7+DorlbEp9g9PZOLpURrrcJ2gS8hwsip6u4im6Bw+C+ xOOgnhJUkKBRNQgNu2P51DwL3Zaoa5VJ3hKQguRwGyTaJhY+bb6p9TPucXZOzIx97TxI LARTOY//ecBZoS8LigVw/gzjcVtDK+uLMlVmVvB6vSjqWlRqkNY4LdPpzDUSrFUYOaba P7bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DCOyw3zpGrfMJYYzVzpeuSBSe9tzwlBImSIrIvCA3Xg=; b=cn0WxzHZjWTf3VXCJsrcB3nI8UiRDu6GIrdcF0afDB2iDBIRrRFYBjAG/HNk9J1KBb AXrGgqbViPH314BAc/LuP0MfSADZ45+C5WY/0TlnoUMgZy4RLo0nGFAf/YnD35PJhsgx uS+D+04RRkhNmCUPwWe7gnZnJ6DpQXCn9bociGOAvmKrUkiyRDkQ7BuNb2SHOlXvQ8b7 LdbUxfwS/4wdIKrifWdMdYwZsnZUor8/gu3y7UPRi90Uwk/ovyW5BocdE9AtI8G5R4op zfNxb6yuYnsi5ctYhFr7syRzRUsuF9DWVIj2rHQ2Jm1BSxPyz98jXE6Ez8A23sN59dBA xj0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id op4si9706416ejb.545.2021.02.01.00.37.25; Mon, 01 Feb 2021 00:37:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232509AbhBAIdd (ORCPT + 99 others); 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.26.2