From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E68F0C54EBC for ; Tue, 10 Jan 2023 14:20:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238301AbjAJOUi (ORCPT ); Tue, 10 Jan 2023 09:20:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234678AbjAJOUe (ORCPT ); Tue, 10 Jan 2023 09:20:34 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1EE45A883; Tue, 10 Jan 2023 06:20:32 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 890B04EE3E; Tue, 10 Jan 2023 14:20:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673360431; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+qPG8n7fAeshBPV3ZBBWFO/LfekJGLlXaJwhb+r3neM=; b=hj6A70xB4JxZGaG7X7xctqH+y0MV9WhUhDA8DZ20XdLg7hPqxOpbPO+nrv8nHr+XBs+GFZ 1wvI0GyfYakN7l7sWueTyMzMkAbNFTV6CpGGYupSQGvRKTNUuHGgnw+rau0C+KrS7hcf2m LrtW+qBRZsIzvW7wFzg5UWIDCMudPws= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673360431; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+qPG8n7fAeshBPV3ZBBWFO/LfekJGLlXaJwhb+r3neM=; b=9RpVeFFlo5G0hBYIAfIF4mmZsysp0lGNYxZNflgZYywVnARGHkwc+YJmQpMccQIC7bUGOB AGP6TlEmC2WTB8BQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 65EC01358A; Tue, 10 Jan 2023 14:20:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id C/kdGC90vWMqWgAAMHmgww (envelope-from ); Tue, 10 Jan 2023 14:20:31 +0000 Date: Tue, 10 Jan 2023 15:20:30 +0100 Message-ID: <87k01u8o9d.wl-tiwai@suse.de> From: Takashi Iwai To: Hyunwoo Kim Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-usb@vger.kernel.org, tiwai@suse.de Subject: Re: [PATCH] media: dvb-core: Fix use-after-free due to race condition occurring in dvb_ca_en50221 In-Reply-To: <20221121063308.GA33821@ubuntu> References: <20221121063308.GA33821@ubuntu> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Mon, 21 Nov 2022 07:33:08 +0100, Hyunwoo Kim wrote: > > If the device node of dvb_ca_en50221 is open() and the > device is disconnected, a UAF may occur when calling > close() on the device node. > > The root cause is that wake_up() and wait_event() for > dvbdev->wait_queue are not implemented. > > So implement wait_event() function in dvb_ca_en50221_release() > and add 'remove_mutex' which prevents race condition > for 'ca->exit'. > > Signed-off-by: Hyunwoo Kim Just wonder what happens on this. Is this still persistent with the latest upstream kernel? Note that CVE-2022-45919 has been assigned to this bug. thanks, Takashi