{"id":"CVE-2024-49862","summary":"powercap: intel_rapl: Fix off by one in get_rpi()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npowercap: intel_rapl: Fix off by one in get_rpi()\n\nThe rp-\u003epriv-\u003erpi array is either rpi_msr or rpi_tpmi which have\nNR_RAPL_PRIMITIVES number of elements.  Thus the \u003e needs to be \u003e=\nto prevent an off by one access.","modified":"2026-04-02T12:21:03.480955Z","published":"2024-10-21T12:27:19.981Z","related":["MGASA-2024-0344","MGASA-2024-0345","SUSE-SU-2024:3984-1","SUSE-SU-2024:3986-1","SUSE-SU-2024:4318-1","SUSE-SU-2024:4387-1","SUSE-SU-2025:20163-1","SUSE-SU-2025:20164-1","SUSE-SU-2025:20246-1","SUSE-SU-2025:20247-1","USN-7276-1","USN-7277-1","openSUSE-SU-2024:14500-1","openSUSE-SU-2025:14705-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49862.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/288cbc505e2046638c615c36357cb78bc9fee1e0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6a34f3b0d7f11fb6ed72da315fd2360abd9c0737"},{"type":"WEB","url":"https://git.kernel.org/stable/c/851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/95f6580352a7225e619551febb83595bcb77ab17"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49862.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-49862"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"98ff639a7289067247b3ef9dd5d1e922361e7365"},{"fixed":"288cbc505e2046638c615c36357cb78bc9fee1e0"},{"fixed":"851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6"},{"fixed":"6a34f3b0d7f11fb6ed72da315fd2360abd9c0737"},{"fixed":"95f6580352a7225e619551febb83595bcb77ab17"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49862.json"}}],"schema_version":"1.7.5"}