]> git.ipfire.org Git - thirdparty/grub.git/commit
gettext: Remove variables hooks on module unload
authorB Horn <b@horn.uk>
Fri, 1 Nov 2024 23:52:06 +0000 (23:52 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 13 Feb 2025 14:45:55 +0000 (15:45 +0100)
commit7580addfc8c94cedb0cdfd7a1fd65b539215e637
treeda56ff3ad9cc0d12a0f45c65f9084038ff27201f
parent9c16197734ada8d0838407eebe081117799bfe67
gettext: Remove variables hooks on module unload

The gettext module does not entirely cleanup after itself in
its GRUB_MOD_FINI() leaving a few variables hooks in place.
It is not possible to unload gettext module because normal
module depends on it. Though fix the issues for completeness.

Fixes: CVE-2025-0622
Reported-by: B Horn <b@horn.uk>
Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/gettext/gettext.c