thermal/drivers/hisi: Drop second sensor hi3660
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460 · < 15cc25829a97c3957e520e971868aacc84341317| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
thermal/drivers/hisi: Drop second sensor hi3660
The commit 74c8e6bffbe1 ("driver core: Add __alloc_size hint to devm allocators") exposes a panic "BRK handler: Fatal exception" on the hi3660_thermal_probe funciton. This is because the function allocates memory for only one sensors array entry, but tries to fill up a second one.
Fix this by removing the unneeded second access.
From the CVE record · Linux
The hi3660 thermal probe allocates space for one sensor entry but attempts to fill a second, causing a fatal kernel panic. The input does not establish whether an attacker can trigger the panic or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the hi3660 thermal driver should check their versions; affected versions are not specified.