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 D04EA1EF092 for ; Thu, 1 May 2025 14:17:10 +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=1746109030; cv=none; b=UHFS6FoFJTZMt2j3hO6o5y8M126XEKp2qqDa5rtkq7VDfwGfST33OstXSklfoLSENy1Ym8HyMvfjsC7nx6pMkTBOtXXqUo5plj0YPP8BXCH4RYPTDP+9YZIazbRpQURghB4yXH6n1NiJhKrcyoG4TmLUFUGsIOGcNRcBd05EDp0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109030; c=relaxed/simple; bh=ipJfJoJfbZHsKTROhJ/g6O19oNY+0WW+NKV1hGQestY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hKp1NrKKuPXFsldN0afctWb6357u7X3uyt8dt85+FaE5BuKyI7K8yhms9ut+64vD4jijC/ekAfHYsRxVlZ3ey9b0YX5RPGaO2DduTD5+vMsDbTS8zMbrhuGIE1f+zOC/6+FGZL27pukjC9fxEuMN9aC6S2lE5gi8cvWNtxy7dV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vdb78pe8; 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="vdb78pe8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F143C4CEE3; Thu, 1 May 2025 14:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109030; bh=ipJfJoJfbZHsKTROhJ/g6O19oNY+0WW+NKV1hGQestY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vdb78pe80anVpT5fjv+YfSaYxiGMMRoVlpEz7pcwMEdI9yMBOFfTHPcCEtT6R1z9h J7msmJjI2OvFe5GwdEv0gc7olildzTvCTt2g3m7CGpd/PuGTyueNSk5XDlVWlQBV/j 33j37MP+DqGPVASMmzPfUGVc200CSXk5x68aqOvk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49887: media: meson: vdec: fix possible refcount leak in vdec_probe() Date: Thu, 1 May 2025 16:11:17 +0200 Message-ID: <2025050156-CVE-2022-49887-aaf6@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=2198; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JLepTxy/YfYefjJ12E/efH0eSPBf/pRpWNWKt9l5+sg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDVv1pi+eXtF27GzVE7HDms9uqqlzPeK7nMtQWGf+l S1q1u/IjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIxX8MC+ZduHqmSWvShrX+ 817zTF3A7vvR2othfn5eUXDzNrfJ0+RuBF/zNQ/fUWYwDwA= 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: meson: vdec: fix possible refcount leak in vdec_probe() v4l2_device_unregister need to be called to put the refcount got by v4l2_device_register when vdec_probe fails or vdec_remove is called. The Linux kernel CVE team has assigned CVE-2022-49887 to this issue. Affected and fixed versions =========================== Fixed in 5.4.224 with commit 70119756311a0be3b95bec2e1ba714673e90feba Fixed in 5.10.154 with commit be6e22f54623d8a856a4f167b25be73c2ff1ff80 Fixed in 5.15.78 with commit f96ad391d054bd5c36994f98afd6a12cbb5600bf Fixed in 6.0.8 with commit 0457e7b12ece1a7e41fa0ae8b7e47c0a72a83bef Fixed in 6.1 with commit 7718999356234d9cc6a11b4641bb773928f1390f 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-49887 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/media/meson/vdec/vdec.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/70119756311a0be3b95bec2e1ba714673e90feba https://git.kernel.org/stable/c/be6e22f54623d8a856a4f167b25be73c2ff1ff80 https://git.kernel.org/stable/c/f96ad391d054bd5c36994f98afd6a12cbb5600bf https://git.kernel.org/stable/c/0457e7b12ece1a7e41fa0ae8b7e47c0a72a83bef https://git.kernel.org/stable/c/7718999356234d9cc6a11b4641bb773928f1390f