Description
In the Linux kernel, the following vulnerability has been resolved: block, bfq: initialize active lists for all actuators Commit 2d31c684a053 ("block, bfq: inject I/O to underutilized actuators") extended bfqd->active_list from a single list_head to an array indexed by actuator, but bfq_init_queue() still only initialized the first two entries: INIT_LIST_HEAD(&bfqd->active_list[0]); INIT_LIST_HEAD(&bfqd->active_list[1]); For devices with more than two independent access ranges, the remaining list heads stay zeroed by kzalloc() and are never set up as empty lists. When BFQ later adds a bfq_queue to one of those lists, list_add() writes through head->next, which is NULL, corrupting the list or crashing the kernel. Initialize every actuator's active list using bfqd->num_actuators, which is already set up earlier in bfq_init_queue().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
2d31c684a053b46f75b230899d00c0f56708243d to < 5ba4bb6e3f3b21976a16c7b9e65b320a5d77dcbaaffected2d31c684a053b46f75b230899d00c0f56708243d to < 70c8ad02be5f647ed181bebac601f47b4d6f0708affected2d31c684a053b46f75b230899d00c0f56708243d to < 75028711fc7976a5b615be76cc9c1641942bbaa4affected2d31c684a053b46f75b230899d00c0f56708243d to < 285cdffc6f76d3fa20b2a54f39712b9afc865c62affected2d31c684a053b46f75b230899d00c0f56708243d to < 00c2c34ead7e84d6594e20fa37a3c503823f5756affected
Linux Linux
Default version status: affected
6.3affected0 to < 6.3unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/5ba4bb6e3f3b21976a16c7b9e65b320a5d77dcba ↗
- https://git.kernel.org/stable/c/70c8ad02be5f647ed181bebac601f47b4d6f0708 ↗
- https://git.kernel.org/stable/c/75028711fc7976a5b615be76cc9c1641942bbaa4 ↗
- https://git.kernel.org/stable/c/285cdffc6f76d3fa20b2a54f39712b9afc865c62 ↗
- https://git.kernel.org/stable/c/00c2c34ead7e84d6594e20fa37a3c503823f5756 ↗