net/net: Unregister net_set_vlan command on unload
PATCH 3/8 net/net: Unregister net_set_vlan command on unload
From: Thomas Frauendorfer | Miray Software <[email protected]>
The commit 954c48b9c (net/net: Add net_set_vlan command) added command net_set_vlan to the net module. Unfortunately the commit only added the grub_register_command() call on module load but missed the grub_unregister_command() on unload. Let's fix this.
Fixes CVE-2025-54770
Fixes 954c48b9c (net/net: Add net_set_vlan command)
Signed-off-by Thomas Frauendorfer | Miray Software <[email protected]>
Reviewed-by Daniel Kiper <[email protected]>
--- grub-core/net/net.c | 1 + 1 file changed, 1 insertion(+)
grub-core/net/net.c +1 -0
@@ -2146,6 +2146,7 @@ GRUB_MOD_FINI(net)grub_unregister_command (cmd_deladdr);grub_unregister_command (cmd_addroute);grub_unregister_command (cmd_delroute); +grub_unregister_command (cmd_setvlan);grub_unregister_command (cmd_lsroutes);grub_unregister_command (cmd_lscards);grub_unregister_command (cmd_lsaddr);
Signature · 7 lines
2.11.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel