CVE-2026-80826: USB: c67x00: fix use-after-free in c67x00_add_iso_urb()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
USB: c67x00: fix use-after-free in c67x00_add_iso_urb()
When TD creation fails for the last packet of an isochronous URB, c67x00_add_iso_urb() gives the URB back before updating the endpoint scheduling state.
c67x00_giveback_urb() frees the URB private data, and the completion callback may release the final URB reference. The following accesses to urbp->ep_data, urb->interval, and urbp->cnt can therefore use freed memory.
Update next_frame and cnt before giving back the failed final packet, making the giveback the last operation that uses the URB and its private data.
The Linux kernel CVE team has assigned CVE-2026-80826 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 5.10.269 with commit e4039e9bebb528dd9cd7ac72aeaec529c26c355a Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 5.15.220 with commit ade18b4ce78a16558f4f435aece80082f6f7b64c Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 6.1.187 with commit bb572801290e25ec1c4753d14af35777303f5d6b Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 6.6.156 with commit 62cd519ab74cac499036cd88c11692f8f0d53e14 Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 6.12.108 with commit ff172092cba7ec990ecc7b610ce703e19570b8f0 Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 6.18.49 with commit b4cb8081cf80f82e48fbe9c021a8f6d0fa2ed421 Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 7.1.13 with commit 7983daa159981fac125db2457437723f38ea1472 Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 7.2.3 with commit f24dcc61bd0ecf7639fac5bf700450b398d793a7 Issue introduced in 2.6.26 with commit e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d and fixed in 7.3-rc1 with commit b1e24de475bf2d66fffc9103f3444b783527d55a
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-80826
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/usb/c67x00/c67x00-sched.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/e4039e9bebb528dd9cd7ac72aeaec529c26c355a https://git.kernel.org/stable/c/ade18b4ce78a16558f4f435aece80082f6f7b64c https://git.kernel.org/stable/c/bb572801290e25ec1c4753d14af35777303f5d6b https://git.kernel.org/stable/c/62cd519ab74cac499036cd88c11692f8f0d53e14 https://git.kernel.org/stable/c/ff172092cba7ec990ecc7b610ce703e19570b8f0 https://git.kernel.org/stable/c/b4cb8081cf80f82e48fbe9c021a8f6d0fa2ed421 https://git.kernel.org/stable/c/7983daa159981fac125db2457437723f38ea1472 https://git.kernel.org/stable/c/f24dcc61bd0ecf7639fac5bf700450b398d793a7 https://git.kernel.org/stable/c/b1e24de475bf2d66fffc9103f3444b783527d55a