{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-0622","id":"CVE-2025-0622","title":"Grub2: command/gpg: use-after-free due to hooks not being removed on module unload","description":"A flaw was found in command/gpg. In some scenarios, hooks created by loaded modules are not removed when the related module is unloaded. This flaw allows an attacker to force grub2 to call the hooks once the module that registered it was unloaded, leading to a use-after-free vulnerability. If correctly exploited, this vulnerability may result in arbitrary code execution, eventually allowing the at","descriptionLong":"A flaw was found in command/gpg. In some scenarios, hooks created by loaded modules are not removed when the related module is unloaded. This flaw allows an attacker to force grub2 to call the hooks once the module that registered it was unloaded, leading to a use-after-free vulnerability. If correctly exploited, this vulnerability may result in arbitrary code execution, eventually allowing the attacker to bypass secure boot protections.","published":"2025-02-18T19:26:13.082Z","updated":"2026-11-05T15:17:06.437Z","reserved":"2025-01-21T16:25:15.532Z","status":"Deferred","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"redhat"},"metrics":[{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"redhat"},{"version":"3.1","score":6.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","rating":"medium","source":"redhat.com"}],"rating":"medium","products":["grub2","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat OpenShift Container Platform 4"],"affectedProducts":[{"vendor":"","product":"grub2","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","versionType":"semver","lessThanOrEqual":"2.12"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","defaultStatus":"affected","versions":[{"version":"1:2.12-15.el10_0","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","defaultStatus":"affected","versions":[{"version":"1:2.06-104.el9_6","lessThan":"*","versionType":"rpm","status":"unaffected"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","defaultStatus":"unknown","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","defaultStatus":"unknown","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","defaultStatus":"affected","versions":[],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:16154","tags":["vendor-advisory","x_refsource_REDHAT","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2025:6990","tags":["vendor-advisory","x_refsource_REDHAT","advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-0622","tags":["vdb-entry","x_refsource_REDHAT","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2345865","tags":["issue-tracking","x_refsource_REDHAT","report"]},{"url":"https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00283,"epssPercentile":0.21166,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-0622","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0622","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-0622","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-0622","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}