firmware: arm_scpi: Fix string overflow in SCPI genpd driver
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8bec4337ad4023b26de35d3b0c3a3b2735ffc5c7 · < 976389cbb16cee46847e5d06250a3a0b5506781e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_scpi: Fix string overflow in SCPI genpd driver
Without the bound checks for scpi_pd->name, it could result in the buffer overflow when copying the SCPI device name from the corresponding device tree node as the name string is set at maximum size of 30.
Let us fix it by using devm_kasprintf so that the string buffer is allocated dynamically.
From the CVE record · Linux
The Linux kernel SCPI genpd driver lacks bounds checks when copying an SCPI device name from a device tree node into a 30-character name buffer. A name that exceeds the buffer can cause an overflow; the input does not specify how an attacker could supply the name or whether authentication or user interaction is required.
Engineers running Linux kernels with the SCPI genpd driver should check whether their versions are affected; affected versions are not specified.