Memory corruption in HID (CVE-2026-113003)
The SendFeatureReport path in Chromium's HID connection code does not check the buffer size against the device's declared maximum feature report size, unlike the Write path. A web page with WebHID access could therefore send oversized feature reports straight to the OS HID driver, which the reporter suggests may cause a kernel heap overflow on some transport drivers.
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
Report description
WebHID: SendFeatureReport sends oversized buffers to OS HID driver (size check missing vs Write())
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
https://chromium.googlesource.com/chromium/
The problem
Please describe the technical details of the vulnerability
HidConnection::Write validates the buffer size against max_output_report_size before calling PlatformWrite. If the buffer is too large, the call is rejected early. HidConnection::SendFeatureReport doesn't have this check. The buffer goes straight to PlatformSendFeatureReport without any size validation against max_feature_report_size.
Compare both functions in services/device/hid/hid_connection.cc:
// Write - has the check
void HidConnection::Write(...) {
if (buffer->size() > device_info_->max_output_report_size() + 1) {
HID_LOG(USER) << "Output report buffer too long (" << buffer->size()
<< " > " << (device_info_->max_output_report_size() + 1)
<< ").";
std::move(callback).Run(false);
return;
}
// ...
PlatformWrite(buffer, std::move(callback));
}
// SendFeatureReport - no check
void HidConnection::SendFeatureReport(...) {
// NO validation against max_feature_report_size()
DCHECK_GE(buffer->size(), 1u);
// ...
PlatformSendFeatureReport(buffer, std::move(callback));
}
The full call chain from a web page:
- JS calls
device.sendFeatureReport(reportId, data)with arbitrary size HidConnectionImpl::SendFeatureReportprepends the report ID, no size checkHidConnection::SendFeatureReportforwards to platform, no size check- Platform sends to kernel:
The kernel (hidraw_send_report) only checks against HID_MAX_BUFFER_SIZE (16384), not against the device's declared max_feature_report_size. So a 4096-byte buffer goes through for a device that declares 184 bytes max.
Reproduction
Prerequisites: any HID device with feature report support. Tested with MSI Mystic Light (vendorId=0x1462, productId=0x7d27, max_feature_report_size=184 bytes).
- Open the attached PoC HTML in Chrome
- Click "Connect", select the HID device
- Click "Write normal" (184 bytes of 0xAA, within bounds)
- Click "Write oversized" (4096 bytes of 0xBB, 22x the declared max)
- Both writes succeed. Chromium accepts both without distinction.
Kernel-side confirmation via bpftrace:
$ sudo bpftrace -e 'kprobe:hidraw_send_report { printf("count=%d report_type=%d\n", arg2, arg3); }'
count=185 report_type=2 <- reset (184 + 1 byte report ID)
count=185 report_type=2 <- normal write
count=4097 report_type=2 <- oversized write (4096 + 1), should have been rejected
Impact analysis
Any web page granted WebHID device access can send feature reports larger than the device's declared maximum directly to the OS HID driver. The browser doesn't validate the size, and the kernel doesn't check against the device's report descriptor either.
On USB hidraw (Linux), hidraw_send_report allocates dynamically via memdup_user so there's no kernel heap overflow on this specific path. But Chromium can't assume all transport drivers do this. I2C-HID and Bluetooth HID transport drivers often use fixed-size buffers based on the report descriptor, where an oversized write could cause a kernel heap overflow.
The cause
What version of Chrome have you found the security issue in?
147.0.7727.101 stable ; code still in main
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Other
How would you like to be publicly acknowledged for your report?
Florian Pradines
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing size validation in HidConnection::SendFeatureReport, which forwards the buffer to the platform layer without comparing it to max_feature_report_size, unlike the equivalent Write path.
Impact
Any page granted WebHID access could send oversized feature reports to the OS driver; on USB hidraw there is no heap overflow, but the reporter suggests other transport drivers with fixed-size buffers could be overflowed.
What the attacker needed
A HID device with feature report support; user grants WebHID device access
How it was found
- Open the proof-of-concept page in Chrome and click Connect, then select the HID device.
- Click the button that writes a normal-sized feature report within the declared limit.
- Click the button that writes an oversized feature report, far above the declared maximum.
- Observe that both writes are accepted without distinction.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
WebHID lets a web page talk to a plugged-in hardware device, such as a keyboard or a light controller, after the user picks it. Each device says how big a message it can accept, but one code path in the browser forgot to compare the message size against that limit. So a page could push a much larger message than the device allows down to the operating system's driver, which is where things could go wrong.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.