]> git.ipfire.org Git - thirdparty/grub.git/commit
normal/main: Unregister commands on module unload
authorAlec Brown <alec.r.brown@oracle.com>
Thu, 21 Aug 2025 21:14:07 +0000 (21:14 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Nov 2025 13:34:44 +0000 (14:34 +0100)
commit05d3698b8b03eccc49e53491bbd75dba15f40917
tree63a95af44f5cfb1c49013b2416c810b11b373c0b
parent8ed78fd9f0852ab218cc1f991c38e5a229e43807
normal/main: Unregister commands on module unload

When the normal module is loaded, the normal and normal_exit commands
are registered but aren't unregistered when the module is unloaded. We
need to add calls to grub_unregister_command() when unloading the module
for these commands.

Fixes: CVE-2025-61663
Fixes: CVE-2025-61664
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/normal/main.c