{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-49862",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-10-21T12:17:06.017Z",
        "datePublished": "2024-10-21T12:27:19.981Z",
        "dateUpdated": "2026-08-05T11:40:11.029Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:40:11.029Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\npowercap: intel_rapl: Fix off by one in get_rpi()\n\nThe rp->priv->rpi array is either rpi_msr or rpi_tpmi which have\nNR_RAPL_PRIMITIVES number of elements.  Thus the > needs to be >=\nto prevent an off by one access."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
                        "baseScore": 7.1,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - intel_rapl is an x86 power-capping driver exposed solely through the local powercap sysfs class (/sys/class/powercap/intel-rapl:*) and in-kernel perf/PMU callbacks; there is no network or remote-peer input path.\nAC:L - The code path is entered by a simple, deterministic sysfs read with no race, no timing window, and no memory-layout dependency the attacker must first arrange.\nPR:L - The constraint_N_* attributes reaching get_rpi() are created 0644 (S_IWUSR|S_IRUGO) in seed_constraint_attributes(), so any unprivileged local user can drive get_current_power_limit() → rapl_read_pl_data() → get_rpi(); only the write side needs root.\nUI:N - Reading a sysfs file is fully attacker-driven; no victim action, mount, or file open by another user is needed.\nS:U - Both the faulty bounds check and any resulting memory access stay entirely within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The off-by-one yields an out-of-bounds read of a full struct rapl_primitive_info past rpi_msr/rpi_tpmi, whose unvalidated ->id then indexes rd->regs[] out of bounds and produces a register handle that is read and returned to userspace through world-readable sysfs — an unbounded disclosure chain, not a few-byte bounded read.\nI:N - The unprivileged-reachable path is read-only; rapl_read_data_raw() writes nothing to kernel memory, and the only OOB-influenced register write lives behind root-only sysfs store handlers.\nA:H - An out-of-range rpi->id feeding rd->regs[] can yield a garbage MMIO handle that tpmi_rapl_read_raw() dereferences with a bare readq() behind only a NULL check, producing an oops and kernel crash."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/powercap/intel_rapl_common.c"
                    ],
                    "versions": [
                        {
                            "version": "98ff639a7289067247b3ef9dd5d1e922361e7365",
                            "lessThan": "288cbc505e2046638c615c36357cb78bc9fee1e0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "98ff639a7289067247b3ef9dd5d1e922361e7365",
                            "lessThan": "851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "98ff639a7289067247b3ef9dd5d1e922361e7365",
                            "lessThan": "6a34f3b0d7f11fb6ed72da315fd2360abd9c0737",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "98ff639a7289067247b3ef9dd5d1e922361e7365",
                            "lessThan": "95f6580352a7225e619551febb83595bcb77ab17",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/powercap/intel_rapl_common.c"
                    ],
                    "versions": [
                        {
                            "version": "6.5",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.5",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.54",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.10.13",
                            "lessThanOrEqual": "6.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.11.2",
                            "lessThanOrEqual": "6.11.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.5",
                                    "versionEndExcluding": "6.6.54"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.5",
                                    "versionEndExcluding": "6.10.13"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.5",
                                    "versionEndExcluding": "6.11.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.5",
                                    "versionEndExcluding": "6.12"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/288cbc505e2046638c615c36357cb78bc9fee1e0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/851e7f7f14a15f4e47b7d0f70d5c4a2b95b824d6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6a34f3b0d7f11fb6ed72da315fd2360abd9c0737"
                },
                {
                    "url": "https://git.kernel.org/stable/c/95f6580352a7225e619551febb83595bcb77ab17"
                }
            ],
            "title": "powercap: intel_rapl: Fix off by one in get_rpi()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-10-21T12:54:50.217091Z",
                                "id": "CVE-2024-49862",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-10-21T12:55:35.960Z"
                }
            }
        ]
    }
}