linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Hyunwoo Kim <v4bel@theori.io>
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
Date: Tue, 10 Jan 2023 15:20:30 +0100	[thread overview]
Message-ID: <87k01u8o9d.wl-tiwai@suse.de> (raw)
In-Reply-To: <20221121063308.GA33821@ubuntu>

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 <v4bel@theori.io>

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

      reply	other threads:[~2023-01-10 14:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-21  6:33 [PATCH] media: dvb-core: Fix use-after-free due to race condition occurring in dvb_ca_en50221 Hyunwoo Kim
2023-01-10 14:20 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k01u8o9d.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=v4bel@theori.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).