In the Linux kernel, the following vulnerability has been resolved: usb: gadget: composite: fix integer underflow in WebUSB GET_URL handling The… (CVE-2026-63896)
A vulnerability in the Linux kernel's USB gadget composite driver related to WebUSB GET_URL handling causes an integer underflow. This underflow can lead to an out-of-bounds memory copy when the host supplies a small wLength value, potentially causing memory corruption. The issue arises because the code subtracts a constant from wLength without checking if wLength is smaller than that constant, resulting in an unsigned wraparound. The vulnerability is triggered by a USB host sending a crafted SETUP packet to a gadget with webusb/use=1 and a landingPage configured. The fix involves handling the small wLength case before the arithmetic to prevent the underflow and avoid copying excessive bytes.
AI Analysis
Technical Summary
The Linux kernel's USB gadget composite driver had an integer underflow vulnerability in the WebUSB GET_URL handler within composite_setup(). When the host-supplied wLength is smaller than WEBUSB_URL_DESCRIPTOR_HEADER_LENGTH, subtracting this constant from wLength causes an unsigned integer wraparound. This leads to a memcpy operation copying nearly UINT_MAX bytes from the landing_page buffer into the request buffer, causing out-of-bounds memory access. The vulnerability can be triggered by a single SETUP packet from a USB host targeting any gadget with webusb/use=1 and a configured landingPage. The fix ensures that if wLength is smaller than the header length, landing_page_length is set to landing_page_offset, making the memcpy a no-op and preventing memory corruption.
Potential Impact
This vulnerability allows a USB host to cause an out-of-bounds memory copy in the kernel's USB gadget driver, potentially leading to memory corruption. Such corruption could result in system instability, crashes, or other undefined behavior. There is no evidence of known exploits in the wild. The impact is limited to systems running vulnerable Linux kernel versions with USB gadgets configured with webusb/use=1 and a landingPage.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates that a fix has been implemented in the Linux kernel source code by handling the small wLength case before performing arithmetic to prevent integer underflow. Users should monitor official Linux kernel advisories and apply updates when available. In the meantime, disabling or avoiding use of USB gadgets with webusb/use=1 and landingPage configured may reduce exposure.
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: composite: fix integer underflow in WebUSB GET_URL handling The… (CVE-2026-63896)
Description
A vulnerability in the Linux kernel's USB gadget composite driver related to WebUSB GET_URL handling causes an integer underflow. This underflow can lead to an out-of-bounds memory copy when the host supplies a small wLength value, potentially causing memory corruption. The issue arises because the code subtracts a constant from wLength without checking if wLength is smaller than that constant, resulting in an unsigned wraparound. The vulnerability is triggered by a USB host sending a crafted SETUP packet to a gadget with webusb/use=1 and a landingPage configured. The fix involves handling the small wLength case before the arithmetic to prevent the underflow and avoid copying excessive bytes.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's USB gadget composite driver had an integer underflow vulnerability in the WebUSB GET_URL handler within composite_setup(). When the host-supplied wLength is smaller than WEBUSB_URL_DESCRIPTOR_HEADER_LENGTH, subtracting this constant from wLength causes an unsigned integer wraparound. This leads to a memcpy operation copying nearly UINT_MAX bytes from the landing_page buffer into the request buffer, causing out-of-bounds memory access. The vulnerability can be triggered by a single SETUP packet from a USB host targeting any gadget with webusb/use=1 and a configured landingPage. The fix ensures that if wLength is smaller than the header length, landing_page_length is set to landing_page_offset, making the memcpy a no-op and preventing memory corruption.
Potential Impact
This vulnerability allows a USB host to cause an out-of-bounds memory copy in the kernel's USB gadget driver, potentially leading to memory corruption. Such corruption could result in system instability, crashes, or other undefined behavior. There is no evidence of known exploits in the wild. The impact is limited to systems running vulnerable Linux kernel versions with USB gadgets configured with webusb/use=1 and a landingPage.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates that a fix has been implemented in the Linux kernel source code by handling the small wLength case before performing arithmetic to prevent integer underflow. Users should monitor official Linux kernel advisories and apply updates when available. In the meantime, disabling or avoiding use of USB gadgets with webusb/use=1 and landingPage configured may reduce exposure.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5hvq-fg66-prgg
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63896"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27ab2a4a8d598912ffb8
Added to database: 07/19/2026, 19:38:19 UTC
Last enriched: 07/19/2026, 20:12:32 UTC
Last updated: 07/20/2026, 17:26:47 UTC
Views: 12
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.