Grub2: use-after-free in grub_file_close()
A use-after-free vulnerability has been identified in the GNU GRUB (Grand Unified Bootloader). The flaw occurs because the file-closing process incorrectly retains a memory pointer, leaving an invalid reference to a file system structure. An attacker could exploit this vulnerability to cause grub to crash, leading to a Denial of Service. Possible data integrity or confidentiality compromise is not discarded.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-54771
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:52 UTC · Revision 1
Source evidence
Grub2: use-after-free in grub_file_close()
core-osv · Original sourcePublished 18 Nov 2025, 18:20 UTC
A use-after-free vulnerability has been identified in the GNU GRUB (Grand Unified Bootloader). The flaw occurs because the file-closing process incorrectly retains a memory pointer, leaving an invalid reference to a file system structure. An attacker could exploit this vulnerability to cause grub to crash, leading to a Denial of Service. Possible data integrity or confidentiality compromise is not discarded.
osv:CVE-2025-54771
Complete source record
{
"id": "9e4e2d83d8b9e685ad3321a9177fab0efb53d6381a7f338eca3f17ff2fc13be1",
"url": "https://osv.dev/vulnerability/CVE-2025-54771",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Grub2: use-after-free in grub_file_close()",
"summary": "A use-after-free vulnerability has been identified in the GNU GRUB (Grand Unified Bootloader). The flaw occurs because the file-closing process incorrectly retains a memory pointer, leaving an invalid reference to a file system structure. An attacker could exploit this vulnerability to cause grub to crash, leading to a Denial of Service. Possible data integrity or confidentiality compromise is not discarded.",
"evidence": "osv:CVE-2025-54771",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-54771",
"aliases": [
"CVE-2025-54771"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://https.git.savannah.gnu.org/git/grub.git/",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "d38d6a1a9b79427848976f53d474392cd29c2a71"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"versions": [
"grub-2.14",
"grub-2.14-rc1",
"grub-2.12",
"grub-2.12-rc1",
"grub-2.06",
"grub-2.06-rc1a",
"grub-2.06-rc1",
"grub-2.04",
"grub-2.04-rc1",
"grub-2.02",
"2.02",
"grub-2.02-rc2",
"2.02-rc2",
"grub-2.02-rc1",
"2.02-rc1",
"grub-2.02-beta3",
"2.02-beta3",
"grub-2.02-beta2",
"grub-2.02-beta1",
"2.00",
"1.99",
"1.98"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54771.json"
}
}
],
"modified": "2026-10-28T02:30:22.379684604Z",
"provider": "osv",
"references": [
"https://access.redhat.com/downloads/content/package-browser/",
"https://lists.gnu.org/archive/html/grub-devel/2025-11/msg00155.html",
"https://access.redhat.com/security/cve/CVE-2025-54771",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54771.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-54771",
"https://bugzilla.redhat.com/show_bug.cgi?id=2413823",
"https://git.savannah.gnu.org/git/grub.git"
],
"provider_metadata": {
"cwe_ids": [
"CWE-825"
],
"cna_assigner": "redhat",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54771.json"
}
},
"related_cves": [
{
"value": "CVE-2025-54771",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488795,
"published_at": "2025-11-18T18:20:40.35+00:00"
}