diff options
| author | Simon Glass <[email protected]> | 2021-02-15 17:08:05 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-02-15 19:17:18 -0500 |
| commit | 8a7d4cf9820ea16fabd25a6379351b4dc291204b (patch) | |
| tree | 4e415095b42ce8fd845767e1326d27e7cdbc66e8 /scripts | |
| parent | 6144438fb5c9059dc87cf219bed0c992f70b3509 (diff) | |
fdt_region: Check for a single root node of the correct name
At present fdt_find_regions() assumes that the FIT is a valid devicetree.
If the FIT has two root nodes this is currently not detected in this
function, nor does libfdt's fdt_check_full() notice. Also it is possible
for the root node to have a name even though it should not.
Add checks for these and return -FDT_ERR_BADSTRUCTURE if a problem is
detected.
CVE-2021-27097
Signed-off-by: Simon Glass <[email protected]>
Reported-by: Bruce Monroe <[email protected]>
Reported-by: Arie Haenel <[email protected]>
Reported-by: Julien Lenoir <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
