CVE-2022-20498: libfdt_fuzzer Stack-overflow in fdt_path_offset_namelen

platform/external/dtc Updated 02 Oct 2025

Summary

01/12/2022
Yes i
Critical
Not published

CVE-2022-20498: In fdt_path_offset_namelen of fdt_ro.c, there is a possible out of bounds read due to an incorrect bounds check. Affects platform/external/dtc across 5 version ranges.

>= 10:0, < 10:2022-12-01 >= 11:0, < 11:2022-12-01 >= 12:0, < 12:2022-12-01 >= 12L:0, < 12L:2022-12-01 >= 13:0, < 13:2022-12-01

Fixed in 10:2022-12-01. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The package under scrutiny is platform/external/dtc, which is part of the Android ecosystem. Dtc is a device tree compiler and decompiler tool used for manipulating device tree files. Device tree files are used in the boot process of many embedded systems to describe the hardware configuration. The vulnerability affects versions 10, 11, 12, 12L, and 13 of the package.

Vulnerability Detail

The vulnerability, identified as CVE-2022-20498, resides in the fdt_path_offset_namelen function of fdt_ro.c. It is caused by an incorrect bounds check, leading to a possible out-of-bounds read. Exploiting this vulnerability could result in local information disclosure, requiring system execution privileges. It is important to note that user interaction is not necessary for exploitation.

How To Fix

Minimum fixed version

10:2022-12-01

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

No workaround has been provided for this vulnerability.

Conclusion

In conclusion, the libfdt_fuzzer vulnerability in fdt_path_offset_namelen poses a risk of local information disclosure. It is crucial to update the dtc package to the fixed version to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for platform/external/dtc →

Share this vulnerability

FAQ

This vulnerability could lead to local information disclosure, potentially exposing sensitive data.

Exploiting this vulnerability requires system execution privileges.

No, user interaction is not needed for exploitation.

Versions 10, 11, 12, 12L, and 13 of the platform/external/dtc package are affected.

Related vulnerabilities

Recent vulnerabilities recorded for platform/external/dtc.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

10:2022-12-01

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback