thunderbolt: Clamp XDomain response data copy to allocation size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · < fcbd0cdab92838854a5818be7ed8a097164ef6d5| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
thunderbolt: Clamp XDomain response data copy to allocation size
tb_xdp_properties_request() derives the per-packet copy length from the response header without checking that it fits in the previously allocated data buffer. A malicious peer can set its length field larger than the declared data_length, causing memcpy to write past the kcalloc allocation.
Clamp the per-packet copy length so that the cumulative offset never exceeds data_len.
From the CVE record · Linux
The Thunderbolt XDomain response handler can copy response data past an allocated buffer. A malicious peer can trigger the out-of-bounds write by setting a response length larger than the declared data length; the input does not specify authentication or user-interaction requirements.
Engineers running the Linux kernel should check affected versions against the vendor advisory; no affected version range was provided.