CVE-2026-139045: media: au0828: Free URBs when starting DVB streaming fails
In the Linux kernel, the following vulnerability has been resolved:
media: au0828: Free URBs when starting DVB streaming fails
starturbtransfer() stores each allocated URB in dev->urbs[], but sets urbstreaming only after all URBs have been submitted. If a later URB or transfer buffer allocation fails, earlier entries are left allocated. A submission failure calls stopurbtransfer(), but that function returns immediately while urbstreaming is false, leaving both submitted and unsubmitted URBs behind.
Make stopurbtransfer() release every populated slot regardless of the streaming flag and clear each slot after release. Route all start errors through this cleanup. usbkillurb() safely handles both submitted and unsubmitted URBs, while the existing preallocation check preserves the lifetime of shared transfer buffers.
This issue was found by a static analysis checker and confirmed by manual source review.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the au0828 DVB streaming code, route all start errors through stop_urb_transfer(); make it release every populated dev->urbs[] slot regardless of urb_streaming and clear each slot after release.