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

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2024-05-03T14:51:18.085Z
- Modified: 2026-06-17T05:15:53.390Z
- Weaknesses: CWE-193
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 before cbdda20ce363356698835185801a58a28f644853; from 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 before 2566706ac6393386a4e7c4ce23fe17f4c98d9aa0; from 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 before e0e88c25f88b9805572263c9ed20f1d88742feaf; from 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 before ee4369260e77821602102dcc7d792de39a56365c; from 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 before ba6b9f7cc1108bad6e2c53b1d6e0156379188db7; from 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 before 2133f451311671c7c42b5640d2b999326b39aa0e; from 78c44d910d3e5f96dc6b3695fc1e4efd7c46a455 before 2f945a792f67815abca26fa8a5e863ccf3fa1181; 4.7 (not affected: before 4.7; from 4.14.295 up to 4.14.*; from 4.19.260 up to 4.19.*; from 5.4.215 up to 5.4.*; from 5.10.145 up to 5.10.*; from 5.15.70 up to 5.15.*; from 5.19.11 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 4.7 before 4.14.295; from 4.15 before 4.19.260; from 4.20 before 5.4.215; from 5.5 before 5.10.145; from 5.11 before 5.15.70; from 5.16 before 5.19.11

## References

- <https://git.kernel.org/stable/c/cbdda20ce363356698835185801a58a28f644853> (patch)
- <https://git.kernel.org/stable/c/2566706ac6393386a4e7c4ce23fe17f4c98d9aa0> (patch)
- <https://git.kernel.org/stable/c/e0e88c25f88b9805572263c9ed20f1d88742feaf> (patch)
- <https://git.kernel.org/stable/c/ee4369260e77821602102dcc7d792de39a56365c> (patch)
- <https://git.kernel.org/stable/c/ba6b9f7cc1108bad6e2c53b1d6e0156379188db7> (patch)
- <https://git.kernel.org/stable/c/2133f451311671c7c42b5640d2b999326b39aa0e> (patch)
- <https://git.kernel.org/stable/c/2f945a792f67815abca26fa8a5e863ccf3fa1181> (patch)

## Sources

- CVE List: [CVE-2022-48672](https://www.cve.org/CVERecord?id=CVE-2022-48672), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48672](https://nvd.nist.gov/vuln/detail/CVE-2022-48672), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48672 · Whole record: https://cve.day/CVE-2022-48672.json · Rebuilt by cve.day 2026-11-25T22:58:19.795Z
