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 F0B0C329E5C for ; Wed, 24 Dec 2025 13:07:17 +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=1766581638; cv=none; b=epoBEikGENITk+TaojVOEmZtTKqBNX5w5V3VWDEEzuRr5Tv9g60X0vtH4/6FWs+l7glCo7HThSEv4z5ZzeYS444Yn2znMdI0Y52ZFqGoKcHzCvkezGRRSoCL4hy03qr25AGOh2AHCgfAMeaKLCBwRMsNERr5GHNON9Sd+jI3Wis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581638; c=relaxed/simple; bh=rmWnC5RiPJMnEyzyeCWJAJCEShrS6BqOcbkhhH15o1A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HrwP1xKp/f3FW7RB1FrtA2FIkl8dcF+B7nD9XJhFY5e1Oto1EJF70Jc+VVnlgE67mMfP5QAYGHXFA+wFsFhdRetLXMQnZXF/cQxA0vHYrH9VD1+uOlR634VsXFZ+D1fP72N3aDo1SC6Py8Bso4ANeL5urVBeXN7FezXGf1Kj8gw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QXt0O2Um; 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="QXt0O2Um" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73D6AC4CEFB; Wed, 24 Dec 2025 13:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581637; bh=rmWnC5RiPJMnEyzyeCWJAJCEShrS6BqOcbkhhH15o1A=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QXt0O2Um8PrlDGpXxK6RddcLSqBTVnSJ7do1PRk3cjLdGNCFYxM/rlFCgqSRIaPum jnSZSLdUUl/VjbRjPklL0W8T4NwiJgxv5M3ir3A327wC/+xTWPiMw81nVXbEM/LKxJ VxCoCN4lH8xFiartvOp8X8u6jMUj78DD+CP09EsE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50758: staging: vt6655: fix potential memory leak Date: Wed, 24 Dec 2025 14:06:09 +0100 Message-ID: <2025122454-CVE-2022-50758-800b@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=2673; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3gy54AsHodsOwhX/iBhwk6CG+IpLtx5EhbfQuuaG2WY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT42qWfqyzC8eMy5JrNt9xzNJPahGPfVTmu55dY/ZW 4+FbzHoiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlc+sYwz7jD9bP8unabchVr EeHVpv/Cpp1oYJgr6anrM/3l6lvz1+5qu/BzgZDPdyFeAA== 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: vt6655: fix potential memory leak In function device_init_td0_ring, memory is allocated for member td_info of priv->apTD0Rings[i], with i increasing from 0. In case of allocation failure, the memory is freed in reversed order, with i decreasing to 0. However, the case i=0 is left out and thus memory is leaked. Modify the memory freeing loop to include the case i=0. The Linux kernel CVE team has assigned CVE-2022-50758 to this issue. Affected and fixed versions =========================== Fixed in 4.19.262 with commit e741e38aa98704fbb959650ecd270b71b2670680 Fixed in 5.4.220 with commit 16a45e78a687eb6c69acc4e62b94b6508b0bfbda Fixed in 5.10.150 with commit 1b3cebeca99e8e0aa4fa57faac8dbf41e967317a Fixed in 5.15.75 with commit ff8551d411f12b5abc5ca929ab87643afa8a9588 Fixed in 5.19.17 with commit fb5f569bcda8f87bd47d8030bfae343d757fa3ea Fixed in 6.0.3 with commit cfdf139258614ef65b0f68b857ada5328fb7c0e5 Fixed in 6.1 with commit c8ff91535880d41b49699b3829fb6151942de29e 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-50758 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/vt6655/device_main.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/e741e38aa98704fbb959650ecd270b71b2670680 https://git.kernel.org/stable/c/16a45e78a687eb6c69acc4e62b94b6508b0bfbda https://git.kernel.org/stable/c/1b3cebeca99e8e0aa4fa57faac8dbf41e967317a https://git.kernel.org/stable/c/ff8551d411f12b5abc5ca929ab87643afa8a9588 https://git.kernel.org/stable/c/fb5f569bcda8f87bd47d8030bfae343d757fa3ea https://git.kernel.org/stable/c/cfdf139258614ef65b0f68b857ada5328fb7c0e5 https://git.kernel.org/stable/c/c8ff91535880d41b49699b3829fb6151942de29e