firmware: qcom: uefisecapp: fix efivars registration race
In the Linux kernel, the following vulnerability has been resolved: firmware: qcom: uefisecapp: fix efivars registration race Since the conversion to using the TZ allocator, the efivars service is registered before the memory pool has been allocated, something which can lead to a NULL-pointer dereference in case of a racing EFI variable access. Make sure that all resources have been set up before registering the efivars.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.21, 6.13.9
- CVEs
- CVE-2025-21998
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 17:35 UTC · Revision 1
Source evidence
firmware: qcom: uefisecapp: fix efivars registration race
core-osv · Original sourcePublished 3 Apr 2025, 07:19 UTC
In the Linux kernel, the following vulnerability has been resolved: firmware: qcom: uefisecapp: fix efivars registration race Since the conversion to using the TZ allocator, the efivars service is registered before the memory pool has been allocated, something which can lead to a NULL-pointer dereference in case of a racing EFI variable access. Make sure that all resources have been set up before registering the efivars.
osv:CVE-2025-21998
Kernel
Fixed versions: 6.12.21, 6.13.9
Complete source record
{
"id": "7b8bfce0afb9e249cebe248f1eb7b129fc0b175024a19650b2b1442e5bf5fedf",
"url": "https://osv.dev/vulnerability/CVE-2025-21998",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "firmware: qcom: uefisecapp: fix efivars registration race",
"summary": "In the Linux kernel, the following vulnerability has been resolved: firmware: qcom: uefisecapp: fix efivars registration race Since the conversion to using the TZ allocator, the efivars service is registered before the memory pool has been allocated, something which can lead to a NULL-pointer dereference in case of a racing EFI variable access. Make sure that all resources have been set up before registering the efivars.",
"evidence": "osv:CVE-2025-21998",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.21",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2025-21998",
"aliases": [
"CVE-2025-21998"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6612103ec35af6058bb85ab24dae28e119b3c055"
},
{
"fixed": "c4e37b381a7a243c298a4858fc0a5a74e737c79a"
},
{
"fixed": "f15a2b96a0e41c426c63a932d0e63cde7b9784aa"
},
{
"fixed": "da8d493a80993972c427002684d0742560f3be4a"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21998.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.11.0"
},
{
"fixed": "6.12.21"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21998.json"
}
}
],
"modified": "2026-10-28T02:30:31.013839360Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/c4e37b381a7a243c298a4858fc0a5a74e737c79a",
"https://git.kernel.org/stable/c/da8d493a80993972c427002684d0742560f3be4a",
"https://git.kernel.org/stable/c/f15a2b96a0e41c426c63a932d0e63cde7b9784aa",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21998.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-21998",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21998.json"
}
},
"related_cves": [
{
"value": "CVE-2025-21998",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 497876,
"published_at": "2025-04-03T07:19:02.272+00:00"
}