Skip to contentSkip to conversation

CVE-2026-99470: media: cx23885: unregister DVB bus when SP2 CI setup fails

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

media: cx23885: unregister DVB bus when SP2 CI setup fails

The DVBSKY S950C, DVBSKY T980C and TechnoTrend CT2-4500 CI paths register the DVB bus before attaching their SP2 CI client. If that client cannot be created, bound, or pinned, the current error path removes the I2C frontend components and only deallocates the frontend list, leaving the registered DVB adapter behind. Removing an I2C demod before unregistering the DVB bus can also expose the use-after-free ordering fixed for the normal remove path.

Unregister the DVB bus immediately when SP2 CI setup fails, before the existing I2C client cleanup. The bus helper empties the frontend list, so the later frontend deallocation has nothing left to release. Keep failures from vb2_dvb_register_bus() on the existing cleanup path. Also release an unbound SP2 client and propagate the actual I2C creation or CI registration error.

This issue was identified during our ongoing static-analysis research while reviewing kernel code.

The Linux kernel CVE team has assigned CVE-2026-99470 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.0 with commit 2b0aac3011bc7a9db27791bed4978554263ef079 and fixed in 6.12.117 with commit 262bca0d6761f4fd8755e8e223ea666d6cb81f1b
	Issue introduced in 4.0 with commit 2b0aac3011bc7a9db27791bed4978554263ef079 and fixed in 6.18.61 with commit cbe537c64b8fb1d0cf4bee20f89204fa51e384e5
	Issue introduced in 4.0 with commit 2b0aac3011bc7a9db27791bed4978554263ef079 and fixed in 7.3.2 with commit 47b32af13359e1bf859a449daa7a1b389bd93cb9
	Issue introduced in 4.0 with commit 2b0aac3011bc7a9db27791bed4978554263ef079 and fixed in 7.4-rc1 with commit 22f552ff726a82a086be4ef02ce5099a0e8624b6

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-2026-99470

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/cx23885/cx23885-dvb.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/262bca0d6761f4fd8755e8e223ea666d6cb81f1b
	https://git.kernel.org/stable/c/cbe537c64b8fb1d0cf4bee20f89204fa51e384e5
	https://git.kernel.org/stable/c/47b32af13359e1bf859a449daa7a1b389bd93cb9
	https://git.kernel.org/stable/c/22f552ff726a82a086be4ef02ce5099a0e8624b6