Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: platform/x86: ISST: Validate socket ID in clos_assoc ioctl isst_if_clos_assoc() validates the user-supplied socket_id with 'socket_id > topology_max_packages()', but isst_common.sst_inst[] is allocated with topology_max_packages() entries, so the valid index range is [0, topology_max_packages()). The '>' comparison lets socket_id == topology_max_packages() pass and index one entry past the array. In addition, isst_common.sst_inst[socket_id] is NULL for an in-range package that has no bound TPMI SST instance, and the pointer is used without a NULL check. Both the out-of-bounds entry and the NULL pointer are then dereferenced by map_partition_power_domain_id() and the following power_domain_info access. Reject socket_id >= topology_max_packages() and a NULL sst_inst, matching the checks already performed by get_instance().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 12a7d2cb811dd8a884dea088a2701fcb8d00136e before c847ea4851ecfa3462cc711ded2c3c3dd8d08ab8; affected 12a7d2cb811dd8a884dea088a2701fcb8d00136e before 0d90ab5f80e19cddfeb0c9fab47a1f34aa932075; affected 12a7d2cb811dd8a884dea088a2701fcb8d00136e before 82e707eff9e3b7ef6d96ecc23ea8876d20c7d6ca; affected 12a7d2cb811dd8a884dea088a2701fcb8d00136e before 207b4dc6eb100141b122b2602504a1429a4b6558; affected 12a7d2cb811dd8a884dea088a2701fcb8d00136e before a89f07db0cb95c54dac4a8406c79a04e44a73c3c |
| Linux / Linux | affected 6.4; unaffected 0 before 6.4; unaffected 6.6.157 through 6.6.*; unaffected 6.12.109 through 6.12.*; unaffected 6.18.50 through 6.18.*; unaffected 7.2.4 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/c847ea4851ecfa3462cc711ded2c3c3dd8d08ab8
- https://git.kernel.org/stable/c/0d90ab5f80e19cddfeb0c9fab47a1f34aa932075
- https://git.kernel.org/stable/c/82e707eff9e3b7ef6d96ecc23ea8876d20c7d6ca
- https://git.kernel.org/stable/c/207b4dc6eb100141b122b2602504a1429a4b6558
- https://git.kernel.org/stable/c/a89f07db0cb95c54dac4a8406c79a04e44a73c3c