linux-stable/drivers/thermal
Dan Carpenter 6ad1bf47fb thermal: core: prevent potential string overflow
[ Upstream commit c99626092e ]

The dev->id value comes from ida_alloc() so it's a number between zero
and INT_MAX.  If it's too high then these sprintf()s will overflow.

Fixes: 203d3d4aa4 ("the generic thermal sysfs driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 10:29:17 +01:00
..
broadcom
int340x_thermal thermal: intel: int340x: Add locking to int340x_thermal_get_trip_type() 2023-02-22 12:47:16 +01:00
qcom
samsung
st
tegra
ti-soc-thermal
Kconfig
Makefile
armada_thermal.c
clock_cooling.c
cpu_cooling.c
da9062-thermal.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
fair_share.c
gov_bang_bang.c
hisi_thermal.c
imx_thermal.c
intel_bxt_pmic_thermal.c
intel_pch_thermal.c
intel_powerclamp.c thermal: intel: powerclamp: Fix cur_state for multi package system 2023-03-11 16:32:02 +01:00
intel_quark_dts_thermal.c thermal: intel: quark_dts: fix error pointer dereference 2023-03-11 16:31:59 +01:00
intel_soc_dts_iosf.c thermal: intel: Fix unsigned comparison with less than zero 2023-03-11 16:31:45 +01:00
intel_soc_dts_iosf.h
intel_soc_dts_thermal.c
kirkwood_thermal.c
max77620_thermal.c
mtk_thermal.c
of-thermal.c
power_allocator.c
qcom-spmi-temp-alarm.c
qoriq_thermal.c
rcar_gen3_thermal.c
rcar_thermal.c
rockchip_thermal.c
spear_thermal.c
step_wise.c
tango_thermal.c
thermal-generic-adc.c
thermal_core.c thermal: core: prevent potential string overflow 2023-11-20 10:29:17 +01:00
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_sysfs.c thermal: sysfs: Fix cooling_device_stats_setup() error code path 2022-08-25 11:14:53 +02:00
uniphier_thermal.c
user_space.c
x86_pkg_temp_thermal.c
zx2967_thermal.c