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 C7ED1339A8 for ; Fri, 25 Jul 2025 14:32:24 +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=1753453944; cv=none; b=SUqaOeBVVCiUW0O9QSQme5WrLbvwA0wcTVR4/RpkJBGyWUDXNUBxGNrzFnyQpJoM7p2TcalXKupNL58HlpQWSDYb+OxsPaPn8n9qi2jXuL7BHtS+K6SXxaFlWR0VMU7vR47bdleBaQPxt4f+hP3nijKOCGrTN0syOOl81jG9gVk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753453944; c=relaxed/simple; bh=Q2wmUhBHi9T+jbGxmrykoVrt3XvUebwBG1M2xmuFeSE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YdQjqDGHIg/ahYKRXYOb803mNohlL7DrBsKyd9CGS1ykSRLfs3muI6DxN1T3WmQKxlt9HjhUQqcZ7XCO/1tox3NtcpgviGCqK226m+Yw+eO1SJMgUru668lLhPXAbZthhu7zFA8oqyFP0jPeoPTdjZuKMMcgLrqyiOwT9WZBd9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ipE1zy0+; 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="ipE1zy0+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA26DC4CEE7; Fri, 25 Jul 2025 14:32:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753453944; bh=Q2wmUhBHi9T+jbGxmrykoVrt3XvUebwBG1M2xmuFeSE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ipE1zy0+P5hXnmgeu/CSrbxBJOM8+VXPANJi9TV7W3+2rnFEIzDA+AHPIBt3aroJO b1SEWbd/OHpKNPUMorkQJq0xJ9JHMWENjf9gP7w6IsCi1DjEppgWYRUxlL41GMDYeW UZQnvLvDPBnKOp3t8zAInTWoMxrRm/J/86K9h7Vs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38435: riscv: vector: Fix context save/restore with xtheadvector Date: Fri, 25 Jul 2025 16:32:14 +0200 Message-ID: <2025072512-CVE-2025-38435-ffc0@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1929; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NtYFKBgS+R1jtdB4Sk5VE6bgKynNegkccCfr55+LC0k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNU3NuslwX4Z+xKXjXt8pz7NsP9TUWxl0sC99Wfm/Ty u2n+niZOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiUW8YFhycFpRc+NpUav4K JZFj0n9jvjceMWCYw+mygNGihP/O5fvJEq9OC1Z5tjQIAQA= 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: riscv: vector: Fix context save/restore with xtheadvector Previously only v0-v7 were correctly saved/restored, and the context of v8-v31 are damanged. Correctly save/restore v8-v31 to avoid breaking userspace. The Linux kernel CVE team has assigned CVE-2025-38435 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit d863910eabaffc68eb28aaf476dd870fc3f7197d and fixed in 6.15.5 with commit dd5ceea8d50e9e108a10d1e0d89fa2c9ff442ca2 Issue introduced in 6.14 with commit d863910eabaffc68eb28aaf476dd870fc3f7197d and fixed in 6.16-rc4 with commit 4262bd0d9cc704ea1365ac00afc1272400c2cbef 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-38435 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/riscv/include/asm/vector.h 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/dd5ceea8d50e9e108a10d1e0d89fa2c9ff442ca2 https://git.kernel.org/stable/c/4262bd0d9cc704ea1365ac00afc1272400c2cbef