]> Savannah Git Hosting - grub.git/commit
gettext/gettext: Unregister gettext command on module unload
authorAlec Brown <alec.r.brown@oracle.com>
Thu, 21 Aug 2025 21:14:06 +0000 (21:14 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Nov 2025 13:34:44 +0000 (14:34 +0100)
commit8ed78fd9f0852ab218cc1f991c38e5a229e43807
treee72c8ea219062401a5d2da4cac72eac7f288d124
parent10e58a14db20e17d1b6a39abe38df01fef98e29d
gettext/gettext: Unregister gettext command on module unload

When the gettext module is loaded, the gettext command is registered but
isn't unregistered when the module is unloaded. We need to add a call to
grub_unregister_command() when unloading the module.

Fixes: CVE-2025-61662
Reported-by: Alec Brown <alec.r.brown@oracle.com>
Signed-off-by: Alec Brown <alec.r.brown@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/gettext/gettext.c