CVE-2021-46910
published high CVSS 3.1 · 7.0ARM: 9063/1: mm: reduce maximum number of CPUs if DEBUG_KMAP_LOCAL is enabled
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux2a15ba82fa6ca3f35502b3060f22118a938d2889 to < 5965ac11b1d5fcb38464728931649cd9df79c7c9 · 2a15ba82fa6ca3f35502b3060f22118a938d2889 to < d624833f5984d484c5e3196f34b926f9e71dafee · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.11 (affected) · 0 to < 5.11 (unaffected · semver) · 5.11.16 through 5.11.* (unaffected · semver) · 5.12 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: ARM: 9063/1: mm: reduce maximum number of CPUs if DEBUG_KMAP_LOCAL is enabled The debugging code for kmap_local() doubles the number of per-CPU fixmap slots allocated for kmap_local(), in order to use half of them as guard regions. This causes the fixmap region to grow downwards beyond the start of its reserved window if the supported number of CPUs is large, and collide with the newly added virtual DT mapping right below it, which is obviously not good. One manifestation of this is EFI boot on a kernel built with NR_CPUS=32 and CONFIG_DEBUG_KMAP_LOCAL=y, which may pass the FDT in highmem, resulting in block entries below the fixmap region that the fixmap code misidentifies as fixmap table entries, and subsequently tries to dereference using a phys-to-virt translation that is only valid for lowmem. This results in a cryptic splat such as the one below. ftrace: allocating 45548 entries in 89 pages 8<--- cut here --- Unable to handle kernel paging request at virtual address fc6006f0 pgd = (ptrval) [fc6006f0] *pgd=80000040207003, *pmd=00000000 Internal error: Oops: a06 [#1] SMP ARM Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 5.11.0+ #382 Hardware name: Generic DT based system PC is at cpu_ca15_set_pte_ext+0x24/0x30 LR is at __set_fixmap+0xe4/0x118 pc : [<c041ac9c>] lr : [<c04189d8>] psr: 400000d3 sp : c1601ed8 ip : 00400000 fp : 00800000 r10: 0000071f r9 : 00421000 r8 : 00c00000 r7 : 00c00000 r6 : 0000071f r5 : ffade000 r4 : 4040171f r3 : 00c00000 r2 : 4040171f r1 : c041ac78 r0 : fc6006f0 Flags: nZcv IRQs off FIQs off Mode SVC_32 ISA ARM Segment none Control: 30c5387d Table: 40203000 DAC: 00000001 Process swapper (pid: 0, stack limit = 0x(ptrval)) So let's limit CONFIG_NR_CPUS to 16 when CONFIG_DEBUG_KMAP_LOCAL=y. Also, fix the BUILD_BUG_ON() check that was supposed to catch this, by checking whether the region grows below the start address rather than above the end address.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is in ARM fixmap/kmap_local setup and is reached during local boot or local highmem kmap activity; there is no network protocol or remote packet path into this code. AC:H - Exploitation requires the rare non-default DEBUG_KMAP_LOCAL debug option (explicitly "Disable for production use") together with a large NR_CPUS (e.g. 32), which is beyond normal attacker control. PR:L - On a system that boots with the vulnerable config, an unprivileged local user can exercise kmap_local via ordinary highmem-backed operations scheduled on high CPU IDs; admin/root capabilities are not required. UI:N - No victim action such as mounting a filesystem or opening a crafted file is required; boot or normal local workload activity is sufficient. S:U - Impact remains within the same kernel security authority; this is not a VM escape, IOMMU bypass, or other cross-boundary break. C:H - With DEBUG_KMAP_LOCAL and large NR_CPUS, kmap_local used linear PTE indexing (kmap_pte - idx) that writes out of bounds into adjacent memory, which is memory corruption that can be leveraged for information disclosure. I:H - The same out-of-bounds PTE store is an out-of-bounds kernel write, and the fixmap/FDT collision can also cause page-table updates through misidentified section mappings, enabling integrity compromise and control-flow hijacking potential. A:H - The documented manifestation is a kernel oops during boot (and equivalent faults on bad fixmap walks), which is a full availability loss via crash/panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 2a15ba82fa6ca3f35502b3060f22118a938d2889 to < 5965ac11b1d5fcb38464728931649cd9df79c7c9 (affected · git)2a15ba82fa6ca3f35502b3060f22118a938d2889 to < d624833f5984d484c5e3196f34b926f9e71dafee (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.11 (affected)0 to < 5.11 (unaffected · semver)5.11.16 through 5.11.* (unaffected · semver)5.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
ARM: 9063/1: mm: reduce maximum number of CPUs if DEBUG_KMAP_LOCAL is enabled
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8097f65f10c338c11f2e61eba4617b2d89bf5cb54412a83ff4ccae9ea1c4e8a3
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record