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 714E4308F1E for ; Thu, 18 Sep 2025 13:35:49 +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=1758202549; cv=none; b=N668pBHa5Jr6XsxT6lRW0QMK1Zc3nUbp92i+jVglTTiUo6hZZHbT47vcAdBzN52e+VaSVUBjvhZ6n+/Ls8m/wHFJ0lcSVMgDnfVcVCCGSKksjSyejQ25OTiTexFqM5Pq/m4Fazbi+KB90H3OCdVdZ8YM5h6pHhhejNATAjie1TQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202549; c=relaxed/simple; bh=Bai6pYG49hfcXh3i/1zA96/wazkIYOuF0P9KPGd97Wk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AdN53put8VacxNWzJVOS0yRHU30PgVi1842sOnIu4DobNetw5YD8TdOBCClOiARmr9ZJ3gbv6X6T5CaxVRh3U6L1X/G2p26cD2Vzh839Nkxr2sYivbg7v/foLdtepdSZuQ5+NiCJMLl9i93tSOvYroP3OtHEWyTmlTt/9aSizxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1WHzX9P8; 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="1WHzX9P8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC129C4CEE7; Thu, 18 Sep 2025 13:35:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202549; bh=Bai6pYG49hfcXh3i/1zA96/wazkIYOuF0P9KPGd97Wk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1WHzX9P8Jci3cKHtz5rW2bVjG6E51IqLuenwTwmi8opygdqkOMTyPpFR4ZCJqqaaA ftT6GiKcjcLGJcfPjfKVxGYUrrjkXJhEc/NI4E8LI3Vhg/7GrYg2cf6xn8W/ss9MSX FqmVbKlb1KolfLcapOX9VvLfCEgWgpm+c2JRdYR0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50384: staging: vme_user: Fix possible UAF in tsi148_dma_list_add Date: Thu, 18 Sep 2025 15:33:58 +0200 Message-ID: <2025091852-CVE-2022-50384-b652@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=3746; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RxLDxU0XtqwbdsGfFvpoFOGs5cGC6kVqbP+WkXcucFs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuBxW2uptPyapluJy70jpofUTr31/J2avxiD6qn6vy Pv3fJJvO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAibVcYFkzUX6NgI59XzyrF ubsiU5Fb/6JAPcP8ouBn394qfRFm8d61P/vHrh+BFk4vAA== 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: staging: vme_user: Fix possible UAF in tsi148_dma_list_add Smatch report warning as follows: drivers/staging/vme_user/vme_tsi148.c:1757 tsi148_dma_list_add() warn: '&entry->list' not removed from list In tsi148_dma_list_add(), the error path "goto err_dma" will not remove entry->list from list->entries, but entry will be freed, then list traversal may cause UAF. Fix by removeing it from list->entries before free(). The Linux kernel CVE team has assigned CVE-2022-50384 to this issue. Affected and fixed versions =========================== Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 4.9.337 with commit 5cc4eea715a3fcf4e516662f736dfee63979465f Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 4.14.303 with commit 51c0ad3b7c5b01f9314758335a13f157b05fa56d Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 4.19.270 with commit e6b0adff99edf246ba1f8d464530a0438cb1cbda Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 5.4.229 with commit a45ba33d398a821147d7e5f16ead7eb125e331e2 Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 5.10.163 with commit 5d2b286eb034af114f67d9967fc3fbc1829bb712 Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 5.15.86 with commit 1f5661388f43df3ac106ce93e67d8d22b16a78ff Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 6.0.16 with commit cf138759a7e92c75cfc1b7ba705e4108fe330edf Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 6.1.2 with commit 85db68fc901da52314ded80aace99f8b684c7815 Issue introduced in 4.2 with commit b2383c90a9d691201b9aee557776694cde86a935 and fixed in 6.2 with commit 357057ee55d3c99a5de5abe8150f7bca04f8e53b 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-50384 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/staging/vme_user/vme_tsi148.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/5cc4eea715a3fcf4e516662f736dfee63979465f https://git.kernel.org/stable/c/51c0ad3b7c5b01f9314758335a13f157b05fa56d https://git.kernel.org/stable/c/e6b0adff99edf246ba1f8d464530a0438cb1cbda https://git.kernel.org/stable/c/a45ba33d398a821147d7e5f16ead7eb125e331e2 https://git.kernel.org/stable/c/5d2b286eb034af114f67d9967fc3fbc1829bb712 https://git.kernel.org/stable/c/1f5661388f43df3ac106ce93e67d8d22b16a78ff https://git.kernel.org/stable/c/cf138759a7e92c75cfc1b7ba705e4108fe330edf https://git.kernel.org/stable/c/85db68fc901da52314ded80aace99f8b684c7815 https://git.kernel.org/stable/c/357057ee55d3c99a5de5abe8150f7bca04f8e53b