cve.bz

CVE-2026-31607 linux linux kernel: Out-of-bounds Write

9.8 criticalEPSS 0.3%Fix available

Critical (9.8) in linux linux kernel. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: usbip: validate number_of_packets in usbip_pack_ret_submit() When a USB/IP client receives a RET_SUBMIT response, usbip_pack_ret_submit() unconditionally overwrites urb->number_of_packets from the network PDU. This value is subsequently used as the loop bound in usbip_recv_iso() and usbip_pad_iso() to iterate over urb->iso_frame_desc[], a flexible array whose size was fixed at URB allocation time based on the *original* number_of_packets from the CMD_SUBMIT. A malicious USB/IP server can set number_of_packets in the response to a value larger than what was originally submitted, causing a heap out-of-bounds write when usbip_recv_iso() writes to urb->iso_frame_desc[i] beyond the allocated region. KASAN confirmed this with kernel 7.0.0-rc5: BUG: KASAN: slab-out-of-bounds in usbip_recv_iso+0x46a/0x640 Write of size 4 at addr ffff888106351d40 by task vhci_rx/69 The buggy address is located 0 bytes to the right of allocated 320-byte region [ffff888106351c00, ffff888106351d40) The server side (stub_rx.c) and gadget side (vudc_rx.c) already validate number_of_packets in the CMD_SUBMIT path since commits c6688ef9f297 ("usbip: fix stub_rx: harden CMD_SUBMIT path to handle malicious input") and b78d830f0049 ("usbip: fix vudc_rx: harden CMD_SUBMIT path to handle malicious input"). The server side validates against USBIP_MAX_ISO_PACKETS because no URB exists yet at that point. On the client side we have the original URB, so we can use the tighter bound: the response must not exceed the original number_of_packets. This mirrors the existing validation of actual_length against transfer_buffer_length in usbip_recv_xbuff(), which checks the response value against the original allocation size. Kelvin Mbogo's series ("usb: usbip: fix integer overflow in usbip_recv_iso()", v2) hardens the receive-side functions themselves; this patch complements that work by catching the bad value at its source -- in usbip_pack_ret_submit() before the overwrite -- and using the tighter per-URB allocation bound rather than the global USBIP_MAX_ISO_PACKETS limit. Fix this by checking rpdu->number_of_packets against urb->number_of_packets in usbip_pack_ret_submit() before the overwrite. On violation, clamp to zero so that usbip_recv_iso() and usbip_pad_iso() safely return early.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 24th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-10-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-805 Buffer Access with Incorrect Length Value
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-31607 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-31607?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-31607?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-31607 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 2.6.32.37 before 2.6.33
Linuxfrom 2.6.33.10 before 2.6.34
Linuxfrom 2.6.34.11 before 2.6.35
Linuxfrom 2.6.35.13 before 2.6.36
Linuxfrom 2.6.38.3 before 2.6.39
Linux2.6.39 and later

Fixed in

ProductRelease lineFixed in
Linux5.105.10.258
Linux5.155.15.209
Linux6.16.1.175
Linux6.66.6.136
Linux6.126.12.83
Linux6.186.18.24
Linux6.196.19.14
Linux7.07.0.1
Linuxlater releases7.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.176-1DEBIAN-CVE-2026-31607
Debian13linux6.12.85-1DEBIAN-CVE-2026-31607
Debian14linux6.19.14-1DEBIAN-CVE-2026-31607
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2026-31607
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2026-31607
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2026-31607
Ubuntu22.04:LTSlinux5.15.0-185.195UBUNTU-CVE-2026-31607 USN-8493-1
Ubuntu22.04:LTSlinux-aws5.15.0-1111.118UBUNTU-CVE-2026-31607 USN-8493-1
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1060.63~22.04.1UBUNTU-CVE-2026-31607 USN-8492-2
Ubuntu22.04:LTSlinux-azure, linux-azure-fde5.15.0-1116.125UBUNTU-CVE-2026-31607 USN-8493-1
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1063.71~22.04.1UBUNTU-CVE-2026-31607 USN-8606-1
Ubuntu22.04:LTSlinux-azure-fde-6.86.8.0-1062.69~22.04.1UBUNTU-CVE-2026-31607 USN-8609-1
Ubuntu22.04:LTSlinux-gcp5.15.0-1111.121UBUNTU-CVE-2026-31607 USN-8493-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1063.69~22.04.1UBUNTU-CVE-2026-31607 USN-8492-2
Ubuntu22.04:LTSlinux-gke5.15.0-1107.113UBUNTU-CVE-2026-31607 USN-8493-1
154 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-687.10.1.el9_8RHSA-2026:19568
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-687.10.1.el9_8RHSA-2026:19568
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-687.10.1.el9_8RHSA-2026:19568
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-687.10.1.el9_8RHSA-2026:19568
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-687.10.1.el9_8RHSA-2026:19568
Red Hatenterprise_linux:10.2rv, perf, rtla and 87 more0:6.12.0-211.16.1.el10_2RHSA-2026:19569
Red Hatenterprise_linux_eus:10.0rv, perf, rtla and 88 more0:6.12.0-55.77.1.el10_0RHSA-2026:24343
Red Hatrhel_els:7perf, kernel, bpftool and 23 more0:3.10.0-1160.151.1.el7RHSA-2026:25095
Red Hatrhel_eus:9.6::appstreamrv, perf, rtla and 29 more0:5.14.0-570.119.1.el9_6RHSA-2026:23224
Red Hatrhel_eus:9.6::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.119.1.el9_6RHSA-2026:23224
Red Hatrhel_eus:9.6::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.119.1.el9_6RHSA-2026:23224
Red Hatrhel_eus:9.6::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-570.119.1.el9_6RHSA-2026:23224
2 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6kernel-default6.4.0-150600.23.112.1SUSE-SU-2026:2195-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.55.1SUSE-SU-2026:2238-1
SUSELinux Enterprise High Availability Extension 16.0kernel-default6.12.0-160000.37.1SUSE-SU-2026:23237-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_261-150600.13.3.1SUSE-SU-2026:2195-1
SUSELinux Enterprise Live Patching 15 SP7kernel-livepatch-SLE15-SP7_Update_151-150700.15.3.1SUSE-SU-2026:2238-1
SUSELinux Enterprise Module for Basesystem 15 SP7kernel-64kb, kernel-source, kernel-default and 1 more6.4.0-150700.53.55.1SUSE-SU-2026:2238-1
SUSELinux Enterprise Module for Basesystem 15 SP7kernel-default-base6.4.0-150700.53.55.1.150700.17.33.1SUSE-SU-2026:2238-1
SUSELinux Enterprise Module for Development Tools 15 SP7kernel-docs, kernel-syms, kernel-source and 1 more6.4.0-150700.53.55.1SUSE-SU-2026:2238-1
SUSELinux Enterprise Module for Public Cloud 15 SP7kernel-azure6.4.0-150700.53.55.1SUSE-SU-2026:2238-1
SUSELinux Enterprise Server 11 SP4 LTSS EXTREME COREkernel-ec2, kernel-xen, kernel-docs and 4 more3.0.101-108.210.1SUSE-SU-2026:2317-1
SUSELinux Enterprise Server 15 SP6-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more6.4.0-150600.23.112.1SUSE-SU-2026:2195-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6kernel-default-base6.4.0-150600.23.112.1.150600.12.52.1SUSE-SU-2026:2195-1
6 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0kernel-default-base6.12.0-160000.37.1.160000.2.19openSUSE-SU-2026:21555-1
openSUSELeap 16.0kernel-rt, dtb-aarch64, kernel-64kb and 9 more6.12.0-160000.37.1openSUSE-SU-2026:21555-1
openSUSETumbleweedkernel-source7.0.3-1.1openSUSE-SU-2026:10703-1
AlmaLinux9rv, perf, rtla and 71 more5.14.0-687.10.1.el9_8ALSA-2026:19568
AlmaLinux10rv, perf, rtla and 72 more6.12.0-211.16.1.el10_2ALSA-2026:19569
Rocky Linux9kernel0:5.14.0-687.10.1.el9_8.0.1RLSA-2026:19568
Rocky Linux10kernel0:6.12.0-211.16.1.el10_2.0.1RLSA-2026:19569
Azure Linux3kernel6.6.137.1-1AZL-83642
Alpaquita23linux-lts6.1.175-r0BELL-CVE-2026-31607
Alpaquita25linux-lts6.12.85-r0BELL-CVE-2026-31607
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2026-31607

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

To mitigate this vulnerability, prevent the `usbip` kernel module from loading by blacklisting it. Create a file named `/etc/modprobe.d/blacklist-usbip.conf` with the following content:

```

blacklist usbip

```

After creating the file, regenerate the initramfs and reboot the system for the changes to take effect. This may impact functionality that relies on USB/IP.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-211.16.1.el10_2Fixed 2026-05-20RHSA-2026:19569
Red Hat Enterprise Linux 10.0 Extended Update Supportkernel-0:6.12.0-55.77.1.el10_0Fixed 2026-06-08RHSA-2026:24343
Red Hat Enterprise Linux 7 Extended Lifecycle Supportkernel-rt-0:3.10.0-1160.155.1.rt56.1307.el7Fixed 2026-07-17RHSA-2026:41236
Red Hat Enterprise Linux 7 Extended Lifecycle Supportkernel-0:3.10.0-1160.151.1.el7Fixed 2026-06-10RHSA-2026:25095
Red Hat Enterprise Linux 9kernel-0:5.14.0-687.10.1.el9_8Fixed 2026-05-20RHSA-2026:19568
Red Hat Enterprise Linux 9.6 Extended Update Supportkernel-0:5.14.0-570.119.1.el9_6Fixed 2026-06-04RHSA-2026:23224
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-31607.

Attack patterns (CAPEC)

  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High
  • CAPEC-256 SOAP Array Overflow Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON