CVE-2024-49862Published Oct 21, 2024 · Oct 21Updated Oct 28
powercap: intel_rapl: Fix off by one in get_rpi()
Linux
High7.1Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
An off-by-one check in the Linux kernel’s intel_rapl get_rpi() function can access past the end of the rp->priv->rpi array. The input does not specify how an attacker could trigger this access or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes this fix; affected versions are not specified.