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 073F814658D for ; Mon, 15 Sep 2025 14:21:39 +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=1757946100; cv=none; b=KlHvLRqmuGjIPts7i+1Jhq4AWO5Lgix6cxVk6e4d1/KKi1N4qGtjajRBg2iCIvSPNp1ylFoirK0wywxD4ozZ+KRe02P80KvyQjSQX8yJVMhtyMzsqmFwXCLKPXO67OdKy4W+7F94wtSXCErvCIH9Zbhv876CcbEOBjm3dK8Bk6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946100; c=relaxed/simple; bh=WYsKnMZIoDVAuLzl1bUkdSzfagrnIUu0TNMMJn3plPk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iLQZot9+f4n+/1hvwsPmFTR6YQM6bKzqNOOPQB2p7DZDNe75C1UWDJyNKQzgC56P7VMWGuV50MZ8L8HL/mxIf825aZKiqK+q1+Ge+M3IFSr4srSdTm6QOwX5j9fNdTGFGIlAJpkdhI06BxxDyngZkkZjNT3ga41uIJQgTtF5kUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bcIMz/ng; 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="bcIMz/ng" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EE65C4CEF1; Mon, 15 Sep 2025 14:21:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946099; bh=WYsKnMZIoDVAuLzl1bUkdSzfagrnIUu0TNMMJn3plPk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bcIMz/ngA2Ugjyad/zWNeaNhcbqzUrRM8wlva67BLjlet2LeoARrQl5/4ZadUJIWU VBkdvRnXP8BCamtxksXJOQijIECGCzHsfCUQ73Fm+lsACcFpjZ0I2r7Ko+UQS5upyf C8I0KrDElQaBdXhXjLaXjpJwAHYUV0MAIwGtxt4Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50274: media: dvbdev: adopts refcnt to avoid UAF Date: Mon, 15 Sep 2025 16:21:16 +0200 Message-ID: <2025091505-CVE-2022-50274-ad8d@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=2924; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YVJiCJLELZc/5vIZEqYL2LmSYF76cPfMkw999VMG4j8=; b=kA0DAAIRMUfUDdst+ykByyZiAGjIINGi6SMPZuMx5HaFmk0NBIltIf4BepLdjvdpRubS/xogt 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmjIINEACgkQMUfUDdst+ynIjQCfTJWZ S0Dfyuh7T1jP99ZIU4BrkOIAnijtCJAENIIMIVJLZHVpC71nuayL 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: dvbdev: adopts refcnt to avoid UAF dvb_unregister_device() is known that prone to use-after-free. That is, the cleanup from dvb_unregister_device() releases the dvb_device even if there are pointers stored in file->private_data still refer to it. This patch adds a reference counter into struct dvb_device and delays its deallocation until no pointer refers to the object. The Linux kernel CVE team has assigned CVE-2022-50274 to this issue. Affected and fixed versions =========================== Fixed in 4.14.303 with commit ac521bbe3d00fa574e66a9361763f2b37725bc97 Fixed in 4.19.270 with commit 219b44bf94203bd433aa91b7796475bf656348e5 Fixed in 5.4.229 with commit 6d18b44bb44e1f4d97dfe0efe92ac0f0984739c2 Fixed in 5.10.163 with commit 2abd73433872194bccdf1432a0980e4ec5273c2a Fixed in 5.15.86 with commit 88a6f8a72d167294c0931c7874941bf37a41b6dd Fixed in 6.0.16 with commit a2f0a08aa613176c9688c81d7b598a7779974991 Fixed in 6.1.2 with commit 9945d05d6693710574f354c5dbddc47f5101eb77 Fixed in 6.2 with commit 0fc044b2b5e2d05a1fa1fb0d7f270367a7855d79 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-50274 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/dvb-core/dvb_ca_en50221.c drivers/media/dvb-core/dvb_frontend.c drivers/media/dvb-core/dvbdev.c include/media/dvbdev.h 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/ac521bbe3d00fa574e66a9361763f2b37725bc97 https://git.kernel.org/stable/c/219b44bf94203bd433aa91b7796475bf656348e5 https://git.kernel.org/stable/c/6d18b44bb44e1f4d97dfe0efe92ac0f0984739c2 https://git.kernel.org/stable/c/2abd73433872194bccdf1432a0980e4ec5273c2a https://git.kernel.org/stable/c/88a6f8a72d167294c0931c7874941bf37a41b6dd https://git.kernel.org/stable/c/a2f0a08aa613176c9688c81d7b598a7779974991 https://git.kernel.org/stable/c/9945d05d6693710574f354c5dbddc47f5101eb77 https://git.kernel.org/stable/c/0fc044b2b5e2d05a1fa1fb0d7f270367a7855d79