Skip to contentSkip to conversation

CVE-2026-89893: media: cx23885: cancel NetUP CI work before teardown

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

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: cancel NetUP CI work before teardown

netup_ci_exit() frees a netup_ci_state while its work item, netup_read_ci_status(), may still be pending or running on the system workqueue. The worker obtains the state with container_of() and dereferences it, so it must not outlive the state.

netup_ci_init() queues the initial status read, and CI GPIO interrupts subsequently queue the same work from netup_ci_slot_status(). During remove, cx23885_finidev() calls free_irq() before the CI device is unregistered. free_irq() prevents further IRQ handlers from running, but does not drain work queued previously, so the worker can run after netup_ci_exit() frees the state.

Call cancel_work_sync() before dvb_ca_en50221_release() and kfree().

This issue was found by an in-house static analysis tool.

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

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

	Issue introduced in 2.6.30 with commit c184dcd282337c09695a4c1761d7ac77fdc8fb7d and fixed in 5.10.270 with commit aaf76794b870b0f391eff339252a2e2e22f33a4a
	Issue introduced in 2.6.30 with commit c184dcd282337c09695a4c1761d7ac77fdc8fb7d and fixed in 5.15.221 with commit f7ff5adb63c1b277565afa54ccc0924d841b4a52
	Issue introduced in 2.6.30 with commit c184dcd282337c09695a4c1761d7ac77fdc8fb7d and fixed in 6.1.188 with commit 140ecbcbf978fbe60f83f8d4f8b1199029a5c763
	Issue introduced in 2.6.30 with commit c184dcd282337c09695a4c1761d7ac77fdc8fb7d and fixed in 6.6.157 with commit ec82b0cf7f75fd95802592dcc9560fc7f529bba4
	Issue introduced in 2.6.30 with commit c184dcd282337c09695a4c1761d7ac77fdc8fb7d and fixed in 6.12.110 with commit 5deec890ecfa04d21cfa9bb9a2fe5e9dc98db5c5
	Issue introduced in 2.6.30 with commit c184dcd282337c09695a4c1761d7ac77fdc8fb7d and fixed in 6.18.51 with commit bf3f49273d5bf6acbdad18ff44c01ffcf7a7a146
	Issue introduced in 2.6.30 with commit c184dcd282337c09695a4c1761d7ac77fdc8fb7d and fixed in 7.2.5 with commit 99cd62b9b1c818d6d01a87be9a8e5796314150a2
	Issue introduced in 2.6.30 with commit c184dcd282337c09695a4c1761d7ac77fdc8fb7d and fixed in 7.3-rc1 with commit 4e143d662ca94888b494b2427fc9e34494eb933a

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-89893

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/cimax2.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/aaf76794b870b0f391eff339252a2e2e22f33a4a
	https://git.kernel.org/stable/c/f7ff5adb63c1b277565afa54ccc0924d841b4a52
	https://git.kernel.org/stable/c/140ecbcbf978fbe60f83f8d4f8b1199029a5c763
	https://git.kernel.org/stable/c/ec82b0cf7f75fd95802592dcc9560fc7f529bba4
	https://git.kernel.org/stable/c/5deec890ecfa04d21cfa9bb9a2fe5e9dc98db5c5
	https://git.kernel.org/stable/c/bf3f49273d5bf6acbdad18ff44c01ffcf7a7a146
	https://git.kernel.org/stable/c/99cd62b9b1c818d6d01a87be9a8e5796314150a2
	https://git.kernel.org/stable/c/4e143d662ca94888b494b2427fc9e34494eb933a