grub2 — security advisory
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.
- Products
- grub2
- Affected versions
- 2.06-13, 2.06-13+deb12u1
- Fixed versions
- 2.06-13+deb12u2, 2.12-6
- CVEs
- CVE-2025-0622
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 23:12 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2025-0622
grub2
Fixed versions: 2.06-13+deb12u2
grub2
Fixed versions: 2.12-6
grub2
Fixed versions: 2.12-6
Complete source record
{
"id": "02424c063b09f8cff73a4f7fafff0069d8110311b4a315948bc772c1ff154ef8",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-0622",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2025-0622",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2025-0622",
"products": [
{
"name": {
"value": "grub2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.06-13+deb12u2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "2.06-13",
"evidence": "/affected/0/versions"
},
{
"value": "2.06-13+deb12u1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "grub2",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.12-6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "grub2",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.12-6",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2025-0622",
"aliases": [
"DEBIAN-CVE-2025-0622"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.06-13+deb12u2"
}
]
}
],
"package": {
"name": "grub2",
"purl": "pkg:deb/debian/grub2?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"2.06-13",
"2.06-13+deb12u1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-0622.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.12-6"
}
]
}
],
"package": {
"name": "grub2",
"purl": "pkg:deb/debian/grub2?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-0622.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.12-6"
}
]
}
],
"package": {
"name": "grub2",
"purl": "pkg:deb/debian/grub2?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-0622.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T17:47:37.462790568Z",
"provider": "osv",
"upstream": [
"CVE-2025-0622"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2025-0622"
]
},
"related_cves": [
{
"value": "CVE-2025-0622",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 417993,
"published_at": "2025-02-18T20:15:23.57+00:00"
}