pinctrl: pinconf-generic: Fully validate 'pinmux' property
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 |
|
|
6.18.337.0.107.1In the Linux kernel, the following vulnerability has been resolved:
pinctrl: pinconf-generic: Fully validate 'pinmux' property
The pinconf_generic_parse_dt_pinmux() assumes that the 'pinmux' property is not empty when present. This might be not true. With that, the allocator will give a special value in return and not NULL which lead to the crash when trying to access that (invalid) memory. Fix that by fully validating 'pinmux' value, including its length.
From the CVE record · Linux
The Linux kernel’s pinconf-generic parser does not fully validate the length of a present 'pinmux' property. An empty property can cause an invalid memory access and crash when parsed. The input does not specify how an attacker could supply the property or whether authentication or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions are not specified.