Description
An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 5.16.10-1 | — |
| Debian 13 | linux | 5.16.10-1 | — |
| Debian 12 | linux | 5.16.10-1 | — |
| Debian 11 | linux | 5.10.92-2 | DSA-5092-1 |
| Debian 10 | linux | 4.19.232-1 | DSA-5096-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | linux | 4.9.303-1 | DLA-2940-1 |
| Debian 9 | linux-4.19 | 4.19.232-1~deb9u1 | DLA-2941-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux-realtime +1 | No fix yet | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-110.124 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-aws +1 | 5.4.0-1073.78 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-aws-5.13 | 5.13.0-1023.25~20.04.1 | USN-5417-1 |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1078.81 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-azure-5.13 | 5.13.0-1023.27~20.04.1 | USN-5417-1 |
| Ubuntu 20.04 LTS | linux-azure-fde | 5.4.0-1078.81+cvm1.1 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1040.44 | — |
| Ubuntu 20.04 LTS | linux-gcp-5.13 | 5.13.0-1025.30~20.04.1 | USN-5417-1 |
| Ubuntu 20.04 LTS | linux-gke | 5.4.0-1071.76 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1040.41 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-hwe-5.13 | 5.13.0-41.46~20.04.1 | USN-5417-1 |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1021.23 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1008.11~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1004.6 | — |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1063.66 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-oem-5.14 | 5.14.0-1027.30 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1071.77 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-oracle-5.13 | 5.13.0-1028.33~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1060.68 | USN-5415-1 |
| Ubuntu 20.04 LTS | linux-riscv +17 | No fix yet | — |
| Ubuntu 18.04 LTS | linux | 4.15.0-177.186 | USN-5418-1 |
| Ubuntu 18.04 LTS | linux-aws | 4.15.0-1128.137 | USN-5418-1 |
| Ubuntu 18.04 LTS | linux-aws-5.4 | 5.4.0-1075.80~18.04.1 | — |
| Ubuntu 18.04 LTS | linux-azure-4.15 | 4.15.0-1138.151 | USN-5418-1 |
| Ubuntu 18.04 LTS | linux-azure-5.4 | 5.4.0-1078.81~18.04.1 | USN-5415-1 |
| Ubuntu 18.04 LTS | linux-dell300x | 4.15.0-1042.47 | USN-5418-1 |
| Ubuntu 18.04 LTS | linux-gcp +12 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp-4.15 | 4.15.0-1122.136 | USN-5418-1 |
| Ubuntu 18.04 LTS | linux-gcp-5.4 | 5.4.0-1073.78~18.04.1 | USN-5415-1 |
| Ubuntu 18.04 LTS | linux-gke-5.4 | 5.4.0-1071.76~18.04.3 | — |
| Ubuntu 18.04 LTS | linux-gkeop-5.4 | 5.4.0-1040.41~18.04.1 | USN-5415-1 |
| Ubuntu 18.04 LTS | linux-hwe-5.4 | 5.4.0-110.124~18.04.1 | USN-5415-1 |
| Ubuntu 18.04 LTS | linux-ibm-5.4 | 5.4.0-1021.23~18.04.1 | USN-5415-1 |
| Ubuntu 18.04 LTS | linux-kvm | 4.15.0-1114.117 | USN-5418-1 |
| Ubuntu 18.04 LTS | linux-oracle | 4.15.0-1093.102 | USN-5418-1 |
| Ubuntu 18.04 LTS | linux-oracle-5.4 | 5.4.0-1071.77~18.04.1 | USN-5415-1 |
| Ubuntu 18.04 LTS | linux-raspi-5.4 | 5.4.0-1060.68~18.04.1 | USN-5415-1 |
| Ubuntu 18.04 LTS | linux-raspi2 | 4.15.0-1109.116 | — |
| Ubuntu 18.04 LTS | linux-snapdragon | 4.15.0-1127.136 | USN-5418-1 |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips +1 | 5.4.0-1073.78+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1078.81+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1049.55 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-aws-fips | 4.15.0-2067.70 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-azure-fips | 4.15.0-2049.53 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips | 4.15.0-1085.94 | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-gcp-fips | 4.15.0-2032.35 | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | 4.4.0-1080.87 | — |
| Ubuntu Pro 16.04 LTS | linux | 4.4.0-230.264 | USN-5540-1 |
| Ubuntu Pro 16.04 LTS | linux-aws | 4.4.0-1146.161 | USN-5540-1 |
| Ubuntu Pro 16.04 LTS | linux-aws-hwe | 4.15.0-1128.137~16.04.1 | USN-5418-1 |
| Ubuntu Pro 16.04 LTS | linux-azure | 4.15.0-1138.151~16.04.1 | USN-5418-1 |
| Ubuntu Pro 16.04 LTS | linux-gcp | 4.15.0-1122.136~16.04.1 | USN-5418-1 |
| Ubuntu Pro 16.04 LTS | linux-hwe | 4.15.0-177.186~16.04.1 | USN-5418-1 |
| Ubuntu Pro 16.04 LTS | linux-kvm | 4.4.0-1111.121 | USN-5540-1 |
| Ubuntu Pro 16.04 LTS | linux-oracle | 4.15.0-1093.102~16.04.1 | USN-5418-1 |
| Ubuntu Pro 14.04 LTS | linux-aws | 4.4.0-1110.116 | USN-5540-1 |
| Ubuntu Pro 14.04 LTS | linux-azure | 4.15.0-1138.151~14.04.1 | USN-5418-1 |
| Ubuntu Pro 14.04 LTS | linux-lts-xenial | 4.4.0-230.264~14.04.1 | USN-5540-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | kernel-64kb +7 | 5.3.18-150300.59.60.4 | SUSE-SU-2022:1039-1 |
| SLES 15 SP3 | kernel-azure +2 | 5.3.18-150300.38.50.1 | SUSE-SU-2022:1037-1 |
| SLES 15 SP3 | kernel-default-base | 5.3.18-150300.59.60.4.150300.18.37.5 | SUSE-SU-2022:1039-1 |
| SLES 15 SP2 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SLES 15 SP2 | kernel-docs +5 | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP2 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SLES for SAP 15 SP2 | kernel-docs +5 | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
| SLE Real Time 15 SP2 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SLE Real Time 15 SP2 | kernel-docs +4 | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
| SLE Micro 5.1 | kernel-default | 5.3.18-150300.59.60.4 | SUSE-SU-2022:1039-1 |
| SLE Micro 5.1 | kernel-default-base | 5.3.18-150300.59.60.4.150300.18.37.5 | SUSE-SU-2022:1039-1 |
| SLE Micro 5.1 | kernel-rt | 5.3.18-150300.82.1 | SUSE-SU-2022:1038-1 |
| SLE Micro 5.0 | kernel-default | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
| SLE Micro 5.0 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SLE Micro 5.0 | kernel-rt | 5.3.18-150200.79.2 | SUSE-SU-2022:1257-1 |
| SLE Live Patching 15 SP3 | kernel-default | 5.3.18-150300.59.60.4 | SUSE-SU-2022:1039-1 |
| SLE Live Patching 15 SP3 | kernel-livepatch-SLE15-SP3_Update_16 | 1-150300.7.5.3 | SUSE-SU-2022:1039-1 |
| SLE Live Patching 15 SP2 | kernel-default | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
| SLE Live Patching 15 SP2 | kernel-livepatch-SLE15-SP2_Update_25 | 1-5.5.1 | SUSE-SU-2022:0759-1 |
| SLE HPC 15 SP2 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SLE HPC 15 SP2 | kernel-docs +5 | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
| SUSE Real Time Module 15 SP3 | kernel-rt +3 | 5.3.18-150300.82.1 | SUSE-SU-2022:1038-1 |
| SUSE Real Time Module 15 SP2 | kernel-rt +2 | 5.3.18-150200.79.2 | SUSE-SU-2022:1257-1 |
| SUSE Real Time Module 15 SP2 | kernel-syms-rt | 5.3.18-150200.79.1 | SUSE-SU-2022:1257-1 |
| SUSE Manager Server 4.1 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SUSE Manager Server 4.1 | kernel-docs +5 | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
| SUSE Manager Retail Branch Server 4.1 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SUSE Manager Retail Branch Server 4.1 | kernel-docs +4 | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
| SUSE Manager Proxy 4.1 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SUSE Manager Proxy 4.1 | kernel-docs +4 | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
| SUSE Enterprise Storage 7 | kernel-default-base | 5.3.18-24.107.1.9.50.2 | SUSE-SU-2022:0759-1 |
| SUSE Enterprise Storage 7 | kernel-docs +5 | 5.3.18-24.107.1 | SUSE-SU-2022:0759-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.3 | dtb-aarch64 +11 | 5.3.18-150300.59.60.4 | openSUSE-SU-2022:1039-1 |
| openSUSE Leap 15.3 | kernel-azure +2 | 5.3.18-150300.38.50.1 | openSUSE-SU-2022:1037-1 |
| openSUSE Leap 15.3 | kernel-default-base | 5.3.18-150300.59.60.4.150300.18.37.5 | openSUSE-SU-2022:1039-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | kernel | 5.15.26.1-1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
szymonh/d-os-descriptor ★ 0 · Feb 15, 2022
CVE-2022-25258 - Demo exploit targeting usb gadget's os descriptor handler
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 17
- USN-5415-1 linux, linux-aws, linux-azure, linux-azure-5.4, linux-azure-fde, linux-gcp, linux-gcp-5.4, linux-gke, linux-gkeop, linux-gkeop-5.4, linux-hwe-5.4, linux-ibm, linux-ibm-5.4, linux-kvm, linux-oracle, linux-oracle-5.4, linux-raspi, linux-raspi-5.4 vulnerabilities Ubuntu Security Notices (USN) · Sep 14, 2026
- USN-5540-1 linux, linux-aws, linux-kvm, linux-lts-xenial vulnerabilities Ubuntu Security Notices (USN) · Sep 10, 2026
- USN-5417-1 linux, linux-aws, linux-aws-5.13, linux-azure, linux-azure-5.13, linux-gcp, linux-gcp-5.13, linux-hwe-5.13, linux-kvm, linux-oracle, linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Sep 10, 2026
- USN-5418-1 linux, linux-aws, linux-aws-hwe, linux-azure, linux-azure-4.15, linux-dell300x, linux-gcp, linux-gcp-4.15, linux-hwe, linux-kvm, linux-oracle, linux-snapdragon vulnerabilities Ubuntu Security Notices (USN) · Sep 9, 2026
- DSA-5092-1 linux - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-5096-1 linux - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2940-1 linux - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2941-1 linux-4.19 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:1257-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:1037-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1038-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:1039-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:0759-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1037-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1039-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-0137 Android Patchday Juni 2022 BSI CERT-Bund (WID) · Jun 24, 2024
- WID-SEC-2022-0853 Linux Kernel: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 7, 2024
References
- https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c
- https://github.com/szymonh/d-os-descriptor
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.16.10
- FEDORA-2022-9d4e48836d vendor-advisory
- DSA-5092 vendor-advisory
- [debian-lts-announce] 20220309 [SECURITY] [DLA 2940-1] linux security update mailing-list
- [debian-lts-announce] 20220309 [SECURITY] [DLA 2941-1] linux-4.19 security update mailing-list
- DSA-5096 vendor-advisory
- https://security.netapp.com/advisory/ntap-20221028-0007/