[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220916081124.GA189795@ubuntu>
Date: Fri, 16 Sep 2022 01:11:24 -0700
From: Hyunwoo Kim <imv4bel@...il.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Lubomir Rintel <lkundrak@...sk>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org, imv4bel@...il.com
Subject: Re: [PATCH] char: pcmcia: scr24x_cs: Fix use-after-free in
scr24x_fops
On Fri, Sep 16, 2022 at 08:59:44AM +0200, Arnd Bergmann wrote:
> This appears to introduce a new use-after-free, when the kref_put()
> frees the 'dev' structure and you unlock the mutex in that structure
> afterwards.
yes. Every patch I've submitted has this issue.
I'll replace the mutex with a global variable and submit a v2 patch that fixes other issues.
Powered by blists - more mailing lists