[PATCH] bus: fsl-mc: fix use-after-free in driver_override_show()
Christophe Leroy (CS GROUP)
chleroy at kernel.org
Wed Jan 7 18:41:51 AEDT 2026
On Wed, 03 Dec 2025 01:44:38 +0800, Gui-Dong Han wrote:
> The driver_override_show() function reads the driver_override string
> without holding the device_lock. However, driver_override_store() uses
> driver_set_override(), which modifies and frees the string while holding
> the device_lock.
>
> This can result in a concurrent use-after-free if the string is freed
> by the store function while being read by the show function.
>
> [...]
Applied, thanks!
[1/1] bus: fsl-mc: fix use-after-free in driver_override_show()
commit: 148891e95014b5dc5878acefa57f1940c281c431
Best regards,
--
Christophe Leroy (CS GROUP) <chleroy at kernel.org>
More information about the Linuxppc-dev
mailing list