What’s Vulnerable › Vulnerabilities

CVE-2022-48672: of: fdt: fix off-by-one error in unflatten_dt_nodes()

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.295, 4.19.260, 5.10.145, 5.15.70. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-48672 or the next vulnerability affects your stack