CVE-2025-40266
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40266 is an out-of-bounds (OOB) memory access vulnerability in the Linux kernel's KVM implementation for ARM64, specifically within the FF-A (ARM Firmware Framework for Armv8-A) memory sharing subsystem. The flaw arises because the hypervisor fails to validate an untrusted offset parameter supplied by the host kernel, allowing a crafted large value in the range [U32_MAX - sizeof(struct ffa_composite_mem_region) + 1, U32_MAX] to trigger OOB access in the hypervisor FF-A buffer. It was published on December 4, 2025, with patches released for Linux kernel stable branches and incorporated into Microsoft Azure Linux and Google Android security bulletins (Microsoft MSRC, Feedly). The vulnerability carries a CVSS v3.1 base score of 7.1 (High), with local attack vector and low privileges required (Feedly).

Technical details

The root cause is improper input validation (CWE-125: Out-of-bounds Read / CWE-787: Out-of-bounds Write) in the KVM ARM64 hypervisor's handling of FF-A memory share operations. When the host kernel sets an untrusted offset value large enough to wrap around a 32-bit unsigned integer — specifically values in the range [U32_MAX - sizeof(struct ffa_composite_mem_region) + 1, U32_MAX] — the hypervisor performs arithmetic without bounds checking, resulting in an OOB memory access within the hypervisor's FF-A buffer. Exploitation requires local access with low privileges, as the attacker must be able to interact with the host kernel's KVM interface to supply the malicious offset. Patches addressing this issue were committed to multiple Linux kernel stable branches (Kernel Patch 1, Kernel Patch 2, Kernel Patch 3, Kernel Patch 4).

Impact

Successful exploitation allows a local low-privileged user to trigger OOB memory access in the KVM ARM64 hypervisor, potentially corrupting hypervisor memory or crashing it entirely, resulting in denial of service or privilege escalation. The integrity and availability impacts are rated High, while confidentiality impact is None, reflecting the risk of memory corruption and system instability rather than direct data disclosure. In virtualized environments, hypervisor compromise could affect the stability and isolation of all guest virtual machines running on the affected host (Feedly, Microsoft MSRC).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of reporting (Feedly). The EPSS score is approximately 0.018% (0.000180), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.

Mitigation and workarounds

Apply the latest Linux kernel security patches that include the fix for CVE-2025-40266. Fixed versions include Linux kernel 6.6.118, 6.12.60, 6.17.10, and 6.18 (Feedly). For Microsoft Azure Linux users, update to kernel version 6.6.112.1-2 or later (Microsoft MSRC). Android users should apply the March 2026 security bulletin (2026-03-01 patch level) or later. Ubuntu users should apply USN-8094-1 through USN-8094-5 and USN-8152-1 as applicable. As a general mitigation, restrict local user access to KVM-based hypervisor interfaces and monitor for anomalous kernel activity on ARM64 systems running KVM.

Community reactions

The vulnerability was noted in Rapid7's December 2025 Patch Tuesday roundup and covered by security news outlets including GBHackers in the context of the Android March 2026 security bulletin, which addressed 129 flaws (GBHackers). The CIS also issued an advisory regarding multiple vulnerabilities in Google Android OS that included this CVE (CIS Advisory). Community reaction has been measured, consistent with the low EPSS score and absence of active exploitation.

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68426MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-core
NoYesAug 10, 2026
CVE-2026-68425MEDIUM4.3
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesAug 10, 2026
CVE-2026-68422LOW3.3
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 10, 2026
CVE-2026-68428NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesAug 10, 2026
CVE-2026-68421NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesAug 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management