7.1high
enetc: Fix illegal access when reading affinity_hint
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.64% (higher than 52% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: enetc: Fix illegal access when reading affinity_hint irq_set_affinity_hit() stores a reference to the cpumask_t parameter in the irq descriptor, and that reference can be accessed later from irq_affinity_hint_proc_show(). Since the cpu_mask parameter passed to irq_set_affinity_hit() has only temporary storage (it's on the stack memory), later accesses to it are illegal. Thus reads from the corresponding procfs affinity_hint file can result in paging request oops. The issue is fixed by the get_cpu_mask() helper, which provides a permanent storage for the cpumask_t parameter.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from d4fd0404c1c95b17880f254ebfee3485693fa8ba before 4c4c3052911b577920353a7646e4883d5da40c28, from d4fd0404c1c95b17880f254ebfee3485693fa8ba before 6c3f1b741c6c2914ea120e3a5790d3e900152f7b, from d4fd0404c1c95b17880f254ebfee3485693fa8ba before 6f329d9da2a5ae032fcde800a99b118124ed5270, from d4fd0404c1c95b17880f254ebfee3485693fa8ba before 7237a494decfa17d0b9d0076e6cee3235719de90, 5.1 Not affected: before 5.1, from 5.4.150 up to 5.4.*, from 5.10.70 up to 5.10.*, from 5.14.9 up to 5.14.*, from 5.15 up to * | CVE List |
| linux linux_kernel | from d4fd0404c1c9 before 4c4c3052911b, from d4fd0404c1c9 before 6c3f1b741c6c, from d4fd0404c1c9 before 6f329d9da2a5, from d4fd0404c1c9 before 7237a494decf, 5.1, from 5.1 before 5.4.150, from 5.5 before 5.10.70, from 5.11 before 5.14.9 and 1 more Not affected: before 5.1, from 5.4.150 up to 5.4.*, from 5.10.70 up to 5.10.*, from 5.14.9 up to 5.14.*, 5.15 | CVE List, NVD |
All scores
| Linux | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| CISA-ADP | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: enetc: Fix illegal access when reading affinity_hint irq_set_affinity_hit() stores a reference to the cpumask_t parameter in the irq descriptor, and that reference can be accessed later from irq_affinity_hint_proc_show(). Since the cpu_mask parameter passed to irq_set_affinity_hit() has only temporary storage (it's on the stack memory), later accesses to it are illegal. Thus reads from the corresponding procfs affinity_hint file can result in paging request oops. The issue is fixed by the get_cpu_mask() helper, which provides a permanent storage for the cpumask_t parameter.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: enetc: corrige el acceso ilegal al leer affinity_hint irq_set_affinity_hit() almacena una referencia al parámetro cpumask_t en el descriptor irq, y se puede acceder a esa referencia más tarde desde irq_affinity_hint_proc_show(). Dado que el parámetro cpu_mask pasado a irq_set_affinity_hit() solo tiene almacenamiento temporal (está en la memoria de la pila), los accesos posteriores a él son ilegales. Por lo tanto, las lecturas del archivo procfs affinity_hint correspondiente pueden dar como resultado una solicitud de paginación. El problema lo soluciona el asistente get_cpu_mask(), que proporciona un almacenamiento permanente para el parámetro cpumask_t.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47368 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2021-47368 changed 2026-08-04 | Public domain |