[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <167688619223.2031822.11362974798628061939.b4-ty@redhat.com>
Date: Mon, 20 Feb 2023 10:43:12 +0100
From: Benjamin Tissoires <benjamin.tissoires@...hat.com>
To: Rishi Gupta <gupt21@...il.com>, Jiri Kosina <jikos@...nel.org>,
Pietro Borrello <borrello@...g.uniroma1.it>,
Benjamin Tissoires <benjamin.tissoires@...hat.com>
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] HID: mcp-2221: prevent UAF in delayed work
On Thu, 16 Feb 2023 11:22:58 +0100, Benjamin Tissoires wrote:
> If the device is plugged/unplugged without giving time for mcp_init_work()
> to complete, we might kick in the devm free code path and thus have
> unavailable struct mcp_2221 while in delayed work.
>
> Canceling the delayed_work item is enough to solve the issue, because
> cancel_delayed_work_sync will prevent the work item to requeue itself.
>
> [...]
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-6.3/mcp2221), thanks!
[1/1] HID: mcp-2221: prevent UAF in delayed work
https://git.kernel.org/hid/hid/c/47e91fdfa511
Cheers,
--
Benjamin Tissoires <benjamin.tissoires@...hat.com>
Powered by blists - more mailing lists