Re: [PATCH -next] firmware: imx: secure-enclave: fix list UAF in init_device_context()
From: Frank Li
Date: Fri May 08 2026 - 10:46:28 EST
On Fri, 08 May 2026 11:29:45 +0530, Pankaj Gupta wrote:
> init_device_context() added a new device context to priv->dev_ctx_list
> before calling init_se_shared_mem(). If initialization failed, the
> device context was freed without being removed from the list, leaving
> behind a dangling list entry.
>
> Move the list insertion until after all fallible initialization has
> completed successfully.
>
> [...]
Applied, thanks!
[1/1] firmware: imx: secure-enclave: fix list UAF in init_device_context()
commit: 66f3c3f91c48238dd13543cd428879b9184c80f4
Best regards,
--
Frank Li <Frank.Li@xxxxxxx>