usb: early: xhci-dbc: Fix a potential out-of-bound memory access
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: early: xhci-dbc: Fix a potential out-of-bound memory access
If xdbc_bulk_write() fails, the values in 'buf' can be anything. So the string is not guaranteed to be NULL terminated when xdbc_trace() is called.
Reserve an extra byte, which will be zeroed automatically because 'buf' is a static variable, in order to avoid troubles, should it happen.
From the CVE record · Linux
The Linux kernel’s early USB xhci-dbc code may access memory out of bounds when xdbc_bulk_write() fails and xdbc_trace() receives a string that is not guaranteed to be null-terminated. The input does not specify an attacker’s capabilities or whether network access, authentication, or user interaction is required.
Anyone running the Linux kernel should check whether their version is affected; affected versions were not provided.