Re: [PATCH] aros/hostdisk: Fix use-after-free bug during MsgPort deletion

Daniel Kiper <[email protected]> Mon, 29 Dec 2025 16:59:22 +0100
Newsgroups org.gnu.grub-devel
Message-ID <[email protected]>
On Mon, Dec 08, 2025 at 03:51:29PM +0530, Srish Srinivasan wrote:
> Inside grub_util_fd_open, a failure while creating an IO
> request or opening a device frees ret (the fd) before its
> MsgPort is deleted. This leads to a use-after-free scenario.
>
> Fix this by freeing ret after its MsgPort has been deleted.
>
> Signed-off-by: Srish Srinivasan <[email protected]>

Reviewed-by: Daniel Kiper <[email protected]>

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel