hwmon: occ: validate poll response sensor blocks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ aa195fe49b033db545ad986cdb2c431c37bea557 · < b042e538e98b939fccfffc464e2c34c29f0e96ef| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
hwmon: occ: validate poll response sensor blocks
The OCC poll response parser walks a counted list of sensor data blocks. It used the static backing-array capacity as the parse boundary, but a transport response makes only data_length bytes current and valid. A truncated response can therefore make the parser consume a block header or block extent outside the current response.
Use data_length as the parent boundary, prove the fixed poll header and each current block header before reading them, and prove the complete block before advancing. Keep parsed sensor metadata local until the complete response has passed validation, then publish it. Propagate malformed-response errors before publishing the OCC as active.
From the CVE record · Linux
The Linux kernel’s hwmon OCC poll response parser can read a block header or block extent beyond the valid data in a truncated transport response. The input does not specify how an attacker could supply such a response or whether authentication or user interaction is required.
Engineers running Linux kernels with the hwmon OCC component should check their versions; affected versions are not specified.