From mboxrd@z Thu Jan 1 00:00:00 1970 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 EE05A295D85 for ; Wed, 18 Jun 2025 11:15:57 +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=1750245358; cv=none; b=ZfDNu8DSCRsLl9Jej0/H2Wb78KwAZkzbYkHzX0ua9aCbblqn40XxLNLp0Na06VC5BrtE4MMBzZBJkjoohKUEZzIHquj3Gr3pW/af4n+t96peKHOG95UU6UvZUhYRJLxYMn2Q/BQNg5OsKGcdb5oe/DSxRdpI2EcILVZyXodQ9SQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245358; c=relaxed/simple; bh=RpdHrYkAvYB5wY5xzhs2MZ2szU6Q+uqIxkAxlpz6UG8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ko3fMDmXn5kp/JOjKRrZOhRF+jDCsSLCYkXOQaw4G5yXtDxdD66cMvE8iZPCY8Uu4Vgx2Ds9oKhXKIg8cR1JxgLZ9AToNzx0X6i6N16/e2Grm49ZfUx+HVsO5hH5p2Zy/g1ayNXpaar43VpDnCn3NLWADq7YQ8shDNN2QBAKnCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Otrxa+sx; 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="Otrxa+sx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76F81C4CEE7; Wed, 18 Jun 2025 11:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245357; bh=RpdHrYkAvYB5wY5xzhs2MZ2szU6Q+uqIxkAxlpz6UG8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Otrxa+sxxORT9ENJxsomUifyZbEic+lzmwL2oKbiGplXsBFiZ0+W7+7iCVG5gPj2a 5sDbYiaCmbigWc39UEeT1HkcJnFPulkGm3O67r2g4ipAzw9tqEfUgMaLaHBIVk48Z1 pgjG6p7URjzR2eIG+xE0FdHMs+IYKzEODUAbyVjc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50175: media: tw686x: Fix memory leak in tw686x_video_init Date: Wed, 18 Jun 2025 13:04:00 +0200 Message-ID: <2025061830-CVE-2022-50175-e5b5@gregkh> X-Mailer: git-send-email 2.49.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=2638; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vxvsfAUpMLtQVzuGbZA48C2Clyf44h3OjJcrUEACWb0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc7oMQmf/07R4vOieZvFkpyLZC+sPS7mstG3baRv7S f3ao+XSHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRH0sZ5mdFHJtSuPHW6uh1 Z3nFE3fecjh+5ATD/BBT9tPLDO5cYs06E3KE8xHj54o0ewA= 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: media: tw686x: Fix memory leak in tw686x_video_init video_device_alloc() allocates memory for vdev, when video_register_device() fails, it doesn't release the memory and leads to memory leak, call video_device_release() to fix this. The Linux kernel CVE team has assigned CVE-2022-50175 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 and fixed in 5.10.137 with commit 611f86965df013d6021e6cd0d155b1734ad2cf21 Issue introduced in 4.7 with commit 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 and fixed in 5.15.61 with commit 0597bcf774896a002edcc7934a9cdbb932b66702 Issue introduced in 4.7 with commit 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 and fixed in 5.18.18 with commit c142a7531b90c6b0f946c82d3f504b3f36a207df Issue introduced in 4.7 with commit 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 and fixed in 5.19.2 with commit 8b412db51db24dfba22c96948580d4a12f831397 Issue introduced in 4.7 with commit 704a84ccdbf19fdce9adfda0b936dfdcac52fa49 and fixed in 6.0 with commit e0b212ec9d8177d6f7c404315293f6a085d6ee42 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-50175 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/media/pci/tw686x/tw686x-video.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/611f86965df013d6021e6cd0d155b1734ad2cf21 https://git.kernel.org/stable/c/0597bcf774896a002edcc7934a9cdbb932b66702 https://git.kernel.org/stable/c/c142a7531b90c6b0f946c82d3f504b3f36a207df https://git.kernel.org/stable/c/8b412db51db24dfba22c96948580d4a12f831397 https://git.kernel.org/stable/c/e0b212ec9d8177d6f7c404315293f6a085d6ee42