8.2
HIGH CVSS 3.1
CVE-2025-40266
KVM: arm64: Check the untrusted offset in FF-A memory share
Description

In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Check the untrusted offset in FF-A memory share Verify the offset to prevent OOB access in the hypervisor FF-A buffer in case an untrusted large enough value [U32_MAX - sizeof(struct ffa_composite_mem_region) + 1, U32_MAX] is set from the host kernel.

INFO

Published Date :

Dec. 4, 2025, 4:16 p.m.

Last Modified :

July 30, 2026, 6:24 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-40266 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Verify untrusted offsets in KVM FF-A memory sharing to prevent out-of-bounds access.
  • Apply the Linux kernel patch for KVM.
  • Verify untrusted offset values in memory sharing.
  • Ensure proper bounds checking for FF-A buffers.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-40266 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-40266 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-40266 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-40266 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jul. 30, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6211753fdfd05af9e08f54c8d0ba3ee516034878', 'lessThan': 'fc3139d9f4c1fe1c7d5f25f99676bd8e9c6a1041', 'versionType': 'git'}, {'status': 'affected', 'version': '6211753fdfd05af9e08f54c8d0ba3ee516034878', 'lessThan': 'bc1909ef38788f2ee3d8011d70bf029948433051', 'versionType': 'git'}, {'status': 'affected', 'version': '6211753fdfd05af9e08f54c8d0ba3ee516034878', 'lessThan': 'f9f1aed6c8a3427900da3121e1868124854569c3', 'versionType': 'git'}, {'status': 'affected', 'version': '6211753fdfd05af9e08f54c8d0ba3ee516034878', 'lessThan': '103e17aac09cdd358133f9e00998b75d6c1f1518', 'versionType': 'git'}], 'programFiles': ['arch/arm64/kvm/hyp/nvhe/ffa.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.11'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.11', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.118', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.60', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.17.10', 'versionType': 'semver', 'lessThanOrEqual': '6.17.*'}, {'status': 'unaffected', 'version': '6.18', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['arch/arm64/kvm/hyp/nvhe/ffa.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2025-40266', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-16T19:59:35.285244Z'}
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Dec. 04, 2025

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Check the untrusted offset in FF-A memory share Verify the offset to prevent OOB access in the hypervisor FF-A buffer in case an untrusted large enough value [U32_MAX - sizeof(struct ffa_composite_mem_region) + 1, U32_MAX] is set from the host kernel.
    Added Reference https://git.kernel.org/stable/c/103e17aac09cdd358133f9e00998b75d6c1f1518
    Added Reference https://git.kernel.org/stable/c/bc1909ef38788f2ee3d8011d70bf029948433051
    Added Reference https://git.kernel.org/stable/c/f9f1aed6c8a3427900da3121e1868124854569c3
    Added Reference https://git.kernel.org/stable/c/fc3139d9f4c1fe1c7d5f25f99676bd8e9c6a1041
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.