[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176357169020.3229299.14175005699966083724.b4-ty@oracle.com>
Date: Wed, 19 Nov 2025 23:16:03 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: "James E . J . Bottomley" <James.Bottomley@...senPartnership.com>,
moonafterrain@...look.com
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org, Yuhao Jiang <danisjiang@...il.com>
Subject: Re: [PATCH] scsi: aic94xx: fix use-after-free in device removal path
On Wed, 29 Oct 2025 00:29:04 +0800, moonafterrain@...look.com wrote:
> The asd_pci_remove() function fails to synchronize with pending tasklets
> before freeing the asd_ha structure, leading to a potential use-after-free
> vulnerability.
>
> When a device removal is triggered (via hot-unplug or module unload), race condition can occur.
>
> The fix adds tasklet_kill() before freeing the asd_ha structure, ensuring
> all scheduled tasklets complete before cleanup proceeds.
>
> [...]
Applied to 6.19/scsi-queue, thanks!
[1/1] scsi: aic94xx: fix use-after-free in device removal path
https://git.kernel.org/mkp/scsi/c/f6ab594672d4
--
Martin K. Petersen
Powered by blists - more mailing lists