of: fdt: fix off-by-one error in unflatten_dt_nodes()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 · < 2133f451311671c7c42b5640d2b999326b39aa0e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
of: fdt: fix off-by-one error in unflatten_dt_nodes()
Commit 78c44d910d3e ("drivers/of: Fix depth when unflattening devicetree") forgot to fix up the depth check in the loop body in unflatten_dt_nodes() which makes it possible to overflow the nps[] buffer...
Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.
From the CVE record · Linux
An off-by-one depth check in the Linux kernel's unflatten_dt_nodes() can overflow the nps[] buffer. The input does not specify how an attacker could trigger the overflow, whether authentication or user interaction is needed, or whether access is local or network-based.
Teams running the Linux kernel should check their versions; affected versions are not specified in the input.