Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5C5A7361DC3 for ; Thu, 28 May 2026 09:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961258; cv=none; b=qqMAc0y6Rj/ja17346vWKLOs/2Ei1NwkJ2YbQe+ZYhy4MNQ+moAiVbKW6LSwTQLbJK7738nLyo4aBdbbpHjx2GW3vJ9Z7lRRprVDhGGewi+VEgFdE455DCN1VlpeGLhsameUGNcu1vzH1TmiMf4Zj62uI5U2npslAefNYXY5Ulw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961258; c=relaxed/simple; bh=Fcxb0tzzKBvsjzV8k0J6oyFippcWxAdsJi4g8VqjBII=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hLdHNnz+/xU20PtmqhfkcEsVZSsi/PWrFC7PS1M/o1Wtzl3HlZFvkxKOzOX/+4ZwDSAeXcKhdcert7IWPMCsyOS7xkdXCv59VD2lLhcrteBRacLkXPJS8oIrn4qF+KLFA4bVG39W3uOOGSG50j/1upOp9s6uCwDhqP/YoPb2Y3Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v0qjQDel; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="v0qjQDel" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADACF1F000E9; Thu, 28 May 2026 09:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961257; bh=Nj74Jgcar5/9twisv76GN7DWSKorFSnzBq5tS4JWHaQ=; h=From:To:Cc:Subject:Date:Reply-To; b=v0qjQDeln54cZsl37G4laprguUdNvTqVngPp92qtrU3wqYdaLK/iQ25SHhYH5ewMk 5YrnTdHG9pja6DrcLgDeKE4vUztFiiCcVTkaOFShFdcdqlWuQ6z7Hdan3LoHRl0HoK Xar6JX3hMJVXaMXGQncMPETQwqB2mx9paZZSUkD8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46171: riscv: kvm: fix vector context allocation leak Date: Thu, 28 May 2026 11:37:16 +0200 Message-ID: <2026052827-CVE-2026-46171-a668@gregkh> X-Mailer: git-send-email 2.54.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=2172; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q9eNMNDRXVurZuQaILf97kroO8D6eY3Va3VcZiZWLI8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPLN52UULenU0D9/1NDTa9LxU853OwrU7WZnWOCt78 91J/rypI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYivoJhrqTDonmPov/9SQn9 2LlCKz1PleulEsOCucvahea/WbQ/68q7jStLvFJaG18eBwA= 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: kvm: fix vector context allocation leak When the second kzalloc (host_context.vector.datap) fails in kvm_riscv_vcpu_alloc_vector_context, the first allocation (guest_context.vector.datap) is leaked. Free it before returning. The Linux kernel CVE team has assigned CVE-2026-46171 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 0f4b82579716b12bb88257bd7ea80f25c791fb2c and fixed in 6.18.30 with commit bd62c0f61bc722a097417401030c596cea8e21aa Issue introduced in 6.5 with commit 0f4b82579716b12bb88257bd7ea80f25c791fb2c and fixed in 7.0.7 with commit 1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98 Issue introduced in 6.5 with commit 0f4b82579716b12bb88257bd7ea80f25c791fb2c and fixed in 7.1-rc1 with commit b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978 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-2026-46171 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/kvm/vcpu_vector.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/bd62c0f61bc722a097417401030c596cea8e21aa https://git.kernel.org/stable/c/1d57ab45ec5c0e22789de793bcf2a31ad6fb7d98 https://git.kernel.org/stable/c/b7c958d7c1eb1cb9b2be7b5ee4129fcd66cec978