Skip to content
Commit 853a6503 authored by Zhang Rui's avatar Zhang Rui Committed by Greg Kroah-Hartman
Browse files

hwmon: (coretemp) Fix out-of-bounds memory access



[ Upstream commit 4e440abc ]

Fix a bug that pdata->cpu_map[] is set before out-of-bounds check.
The problem might be triggered on systems with more than 128 cores per
package.

Fixes: 7108b80a ("hwmon/coretemp: Handle large core ID value")
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20240202092144.71180-2-rui.zhang@intel.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Stable-dep-of: fdaf0c86 ("hwmon: (coretemp) Fix bogus core_id to attr name mapping")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c9b0d253
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment