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 F21A231A7F9 for ; Wed, 24 Dec 2025 10:56:53 +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=1766573814; cv=none; b=o9AuqlCpVyKqIQSdwaf2uqnnDM2pX3ABqdV/vF9k3kY5zBsvjiL6Vb0jvSFHtznYjQDjoyiGa3xx0HlEyBGPbZJsSeyS9jIe4sh9+WfW1yccTEOhcgarfRBzBX6ZUlHhTJc9qY/RKsDG21gsReRRXDtSGBzd47WmRUVGWm4ba9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573814; c=relaxed/simple; bh=bcp/b8BfssXgLn/mFSfVsbhNQyPaTCJBk0nT3iTbBKc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UrepgKu6xJFRLpDN7R2OAKdXElVKrfw52C01jO39x5sYrnIuFg0xxn2UmsczUpQUC5h/5njyZN3Fhplfe7aLq8hEsXUDw9CjiWXbdFeYyS94RhCS4Qkikfv2Wm6p/m129hvbdiPsVpnj5iAAw+w+XP75I2YQyEOpT7Q5G3vhmv4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=J5josEsD; 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="J5josEsD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 252FFC4CEFB; Wed, 24 Dec 2025 10:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573813; bh=bcp/b8BfssXgLn/mFSfVsbhNQyPaTCJBk0nT3iTbBKc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=J5josEsD1ty7akD2UsgjiRGnyAnHxL/5+daF8K315+bO4s4IyjkbFgKBv+/7pR8fJ xdt720bybpvygbIf/aRrdNkGemJQqu9KPRpqUtgXoDK0U60nhPFAY68acT1CD9HBpC qNV0N17mOY1FbBJ65nZdvpLHfXHPLwReYDxnHgQs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50707: virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session() Date: Wed, 24 Dec 2025 11:56:24 +0100 Message-ID: <2025122420-CVE-2022-50707-8f32@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=2295; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=M895e7tWt0cQDQkjpi6rHSAgOTFFZ8T48iMfMtr32Ek=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnex67MCexf+rm347ZgiXn2q0aGta5Hajymt2lPuauY/ keK/fjTjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI7FyGeaYTRFxmPLM/KmH+ 7NW6mdIPREJO5TLMsww9M2d5//PQwpk5zQdUXHmu3rvVCAA= 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: virtio-crypto: fix memory leak in virtio_crypto_alg_skcipher_close_session() 'vc_ctrl_req' is alloced in virtio_crypto_alg_skcipher_close_session(), and should be freed in the invalid ctrl_status->status error handling case. Otherwise there is a memory leak. The Linux kernel CVE team has assigned CVE-2022-50707 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a and fixed in 6.0.19 with commit 67fb59ff1384e338679c0eb7a43c83ce8868c9fa Issue introduced in 5.19 with commit 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a and fixed in 6.1.5 with commit 0871df190fe6723464efe0f493d476411616f553 Issue introduced in 5.19 with commit 0756ad15b1fef287d4d8fa11bc36ea77a5c42e4a and fixed in 6.2 with commit b1d65f717cd6305a396a8738e022c6f7c65cfbe8 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-2022-50707 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: drivers/crypto/virtio/virtio_crypto_skcipher_algs.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/79026a2d0a1b080257773d22a493f9bcab8c65be https://git.kernel.org/stable/c/67fb59ff1384e338679c0eb7a43c83ce8868c9fa https://git.kernel.org/stable/c/0871df190fe6723464efe0f493d476411616f553 https://git.kernel.org/stable/c/b1d65f717cd6305a396a8738e022c6f7c65cfbe8