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 D0ABA2F5330 for ; Mon, 15 Sep 2025 14:21:27 +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=1757946087; cv=none; b=cHchoD/pjiQzwD3NSMiwqp/GKA5uOMUjVMndWg9m3CwTT6UITChgVa2gIYymEqMHlEd2Y6EDFrKjmHcRDG6eWJ2C5riEd5NP1HkdxYMftexdx0bmG/moiv2fGzjJjA7QtE2IhnCvX639I+Hwqc1HO5Y4sx5nZu17AiKwy14nxks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946087; c=relaxed/simple; bh=Jv+ymbqc6pw3VEYi82B/ZLMx9f5XaryGyo5KtoPP6uI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TJds5Pnt05wsrUQDzsCoJT8yjOgnOOLb1jcocdogzCc5nEVr3zOkFDo/4VnX0tRAiNRDv9spIHvHtZNEWYCC4waWlakbp4q0QFitQKspK2Sg4fbcPsNpu+O+O31uG33COEelpJNn8I7Eb74lkw9Smpjvsv9BvrxBhJo6GnYDFgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=siGlgZME; 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="siGlgZME" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAD1EC4CEF1; Mon, 15 Sep 2025 14:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946087; bh=Jv+ymbqc6pw3VEYi82B/ZLMx9f5XaryGyo5KtoPP6uI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=siGlgZMExlT8xJeNqQduCC7/opX/vtC7kT3HacLrKmNmRzWQNcBjBKG25/EWERBne llTIUKozk0HibavF03hdFG81z6r2I4okHX8meKu0uAZkmepnJnlpjYXFzhxlo22lyG 7Ey1tnDjvTsts/53BCkCy4V6Jt9t+jS0yvHDDa1w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50263: vdpasim: fix memory leak when freeing IOTLBs Date: Mon, 15 Sep 2025 16:21:05 +0200 Message-ID: <2025091503-CVE-2022-50263-040c@gregkh> X-Mailer: git-send-email 2.51.0 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=2227; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gin+726WHSDZjTMFqMmZhco/jvHfv375tAZ/94H9z8I=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFM7vmDe7pqPq27SkJQ839Z6qFlu8WUkw46nxB6aHb yoeW3Pe7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJhO5imM2W/1F2y9J1r06J BTov3pzjt+X5mX8Mc+Wn+8QqfNz64XWoY3fW3O3LlU4JaAAA 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: vdpasim: fix memory leak when freeing IOTLBs After commit bda324fd037a ("vdpasim: control virtqueue support"), vdpasim->iommu became an array of IOTLB, so we should clean the mappings of each free one by one instead of just deleting the ranges in the first IOTLB which may leak maps. The Linux kernel CVE team has assigned CVE-2022-50263 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit bda324fd037a6b0d44da5699574ce741ca161bc4 and fixed in 6.0.19 with commit 54b210c90d2803a9f1c8fd2f0d08e90172e9a06d Issue introduced in 5.19 with commit bda324fd037a6b0d44da5699574ce741ca161bc4 and fixed in 6.1.5 with commit 16b22e27fba6fd816d0dcb98f42cc71f0836c27e Issue introduced in 5.19 with commit bda324fd037a6b0d44da5699574ce741ca161bc4 and fixed in 6.2 with commit 0b7a04a30eef20e6b24926a45c0ce7906ae85bd6 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-50263 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/vdpa/vdpa_sim/vdpa_sim.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/54b210c90d2803a9f1c8fd2f0d08e90172e9a06d https://git.kernel.org/stable/c/16b22e27fba6fd816d0dcb98f42cc71f0836c27e https://git.kernel.org/stable/c/0b7a04a30eef20e6b24926a45c0ce7906ae85bd6