lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250701182722.1a932ed6@kernel.org>
Date: Tue, 1 Jul 2025 18:27:22 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: "Peter GJ. Park" <gyujoon.park@...sung.com>
Cc: pabeni@...hat.com, andrew+netdev@...n.ch, davem@...emloft.net,
 edumazet@...gle.com, linux-kernel@...r.kernel.org,
 linux-usb@...r.kernel.org, netdev@...r.kernel.org, oneukum@...e.com
Subject: Re: [PATCH net v2] net: usb: usbnet: fix use-after-free in race on
 workqueue

On Fri, 27 Jun 2025 19:59:53 +0900 Peter GJ. Park wrote:
> When usbnet_disconnect() queued while usbnet_probe() processing,
> it results to free_netdev before kevent gets to run on workqueue,
> thus workqueue does assign_work() with referencing freeed memory address.
> 
> For graceful disconnect and to prevent use-after-free of netdev pointer,
> the fix adds canceling work and timer those are placed by usbnet_probe()

Discussion on the v1 thread is ongoing, please repost once it concludes.
-- 
pw-bot: cr

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ