{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40266","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-04-16T07:20:57.183Z","datePublished":"2025-12-04T16:08:25.392Z","dateUpdated":"2026-05-11T21:46:00.988Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T21:46:00.988Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: arm64: Check the untrusted offset in FF-A memory share\n\nVerify the offset to prevent OOB access in the hypervisor\nFF-A buffer in case an untrusted large enough value\n[U32_MAX - sizeof(struct ffa_composite_mem_region) + 1, U32_MAX]\nis set from the host kernel."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/kvm/hyp/nvhe/ffa.c"],"versions":[{"version":"6211753fdfd05af9e08f54c8d0ba3ee516034878","lessThan":"fc3139d9f4c1fe1c7d5f25f99676bd8e9c6a1041","status":"affected","versionType":"git"},{"version":"6211753fdfd05af9e08f54c8d0ba3ee516034878","lessThan":"bc1909ef38788f2ee3d8011d70bf029948433051","status":"affected","versionType":"git"},{"version":"6211753fdfd05af9e08f54c8d0ba3ee516034878","lessThan":"f9f1aed6c8a3427900da3121e1868124854569c3","status":"affected","versionType":"git"},{"version":"6211753fdfd05af9e08f54c8d0ba3ee516034878","lessThan":"103e17aac09cdd358133f9e00998b75d6c1f1518","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/kvm/hyp/nvhe/ffa.c"],"versions":[{"version":"3.11","status":"affected"},{"version":"0","lessThan":"3.11","status":"unaffected","versionType":"semver"},{"version":"6.6.118","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.60","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.10","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.6.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.12.60"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.17.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.11","versionEndExcluding":"6.18"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/fc3139d9f4c1fe1c7d5f25f99676bd8e9c6a1041"},{"url":"https://git.kernel.org/stable/c/bc1909ef38788f2ee3d8011d70bf029948433051"},{"url":"https://git.kernel.org/stable/c/f9f1aed6c8a3427900da3121e1868124854569c3"},{"url":"https://git.kernel.org/stable/c/103e17aac09cdd358133f9e00998b75d6c1f1518"}],"title":"KVM: arm64: Check the untrusted offset in FF-A memory share","x_generator":{"engine":"bippy-1.2.0"}}}}