{"schemaVersion":3,"id":"CVE-2025-0622","aliases":["UBUNTU-CVE-2025-0622","DEBIAN-CVE-2025-0622"],"status":"published","duplicateOf":null,"title":null,"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 attacker to bypass secure boot protections.","dates":{"published":"2025-02-18T19:26:13.082Z","modified":"2026-06-29T23:24:43.925Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":1.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":1.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00283,"percentile":0.19428,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00283},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00283,"percentile":0.19428}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00283,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00283,"percentile":0.19428}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"debian","product":"grub2","name":"grub2","label":"grub2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/grub2","purlType":"deb","versions":[{"text":"< 2.06-13+deb12u2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.12-6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.06-13+deb12u2 | < 2.12-6","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grub2","name":"grub2","label":"grub2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grub2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grub2-signed","name":"grub2-signed","label":"grub2-signed","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grub2-signed","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"grub2-unsigned","name":"grub2-unsigned","label":"grub2-unsigned","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/grub2-unsigned","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:16154","label":"access.redhat.com/errata/RHSA-2025:16154","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2025:6990","label":"access.redhat.com/errata/RHSA-2025:6990","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-0622","label":"access.redhat.com/security/cve/CVE-2025-0622","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2345865","label":"bugzilla.redhat.com/show_bug.cgi?id=2345865","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html","label":"lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html","hostname":"lists.gnu.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2025-0622","label":"ubuntu.com/security/CVE-2025-0622","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-0622","label":"www.cve.org/CVERecord?id=CVE-2025-0622","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-0622","label":"security-tracker.debian.org/tracker/CVE-2025-0622","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:14822-1","RHSA-2025:16154","RHSA-2025:6990","SUSE-SU-2025:01961-1","SUSE-SU-2025:0586-1","SUSE-SU-2025:0587-1","SUSE-SU-2025:0588-1","SUSE-SU-2025:0607-1","SUSE-SU-2025:0629-1","SUSE-SU-2025:20511-1","SUSE-SU-2025:20863-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:14822-1","SUSE-SU-2025:01961-1","SUSE-SU-2025:0586-1","SUSE-SU-2025:0587-1","SUSE-SU-2025:0588-1","SUSE-SU-2025:0607-1","SUSE-SU-2025:0629-1","SUSE-SU-2025:20511-1","SUSE-SU-2025:20863-1"]},"timeline":[{"kind":"published","date":"2025-02-18T19:26:13.082Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-06-29T23:24:43.925Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T06:19:04.785Z","stale":false,"partial":false}}