Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B0DB2DA75C for ; Thu, 4 Dec 2025 16:08:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764864535; cv=none; b=KmDkJOLOU8znCP6zJBcXnPkd3/LoGSHJRToacG0XXjo1XgpOmikgueIJFWuctOMj9m5mGfs8SWn2b/AgkHfG/i6N3jXWpXKd7YsAHH933VPCSe9GBIESq29iYs/UPXc5CguU9EoSK/zREk75tf9BYd+6XD7Io889qmLwA+o8Ews= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764864535; c=relaxed/simple; bh=Ft6b36YQPob9ilRWd9jhCI7Xecl5FrxWyicZbNfD+Jw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ap0NvLDm+YV4Om+/2xrI3DdjQAEiwhp/q1B53vday/ntogQKt3dust/3FQCkSOYnC15JemX8LV8jZ7rKji4jZ/vQFpOgJDjZ1DqgTydESE98zmgVGZnR4y8KsI/7gtW8A+Y9YLEArIQi2DOs7YHsoMwsrFSv1jrZMZ8R3MKhBZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GPaAnmDw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GPaAnmDw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D75BC4CEFB; Thu, 4 Dec 2025 16:08:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764864534; bh=Ft6b36YQPob9ilRWd9jhCI7Xecl5FrxWyicZbNfD+Jw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=GPaAnmDwOOWkbEm/LRkNXxoXnEQrwRbrVFJctwKtL7YgQVLVcuJiBMZs3/IubecG8 iDfaS/gF98fsPsF8+nDlbCqhEPToDwL3e183nmKwxRmVXmsqYZnoN3pT2F6Xy82zy1 Xy6dTPt61FphcD6kNI2pgat8JDzm6KxWsKWdJL9U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40266: KVM: arm64: Check the untrusted offset in FF-A memory share Date: Thu, 4 Dec 2025 16:57:47 +0100 Message-ID: <2025120435-CVE-2025-40266-30a1@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2109; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HUr9tN5zFLDEViR46UTQV9eHNlMQ7vCurArHrS3Igcc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmG6/OPzjI8I86x+9P8RjfF40XzV1/a12d3tWwOz9ukl 5IO72t4O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAivbcZFhyt3Tftv4mN1aZO hr2HcyLuP+O6dZ9hNsv5QK74oNaNEyMO6rf8vrf30GLpswA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-40266 to this issue. Affected and fixed versions =========================== Fixed in 6.6.118 with commit fc3139d9f4c1fe1c7d5f25f99676bd8e9c6a1041 Fixed in 6.12.60 with commit bc1909ef38788f2ee3d8011d70bf029948433051 Fixed in 6.17.10 with commit f9f1aed6c8a3427900da3121e1868124854569c3 Fixed in 6.18 with commit 103e17aac09cdd358133f9e00998b75d6c1f1518 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-40266 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/arm64/kvm/hyp/nvhe/ffa.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/fc3139d9f4c1fe1c7d5f25f99676bd8e9c6a1041 https://git.kernel.org/stable/c/bc1909ef38788f2ee3d8011d70bf029948433051 https://git.kernel.org/stable/c/f9f1aed6c8a3427900da3121e1868124854569c3 https://git.kernel.org/stable/c/103e17aac09cdd358133f9e00998b75d6c1f1518