archive mirror
 help / color / mirror / Atom feed
From: Takashi Iwai <>
To: Hyunwoo Kim <>
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: <> (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 <>

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.



      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:

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

  git send-email \ \ \ \ \ \ \

* 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).