# CVE-2024-49862: powercap: intel_rapl: Fix off by one in get_rpi()

- 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.31%, higher than 16% of CVEs (2026-11-30)
- Published: 2024-10-21T12:27:19.981Z
- Modified: 2026-08-05T11:40:11.029Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

powercap: intel_rapl: Fix off by one in get_rpi()

The rp->priv->rpi array is either rpi_msr or rpi_tpmi which have
NR_RAPL_PRIMITIVES number of elements.  Thus the > needs to be >=
to prevent an off by one access.

(As written by CVE List.)

## Affected

- Linux Linux: from 98ff639a7289067247b3ef9dd5d1e922361e7365 before 288cbc505e2046638c615c36357cb78bc9fee1e0; from 98ff639a7289067247b3ef9dd5d1e922361e7365 before 851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6; from 98ff639a7289067247b3ef9dd5d1e922361e7365 before 6a34f3b0d7f11fb6ed72da315fd2360abd9c0737; from 98ff639a7289067247b3ef9dd5d1e922361e7365 before 95f6580352a7225e619551febb83595bcb77ab17; 6.5 (not affected: before 6.5; from 6.6.54 up to 6.6.*; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.5 before 6.6.54; from 6.7 before 6.10.13; from 6.11 before 6.11.2

## 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`
- NVD: 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`

## References

- <https://git.kernel.org/stable/c/288cbc505e2046638c615c36357cb78bc9fee1e0> (patch)
- <https://git.kernel.org/stable/c/851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6> (patch)
- <https://git.kernel.org/stable/c/6a34f3b0d7f11fb6ed72da315fd2360abd9c0737> (patch)
- <https://git.kernel.org/stable/c/95f6580352a7225e619551febb83595bcb77ab17> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-49862 · Whole record: https://cve.day/CVE-2024-49862.json · Rebuilt by cve.day 2026-11-25T22:58:47.009Z
