pinctrl: freescale: Fix a memory out of bounds when num_configs is 1
Linux
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:
pinctrl: freescale: Fix a memory out of bounds when num_configs is 1
The config passed in by pad wakeup is 1, when num_configs is 1, Configuration [1] should not be fetched, which will be detected by KASAN as a memory out of bounds condition. Modify to get configs[1] when num_configs is 2.
From the CVE record · Linux
The Linux kernel’s Freescale pinctrl code can access configs[1] when num_configs is 1, causing an out-of-bounds memory access detectable by KASAN. The input does not specify an attacker path, required privileges, or user interaction.
Engineers running Linux kernels with the Freescale pinctrl component should check their versions; affected versions are not specified.