Description
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: ncm: Fix handling of zero block length packets
While connecting to a Linux host with CDC_NCM_NTB_DEF_SIZE_TX
set to 65536, it has been observed that we receive short packets,
which come at interval of 5-10 seconds sometimes and have block
length zero but still contain 1-2 valid datagrams present.
According to the NCM spec:
"If wBlockLength = 0x0000, the block is terminated by a
short packet. In this case, the USB transfer must still
be shorter than dwNtbInMaxSize or dwNtbOutMaxSize. If
exactly dwNtbInMaxSize or dwNtbOutMaxSize bytes are sent,
and the size is a multiple of wMaxPacketSize for the
given pipe, then no ZLP shall be sent.
wBlockLength= 0x0000 must be used with extreme care, because
of the possibility that the host and device may get out of
sync, and because of test issues.
wBlockLength = 0x0000 allows the sender to reduce latency by
starting to send a very large NTB, and then shortening it when
the sender discovers that there’s not sufficient data to justify
sending a large NTB"
However, there is a potential issue with the current implementation,
as it checks for the occurrence of multiple NTBs in a single
giveback by verifying if the leftover bytes to be processed is zero
or not. If the block length reads zero, we would process the same
NTB infintely because the leftover bytes is never zero and it leads
to a crash. Fix this by bailing out if block length reads zero.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.19.297 – < 4.19.312, 5.4.259 – < 5.4.274, 5.10.199 – < 5.10.215, 5.15.136 – < 5.15.154, 6.1.59 – < 6.1.84, 4.14.328 – < 4.15, 6.5.8 – < 6.6, 6.6 | 4.19.312 |
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 | 6.7.12-1 | — |
| Debian 13 | linux | 6.7.12-1 | — |
| Debian 12 | linux | 6.1.85-1 | — |
| Debian 10 | linux | 4.19.316-1 | DLA-3840-1 |
| Debian 10 | linux-5.10 | 5.10.216-1~deb10u1 | DLA-3842-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | 5.15.0-1047.49 | — |
| Ubuntu 22.04 LTS | linux +1 | 5.15.0-116.126 | USN-6898-2, USN-6898-1 |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1065.71 | USN-6898-3 |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1068.77 | USN-6917-1 |
| Ubuntu 22.04 LTS | linux-azure-fde | 5.15.0-1068.77.1 | USN-6917-1 |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1064.72 | USN-6898-1 |
| Ubuntu 22.04 LTS | linux-gke | 5.15.0-1062.68 | USN-6898-1 |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1048.55 | USN-6898-1 |
| Ubuntu 22.04 LTS | linux-ibm +1 | 5.15.0-1058.61 | USN-6919-1, USN-6898-1 |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1060.66 | USN-6898-1 |
| Ubuntu 22.04 LTS | linux-kvm | 5.15.0-1062.67 | USN-6898-1 |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1060.61 | USN-6898-1 |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1063.69 | USN-6898-1 |
| Ubuntu 22.04 LTS | linux-riscv +31 | No fix yet | — |
| Ubuntu 22.04 LTS | linux-xilinx-zynqmp | 5.15.0-1035.39 | USN-7019-1 |
| Ubuntu 20.04 LTS | linux | 5.4.0-189.209 | USN-6896-1 |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1128.138 | USN-6896-5 |
| Ubuntu 20.04 LTS | linux-aws-5.15 | 5.15.0-1065.71~20.04.1 | USN-6898-4 |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1133.140 | USN-6896-1 |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1068.77~20.04.1 | USN-6917-1 |
| Ubuntu 20.04 LTS | linux-azure-fde-5.15 | 5.15.0-1068.77~20.04.1.1 | USN-6917-1 |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1088.95 | USN-6896-1 |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1132.141 | USN-6896-1 |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1065.73~20.04.1 | USN-6927-1 |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1095.99 | USN-6896-1 |
| Ubuntu 20.04 LTS | linux-gkeop-5.15 | 5.15.0-1048.55~20.04.1 | USN-6898-1 |
| Ubuntu 20.04 LTS | linux-hwe-5.15 +1 | 5.15.0-116.126~20.04.1 | USN-6898-3, USN-6898-2 |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1075.80 | USN-6896-1 |
| Ubuntu 20.04 LTS | linux-ibm-5.15 | 5.15.0-1058.61~20.04.1 | USN-6898-2 |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1060.66~20.04.1 | USN-6898-1 |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1040.41 | USN-6896-5 |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1116.123 | USN-6896-1 |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1127.136 | USN-6896-3 |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1063.69~20.04.1 | USN-6898-2 |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1112.124 | USN-6896-4 |
| Ubuntu 20.04 LTS | linux-riscv-5.15 | 5.15.0-1061.65~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-xilinx-zynqmp | 5.4.0-1047.51 | USN-6896-3 |
| Ubuntu 18.04 LTS | linux-gcp +13 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro Realtime 24.04 LTS | linux-raspi-realtime | 6.8.0-2002.2 | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-intel-iot-realtime | 5.15.0-1058.60 | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime | 5.15.0-1066.74 | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-aws-fips | 5.15.0-1065.71+fips1 | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-azure-fips | 5.15.0-1068.77+fips1 | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips | 5.15.0-115.125+fips1 | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-gcp-fips | 5.15.0-1064.72+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1128.138+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1133.140+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1102.112 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1132.141+fips1 | — |
| Ubuntu Pro 18.04 LTS | linux-aws-5.4 | 5.4.0-1128.138~18.04.1 | USN-6896-5 |
| Ubuntu Pro 18.04 LTS | linux-azure-5.4 | 5.4.0-1133.140~18.04.1 | USN-6896-1 |
| Ubuntu Pro 18.04 LTS | linux-gcp-5.4 | 5.4.0-1132.141~18.04.1 | USN-6896-1 |
| Ubuntu Pro 18.04 LTS | linux-hwe-5.4 | 5.4.0-189.209~18.04.1 | USN-6896-2 |
| Ubuntu Pro 18.04 LTS | linux-ibm-5.4 | 5.4.0-1075.80~18.04.1 | USN-6896-1 |
| Ubuntu Pro 18.04 LTS | linux-oracle-5.4 | 5.4.0-1127.136~18.04.1 | USN-6896-2 |
| Ubuntu Pro 18.04 LTS | linux-raspi-5.4 | 5.4.0-1112.124~18.04.1 | USN-6896-4 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | kernel-64kb +3 | 6.4.0-150600.23.7.3 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-azure +1 | 6.4.0-150600.8.5.4 | SUSE-SU-2024:2135-1 |
| SLES 15 SP6 | kernel-default-base | 6.4.0-150600.23.7.3.150600.12.2.7 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-docs | 6.4.0-150600.23.7.4 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-source | 6.4.0-150600.23.7.2 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-syms | 6.4.0-150600.23.7.1 | SUSE-SU-2024:2203-1 |
| SLES 15 SP6 | kernel-syms-azure | 6.4.0-150600.8.5.1 | SUSE-SU-2024:2135-1 |
| SLES 15 SP5 | kernel-64kb +6 | 5.14.21-150500.55.68.1 | SUSE-SU-2024:2190-1 |
| SLES 15 SP5 | kernel-azure +2 | 5.14.21-150500.33.57.1 | SUSE-SU-2024:2019-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.68.1.150500.6.31.1 | SUSE-SU-2024:2190-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLE Micro 6.1 | kernel-livepatch-MICRO-6-0-RT_Update_5 | 1-1.1 | SUSE-SU-2025:20249-1 |
| SLE Micro 6.1 | kernel-rt +1 | 6.4.0-25.1 | SUSE-SU-2025:20249-1 |
| SLE Micro 6.0 | kernel-default-base | 6.4.0-17.1.1.51 | SUSE-SU-2025:20008-1 |
| SLE Micro 6.0 | kernel-livepatch-MICRO-6-0-RT_Update_5 | 1-1.1 | SUSE-SU-2025:20166-1 |
| SLE Micro 6.0 | kernel-rt +1 | 6.4.0-9.1 | SUSE-SU-2025:20166-1, SUSE-SU-2025:20028-1 |
| SLE Micro 6.0 | kernel-source +2 | 6.4.0-18.1 | SUSE-SU-2025:20008-1 |
| SLE Micro 5.5 | kernel-default | 5.14.21-150500.55.68.1 | SUSE-SU-2024:2190-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.68.1.150500.6.31.1 | SUSE-SU-2024:2190-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.58.1 | SUSE-SU-2024:2008-1 |
| SLE Live Patching 15 SP6 | kernel-default | 6.4.0-150600.23.7.3 | SUSE-SU-2024:2203-1 |
| SLE Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6-RT_Update_1 | 1-150600.1.5.1 | SUSE-SU-2024:2973-1 |
| SLE Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6_Update_1 | 1-150600.13.3.7 | SUSE-SU-2024:2203-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.68.1 | SUSE-SU-2024:2190-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_15 +1 | 1-150500.11.3.1 | SUSE-SU-2024:2190-1, SUSE-SU-2024:2008-1 |
| SUSE Real Time Module 15 SP6 | kernel-rt +3 | 6.4.0-150600.10.5.1 | SUSE-SU-2024:2973-1 |
| SUSE Real Time Module 15 SP5 | kernel-rt +3 | 5.14.21-150500.13.58.1 | SUSE-SU-2024:2008-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.6 | dtb-aarch64 +2 | 6.4.0-150600.23.7.1 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-64kb +5 | 6.4.0-150600.23.7.3 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-azure +1 | 6.4.0-150600.8.5.4 | SUSE-SU-2024:2135-1 |
| openSUSE Leap 15.6 | kernel-default-base | 6.4.0-150600.23.7.3.150600.12.2.7 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-docs | 6.4.0-150600.23.7.4 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-rt +3 | 6.4.0-150600.10.5.1 | SUSE-SU-2024:2973-1 |
| openSUSE Leap 15.6 | kernel-source | 6.4.0-150600.23.7.2 | SUSE-SU-2024:2203-1 |
| openSUSE Leap 15.6 | kernel-syms-azure | 6.4.0-150600.8.5.1 | SUSE-SU-2024:2135-1 |
| openSUSE Leap 15.5 | dtb-aarch64 +10 | 5.14.21-150500.55.68.1 | SUSE-SU-2024:2190-1 |
| openSUSE Leap 15.5 | kernel-azure +2 | 5.14.21-150500.33.57.1 | SUSE-SU-2024:2019-1 |
| openSUSE Leap 15.5 | kernel-default-base | 5.14.21-150500.55.68.1.150500.6.31.1 | SUSE-SU-2024:2190-1 |
| openSUSE Leap 15.5 | kernel-rt +3 | 5.14.21-150500.13.58.1 | SUSE-SU-2024:2008-1 |
Advisories 26
- WID-SEC-2024-1188 Linux Kernel: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Nov 9, 2026
- USN-6896-1 linux, linux-azure, linux-azure-5.4, linux-bluefield, linux-gcp, linux-gcp-5.4, linux-gkeop, linux-ibm, linux-ibm-5.4, linux-kvm vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6919-1 linux-raspi vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6896-5 linux-aws, linux-aws-5.4, linux-iot vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6896-3 linux-oracle, linux-xilinx-zynqmp vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6896-2 linux-hwe-5.4, linux-oracle-5.4 vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6896-4 linux-raspi, linux-raspi-5.4 vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-7019-1 linux-xilinx-zynqmp vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-6917-1 linux-azure, linux-azure-5.15, linux-azure-fde, linux-azure-fde-5.15 vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-6927-1 linux-gcp-5.15 vulnerabilities Ubuntu Security Notices (USN) · Oct 26, 2026
- USN-6898-1 linux, linux-gcp, linux-gke, linux-gkeop, linux-gkeop-5.15, linux-ibm, linux-intel-iotg, linux-intel-iotg-5.15, linux-kvm, linux-nvidia, linux-oracle vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6898-2 linux-ibm-5.15, linux-lowlatency, linux-lowlatency-hwe-5.15, linux-oracle-5.15 vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6898-3 linux-aws, linux-hwe-5.15 vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- USN-6898-4 linux-aws-5.15 vulnerabilities Ubuntu Security Notices (USN) · Oct 23, 2026
- SUSE-SU-2025:20166-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:20008-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:20028-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:20249-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-3840-1 linux - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3842-1 linux-5.10 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2024:2973-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2019-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2190-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2008-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2135-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2203-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
References
- https://git.kernel.org/stable/c/e2dbfea520e60d58e0c498ba41bde10452257779
- https://git.kernel.org/stable/c/a766761d206e7c36d7526e0ae749949d17ca582c
- https://git.kernel.org/stable/c/ef846cdbd100f7f9dc045e8bcd7fe4b3a3713c03
- https://git.kernel.org/stable/c/92b051b87658df7649ffcdef522593f21a2b296b
- https://git.kernel.org/stable/c/7664ee8bd80309b90d53488b619764f0a057f2b7
- https://git.kernel.org/stable/c/a0f77b5d6067285b8eca0ee3bd1e448a6258026f
- https://git.kernel.org/stable/c/6b2c73111a252263807b7598682663dc33aa4b4c
- https://git.kernel.org/stable/c/f90ce1e04cbcc76639d6cba0fdbd820cd80b3c70