Re: [PATCH v2 0/2] ata: pata_parport: fix UAF on protocol module unload
From: Niklas Cassel
Date: Wed Sep 09 2026 - 07:10:01 EST
On Tue, 08 Sep 2026 19:47:26 +0800, Pei Xiao wrote:
> This series fixes use-after-free issues in pata_parport when a protocol
> module goes away while pi_adapter devices created by it are still
> attached.
>
> Patch 1 pins the protocol module before the device becomes visible.
> Previously try_module_get() ran after device_register(), so a forced
> module unload in between left pi->proto dangling from the moment the
> device appeared on the bus.
>
> [...]
Applied to libata/linux.git (for-7.4), thanks!
[1/2] ata: pata_parport: pin the protocol module before device_register()
https://git.kernel.org/libata/linux/c/5d3355c7
[2/2] ata: pata_parport: unregister devices on protocol unregister
https://git.kernel.org/libata/linux/c/d82c5cf6
Kind regards,
Niklas