# CVE-2026-31754: linux: In the Linux kernel, the following vulnerability has been resolved:  usb: cdns3: gadget: fix state inconsistency on g...

CVE-2026-31754 is fixed in 16 products on 1 platform, first by DEBIAN-CVE-2026-31754, released May 15, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2026-31754
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0012
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 1, 2026

## Description

In the Linux kernel, the following vulnerability has been resolved:  usb: cdns3: gadget: fix state inconsistency on gadget init failure  When cdns3_gadget_start() fails, the DRD hardware is left in gadget mode while software state remains INACTIVE, creating hardware/software state inconsistency.  When switching to host mode via sysfs:   echo host > /sys/class/usb_role/13180000.usb-role-switch/role  The role state is not set to CDNS_ROLE_STATE_ACTIVE due to the error, so cdns_role_stop() skips cleanup because state is still INACTIVE. This violates the DRD controller design specification (Figure22), which requires returning to idle state before switching roles.  This leads to a synchronous external abort in xhci_gen_setup() when setting up the host controller:  [  516.440698] configfs-gadget 13180000.usb: failed to start g1: -19 [  516.442035] cdns-usb3 13180000.usb: Failed to add gadget [  516.443278] cdns-usb3 13180000.usb: set role 2 has failed ... [ 1301.375722] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 1301.377716] Internal error: synchronous external abort: 96000010 [#1] PREEMPT SMP [ 1301.382485] pc : xhci_gen_setup+0xa4/0x408 [ 1301.393391] backtrace:     ...     xhci_gen_setup+0xa4/0x408    <-- CRASH     xhci_plat_setup+0x44/0x58     usb_add_hcd+0x284/0x678     ...     cdns_role_set+0x9c/0xbc        <-- Role switch  Fix by calling cdns_drd_gadget_off() in the error path to properly clean up the DRD gadget state.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | dtb-aarch64 opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-64kb opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-64kb sles 15.7 | 6.4.0-150700.53.73.2 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-64kb sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | kernel-azure opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-azure sles 15.7 | 6.4.0-150700.53.73.2 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-azure sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | kernel-default opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-default sles 15.7 | 6.4.0-150700.53.73.2 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-default sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23237-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23237-1.md) | Aug 11, 2026 |
| Linux | kernel-default-base opensuse-leap 16.0 | 6.12.0-160000.37.1.160000.2.19 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-default-base sles 15.7 | 6.4.0-150700.53.73.2.150700.17.41.4 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-default-base sles 16.0 | 6.12.0-160000.37.1.160000.2.19 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | kernel-docs opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-docs sles 15.7 | 6.4.0-150700.53.73.1 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-docs sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | kernel-kvmsmall opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-kvmsmall sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | kernel-livepatch-SLE15-SP7-RT_Update_18 sles 15.7 | 1-150700.1.5.1 | [SUSE-SU-2026:3130-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3130-1.md) | Jul 20, 2026 |
| Linux | kernel-livepatch-SLE15-SP7_Update_19 sles 15.7 | 1-150700.15.3.4 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-obs-build opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-obs-build sles 15.7 | 6.4.0-150700.53.73.2 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-obs-qa opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-obs-qa sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | kernel-rt opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-source opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-source sles 15.7 | 6.4.0-150700.53.73.1 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-source sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | kernel-syms opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-syms sles 15.7 | 6.4.0-150700.53.73.1 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-syms sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | kernel-zfcpdump opensuse-leap 16.0 | 6.12.0-160000.37.1 | [OPENSUSE-SU-2026:21555-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-21555-1.md) | Aug 12, 2026 |
| Linux | kernel-zfcpdump sles 15.7 | 6.4.0-150700.53.73.2 | [SUSE-SU-2026:3166-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-3166-1.md) | Jul 21, 2026 |
| Linux | kernel-zfcpdump sles 16.0 | 6.12.0-160000.37.1 | [SUSE-SU-2026:23231-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-23231-1.md) | Aug 11, 2026 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.170-1 | [DEBIAN-CVE-2026-31754](https://patchblox.com/security/data/fix/linux/debian-cve-2026-31754.md) | May 15, 2026 |
| Linux | linux Debian 13.5 (trixie) | 6.12.85-1 | [DEBIAN-CVE-2026-31754](https://patchblox.com/security/data/fix/linux/debian-cve-2026-31754.md) | May 15, 2026 |
| Linux | linux Debian 14 | 6.19.12-1 | [DEBIAN-CVE-2026-31754](https://patchblox.com/security/data/fix/linux/debian-cve-2026-31754.md) | May 15, 2026 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
