Resolves: CVE-2024-45781 CVE-2024-45783 CVE-2024-45778 Resolves: CVE-2024-45775 CVE-2024-45780 CVE-2024-45774 Resolves: CVE-2025-0690 CVE-2025-1118 CVE-2024-45782 Resolves: CVE-2025-0624 CVE-2024-45779 CVE-2024-45776 Resolves: CVE-2025-0622 CVE-2025-0677 Resolves: #RHEL-80691 Resolves: #RHEL-80690 Resolves: #RHEL-80689 Resolves: #RHEL-80687 Resolves: #RHEL-80686 Signed-off-by: Leo Sandoval <lsandova@redhat.com> Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: B Horn <b@horn.uk>
|
|
Date: Tue, 11 Feb 2025 15:27:10 -0600
|
|
Subject: [PATCH] net: Unregister net_default_ip and net_default_mac variables
|
|
hooks on unload
|
|
|
|
The net module is a dependency of normal. So, it shouldn't be possible
|
|
to unload the net. Though unregister variables hooks as a precaution.
|
|
It also gets in line with unregistering the other net module hooks.
|
|
|
|
Signed-off-by: B Horn <b@horn.uk>
|
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|
---
|
|
grub-core/net/net.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/grub-core/net/net.c b/grub-core/net/net.c
|
|
index fdec64d55..9959a2ae8 100644
|
|
--- a/grub-core/net/net.c
|
|
+++ b/grub-core/net/net.c
|
|
@@ -2221,6 +2221,8 @@ GRUB_MOD_FINI(net)
|
|
|
|
grub_register_variable_hook ("net_default_server", 0, 0);
|
|
grub_register_variable_hook ("pxe_default_server", 0, 0);
|
|
+ grub_register_variable_hook ("net_default_ip", 0, 0);
|
|
+ grub_register_variable_hook ("net_default_mac", 0, 0);
|
|
|
|
grub_bootp_fini ();
|
|
grub_dns_fini ();
|