s390/perf_cpum_cf: Add missing array_index_nospec() to __hw_perf_event_init()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 212188a596d17d519842ef2173150315735b54e1 · < 49145bce539117db4b6e9e83c0e5ef528e361050| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
s390/perf_cpum_cf: Add missing array_index_nospec() to __hw_perf_event_init()
ev variable is userspace controlled via event->attr.config and used as an array index after bounds checking, but without speculation barriers.
Add the missing array_index_nospec() call to prevent speculative execution.
From the CVE record · Linux
The Linux kernel's s390/perf_cpum_cf code uses a userspace-controlled value as an array index without a speculation barrier. A local user could potentially trigger speculative array access through event->attr.config; the input does not specify authentication requirements or further impact.
Engineers running the Linux kernel with the s390/perf_cpum_cf component should check their version; affected versions were not provided.