# CVE-2021-47368: enetc: Fix illegal access when reading affinity_hint

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 52% of CVEs (2026-12-01)
- Published: 2024-05-21T15:03:34.494Z
- Modified: 2026-08-05T08:47:29.151Z
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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; 5.15 (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)

## Every score

- Linux: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4c4c3052911b577920353a7646e4883d5da40c28> (patch)
- <https://git.kernel.org/stable/c/6c3f1b741c6c2914ea120e3a5790d3e900152f7b> (patch)
- <https://git.kernel.org/stable/c/6f329d9da2a5ae032fcde800a99b118124ed5270> (patch)
- <https://git.kernel.org/stable/c/7237a494decfa17d0b9d0076e6cee3235719de90> (patch)

## Sources

- CVE List: [CVE-2021-47368](https://www.cve.org/CVERecord?id=CVE-2021-47368), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47368](https://nvd.nist.gov/vuln/detail/CVE-2021-47368), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47368 · Whole record: https://cve.day/CVE-2021-47368.json · Rebuilt by cve.day 2026-11-25T22:58:08.819Z
