# CVE-2024-49862: powercap: intel\_rapl: Fix off by one in get\_rpi()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-193
- **Published:** 2024-10-21T12:27:19.981Z
- **Modified:** 2026-08-05T11:40:11.029Z

## Who should check

- Anyone running Linux \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 288cbc505e2046638c615c36357cb78bc9fee1e0; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 6a34f3b0d7f11fb6ed72da315fd2360abd9c0737; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 95f6580352a7225e619551febb83595bcb77ab17
- Anyone running Linux 6.5

## 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.

## Affected and fixed versions

- Linux: \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 288cbc505e2046638c615c36357cb78bc9fee1e0; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 6a34f3b0d7f11fb6ed72da315fd2360abd9c0737; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 95f6580352a7225e619551febb83595bcb77ab17 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 95f6580352a7225e619551febb83595bcb77ab17 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-49862. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-49862.md
Affected: Linux >= 98ff639a7289067247b3ef9dd5d1e922361e7365, < 288cbc505e2046638c615c36357cb78bc9fee1e0; >= 98ff639a7289067247b3ef9dd5d1e922361e7365, < 851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6; >= 98ff639a7289067247b3ef9dd5d1e922361e7365, < 6a34f3b0d7f11fb6ed72da315fd2360abd9c0737; >= 98ff639a7289067247b3ef9…
Fixed in: Linux 288cbc505e2046638c615c36357cb78bc9fee1e0, Linux 851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6, Linux 6a34f3b0d7f11fb6ed72da315fd2360abd9c0737, Linux 95f6580352a7225e619551febb83595bcb77ab17

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-49862 being exploited?

There is no confirmed exploitation: CVE-2024-49862 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-49862?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-49862?

Linux \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 288cbc505e2046638c615c36357cb78bc9fee1e0; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 6a34f3b0d7f11fb6ed72da315fd2360abd9c0737; \>= 98ff639a7289067247b3ef9dd5d1e922361e7365, \< 95f6580352a7225e619551febb83595bcb77ab17; Linux 6.5.

### Is there a fix for CVE-2024-49862?

Yes. Fixed in Linux 288cbc505e2046638c615c36357cb78bc9fee1e0, Linux 851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6, Linux 6a34f3b0d7f11fb6ed72da315fd2360abd9c0737, Linux 95f6580352a7225e619551febb83595bcb77ab17. Upgrade Linux to 95f6580352a7225e619551febb83595bcb77ab17 or later.

### How do I check if I'm affected by CVE-2024-49862?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-49862>

HTML: <https://flawdb.com/CVE-2024-49862> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-49862>
