Skip to contentSkip to conversation

CVE-2026-99512: media: au0828: fix use-after-free in bulk_timeout timer on disconnect

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: au0828: fix use-after-free in bulk_timeout timer on disconnect

start_urb_transfer() arms dev->bulk_timeout, whose callback au0828_bulk_timeout() queues dev->restart_streaming; that work in turn calls start_urb_transfer() and re-arms the timer.

au0828_dvb_unregister() cancels restart_streaming on disconnect but does not sync bulk_timeout. au0828_usb_release() then frees dev with kfree(), so a timer still armed or pending at that point can fire after the free and dereference dev through timer_container_of().

Sync the timer with timer_shutdown_sync() before cancel_work_sync(). The timer callback queues the work, so the timer must be stopped first; the shutdown variant is needed because the work re-arms the timer through start_urb_transfer(). The dvb->frontend == NULL early return guards the register-failure path where the timer was never set up.

This bug was found by static analysis.

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

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

	Issue introduced in 4.13 with commit 53460c53b7619c14e8564a3ba2c60fc27f303f6b and fixed in 6.12.117 with commit 0cfc8c1884451c4c3839dfeb1e0e2b008bc00efc
	Issue introduced in 4.13 with commit 53460c53b7619c14e8564a3ba2c60fc27f303f6b and fixed in 6.18.61 with commit 95a1f45a82e51ff23bd82c0529bfd817c8ec437f
	Issue introduced in 4.13 with commit 53460c53b7619c14e8564a3ba2c60fc27f303f6b and fixed in 7.3.2 with commit 5e30e92df3a0fb3985f3686536065219c28dd65d
	Issue introduced in 4.13 with commit 53460c53b7619c14e8564a3ba2c60fc27f303f6b and fixed in 7.4-rc1 with commit 521030837bee352515d5ea57cc6a29581db3506e

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

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/usb/au0828/au0828-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/0cfc8c1884451c4c3839dfeb1e0e2b008bc00efc
	https://git.kernel.org/stable/c/95a1f45a82e51ff23bd82c0529bfd817c8ec437f
	https://git.kernel.org/stable/c/5e30e92df3a0fb3985f3686536065219c28dd65d
	https://git.kernel.org/stable/c/521030837bee352515d5ea57cc6a29581db3506e