CVE-2026-64505: usb: gadget: function: rndis: add length check for header
Greg Kroah-Hartman <[email protected]> Sat, 25 Jul 2026 10:52:02 +0200
| Newsgroups | org.kernel.vger.linux-cve-announce |
|---|---|
| Message-ID | <2026072553-CVE-2026-64505-4f4a@gregkh> |
From: Greg Kroah-Hartman <[email protected]> Description =========== In the Linux kernel, the following vulnerability has been resolved: usb: gadget: function: rndis: add length check for header Add a length check for the rndis header in rndis_rm_hdr, to ensure that MessageType, MessageLength, DataOffset, and DataLength fields are present before they are accessed. The Linux kernel CVE team has assigned CVE-2026-64505 to this issue. Affected and fixed versions =========================== Fixed in 5.10.261 with commit 200dd5092296ad4d5ae47f8445a2fb1edd1da973 Fixed in 5.15.212 with commit 9ffd567d7bf269824dfac06f8ab9a32fef72699b Fixed in 6.1.178 with commit b73c0142e3acdc063b50c33afb7be19cdb2cd410 Fixed in 6.6.145 with commit d6ef5af7d0fe1ac31e5653a77e6d775dd36bc433 Fixed in 6.12.96 with commit ba2cc601e59fe68716646199a33303493513e2e3 Fixed in 6.18.39 with commit 7515a6d4a9e9e4838b833825882efa00e85f8901 Fixed in 7.1.4 with commit 9facd79028a7807879eb441d12f0e00720980aa3 Fixed in 7.2-rc3 with commit 21b5bf155435008e0fb0736795289788e63d426f 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-64505 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/gadget/function/rndis.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/200dd5092296ad4d5ae47f8445a2fb1edd1da973 https://git.kernel.org/stable/c/9ffd567d7bf269824dfac06f8ab9a32fef72699b https://git.kernel.org/stable/c/b73c0142e3acdc063b50c33afb7be19cdb2cd410 https://git.kernel.org/stable/c/d6ef5af7d0fe1ac31e5653a77e6d775dd36bc433 https://git.kernel.org/stable/c/ba2cc601e59fe68716646199a33303493513e2e3 https://git.kernel.org/stable/c/7515a6d4a9e9e4838b833825882efa00e85f8901 https://git.kernel.org/stable/c/9facd79028a7807879eb441d12f0e00720980aa3 https://git.kernel.org/stable/c/21b5bf155435008e0fb0736795289788e63d426f