CVE-2025-21851: bpf: Fix softlockup in arena_map_free on 64k page kernel
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix softlockup in arena_map_free on 64k page kernel
On an aarch64 kernel with CONFIG_PAGE_SIZE_64KB=y,
arena_htab tests cause a segmentation fault and soft lockup.
The same failure is not observed with 4k pages on aarch64.
It turns out arena_map_free() is calling
apply_to_existing_page_range() with the address returned by
bpf_arena_get_kern_vm_start(). If this address is not page-aligned
the code ends up calling apply_to_pte_range() with that unaligned
address causing soft lockup.
Fix it by round up GUARD_SZ to PAGE_SIZE << 1 so that the
division by 2 in bpf_arena_get_kern_vm_start() returns
a page-aligned value.
Security readout for executives and security teams
Plain-English summary
CVE-2025-21851 is a low-severity Linux kernel availability issue. On aarch64 systems built with 64KB pages, specific BPF arena cleanup behavior can trigger a segmentation fault and soft lockup. It requires local low-privilege access and does not indicate data theft or privilege escalation.
Executive priority
Handle through normal kernel patch governance, with priority for aarch64 64KB-page fleets. This is not presented as internet-exploitable or actively exploited, but it can affect system availability where local users or workloads can reach the vulnerable path.
Technical view
The bug is in Linux BPF arena map cleanup. arena_map_free() passed a potentially unaligned address into apply_to_existing_page_range(), which could reach apply_to_pte_range() unaligned and cause soft lockup on CONFIG_PAGE_SIZE_64KB aarch64 kernels. The fix aligns GUARD_SZ so bpf_arena_get_kern_vm_start() returns a page-aligned value.
Likely exposure
Exposure appears limited to Linux systems with affected kernel versions and aarch64 64KB page builds where BPF arena functionality is reachable by a local user. Standard x86 deployments and aarch64 4KB page builds are not described as affected in the provided sources.
Exploitation context
The CVSS vector is local, low complexity, low privileges, no user interaction, and availability-only impact. The source bundle does not cite public exploitation, and KEV is false. Treat this as a targeted local denial-of-service risk unless vendor advisories say otherwise.
Researcher notes
The available evidence is authoritative but narrow: CVE metadata and kernel stable fixes. It does not provide distribution package mappings, proof-of-concept status, or exploitation reports. Avoid broad exposure claims beyond local availability impact on the described Linux kernel configuration.
Mitigation direction
Apply Linux vendor or stable kernel updates containing the referenced fixes.
Prioritize aarch64 systems built with CONFIG_PAGE_SIZE_64KB.
Check distribution advisories for exact package names and backport status.
If patching is delayed, review vendor guidance for BPF exposure controls.
Validation and detection
Inventory Linux kernel versions and architecture across managed hosts.
Confirm whether affected aarch64 hosts use CONFIG_PAGE_SIZE_64KB.
Verify updated kernels include the referenced stable commits or vendor backports.
Review kernel logs for soft lockups involving BPF arena cleanup.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-667: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-667 · source CWE mapping
Improper Locking
Improper Locking represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.