CVE-2023-52613
Publication date:
18/03/2024
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
drivers/thermal/loongson2_thermal: Fix incorrect PTR_ERR() judgment<br />
<br />
PTR_ERR() returns -ENODEV when thermal-zones are undefined, and we need<br />
-ENODEV as the right value for comparison.<br />
<br />
Otherwise, tz->type is NULL when thermal-zones is undefined, resulting<br />
in the following error:<br />
<br />
[ 12.290030] CPU 1 Unable to handle kernel paging request at virtual address fffffffffffffff1, era == 900000000355f410, ra == 90000000031579b8<br />
[ 12.302877] Oops[#1]:<br />
[ 12.305190] CPU: 1 PID: 181 Comm: systemd-udevd Not tainted 6.6.0-rc7+ #5385<br />
[ 12.312304] pc 900000000355f410 ra 90000000031579b8 tp 90000001069e8000 sp 90000001069eba10<br />
[ 12.320739] a0 0000000000000000 a1 fffffffffffffff1 a2 0000000000000014 a3 0000000000000001<br />
[ 12.329173] a4 90000001069eb990 a5 0000000000000001 a6 0000000000001001 a7 900000010003431c<br />
[ 12.337606] t0 fffffffffffffff1 t1 54567fd5da9b4fd4 t2 900000010614ec40 t3 00000000000dc901<br />
[ 12.346041] t4 0000000000000000 t5 0000000000000004 t6 900000010614ee20 t7 900000000d00b790<br />
[ 12.354472] t8 00000000000dc901 u0 54567fd5da9b4fd4 s9 900000000402ae10 s0 900000010614ec40<br />
[ 12.362916] s1 90000000039fced0 s2 ffffffffffffffed s3 ffffffffffffffed s4 9000000003acc000<br />
[ 12.362931] s5 0000000000000004 s6 fffffffffffff000 s7 0000000000000490 s8 90000001028b2ec8<br />
[ 12.362938] ra: 90000000031579b8 thermal_add_hwmon_sysfs+0x258/0x300<br />
[ 12.386411] ERA: 900000000355f410 strscpy+0xf0/0x160<br />
[ 12.391626] CRMD: 000000b0 (PLV0 -IE -DA +PG DACF=CC DACM=CC -WE)<br />
[ 12.397898] PRMD: 00000004 (PPLV0 +PIE -PWE)<br />
[ 12.403678] EUEN: 00000000 (-FPE -SXE -ASXE -BTE)<br />
[ 12.409859] ECFG: 00071c1c (LIE=2-4,10-12 VS=7)<br />
[ 12.415882] ESTAT: 00010000 [PIL] (IS= ECode=1 EsubCode=0)<br />
[ 12.415907] BADV: fffffffffffffff1<br />
[ 12.415911] PRID: 0014a000 (Loongson-64bit, Loongson-2K1000)<br />
[ 12.415917] Modules linked in: loongson2_thermal(+) vfat fat uio_pdrv_genirq uio fuse zram zsmalloc<br />
[ 12.415950] Process systemd-udevd (pid: 181, threadinfo=00000000358b9718, task=00000000ace72fe3)<br />
[ 12.415961] Stack : 0000000000000dc0 54567fd5da9b4fd4 900000000402ae10 9000000002df9358<br />
[ 12.415982] ffffffffffffffed 0000000000000004 9000000107a10aa8 90000001002a3410<br />
[ 12.415999] ffffffffffffffed ffffffffffffffed 9000000107a11268 9000000003157ab0<br />
[ 12.416016] 9000000107a10aa8 ffffff80020fc0c8 90000001002a3410 ffffffffffffffed<br />
[ 12.416032] 0000000000000024 ffffff80020cc1e8 900000000402b2a0 9000000003acc000<br />
[ 12.416048] 90000001002a3410 0000000000000000 ffffff80020f4030 90000001002a3410<br />
[ 12.416065] 0000000000000000 9000000002df6808 90000001002a3410 0000000000000000<br />
[ 12.416081] ffffff80020f4030 0000000000000000 90000001002a3410 9000000002df2ba8<br />
[ 12.416097] 00000000000000b4 90000001002a34f4 90000001002a3410 0000000000000002<br />
[ 12.416114] ffffff80020f4030 fffffffffffffff0 90000001002a3410 9000000002df2f30<br />
[ 12.416131] ...<br />
[ 12.416138] Call Trace:<br />
[ 12.416142] [] strscpy+0xf0/0x160<br />
[ 12.416167] [] thermal_add_hwmon_sysfs+0x258/0x300<br />
[ 12.416183] [] devm_thermal_add_hwmon_sysfs+0x50/0xe0<br />
[ 12.416200] [] loongson2_thermal_probe+0x128/0x200 [loongson2_thermal]<br />
[ 12.416232] [] platform_probe+0x68/0x140<br />
[ 12.416249] [] really_probe+0xc8/0x3c0<br />
[ 12.416269] [] __driver_probe_device+0x90/0x180<br />
[ 12.416286] [] driver_probe_device+0x38/0x160<br />
[ 12.416302] [] __driver_attach+0xa8/0x200<br />
[ 12.416314] [] bus_for_each_dev+0x8c/0x120<br />
[ 12.416330] [] bus_add_driver+0x10c/0x2a0<br />
[ 12.416346] [] driver_register+0x74/0x160<br />
[ 12.416358] [] do_one_initcall+0x84/0x220<br />
[ 12.416372] [] do_init_module+0x58/0x2c0<br />
[<br />
---truncated---
Severity CVSS v4.0: Pending analysis
Last modification:
08/04/2025