thunderbolt: Reject zero-length property entries in validator
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cdae7c07e3e3509eaabc18c1640a55dc5b99c179 · < 2e0ddac549ebd713eb9f4a15b6496e3440a17d8b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
thunderbolt: Reject zero-length property entries in validator
tb_property_entry_valid() accepts entries with length == 0 for DIRECTORY, DATA, and TEXT types. A zero-length TEXT entry passes validation but causes an underflow in the null-termination logic:
property->value.text[property->length * 4 - 1] = '\0';
When property->length is 0 this writes to offset -1 relative to the allocation.
Reject zero-length entries early in the validator since they have no valid representation in the XDomain property protocol.
From the CVE record · Linux
The Linux kernel’s Thunderbolt property validator accepts zero-length entries that the XDomain property protocol does not allow. A zero-length TEXT entry can cause a write before the allocated buffer. The input does not specify how an attacker could supply such an entry or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified.