diff options
| author | Anton Ivanov <[email protected]> | 2026-06-02 19:30:17 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-06-12 15:35:56 -0600 |
| commit | 7304d569e61521e04625bfbded894f2e5fbe4409 (patch) | |
| tree | e264c33b824c3152e55530527074bd557f57f1bd /include/linux/input.h | |
| parent | e73328612534e81b41d0363fad9a7b4385cd3d39 (diff) | |
fdt_region: Check return value of fdt_get_property_by_offset() calls
fdt_get_property_by_offset() returns NULL for FDT with version
less than 0x10. fdt_find_regions() dereferences the result without
checking, leading to a NULL pointer dereference during signature
verification of an untrusted FIT. fdt_add_alias_regions() and
fdt_next_region() also lack validation.
Add NULL checks before accessing the returned property pointer.
Also add a missing NULL check for fdt_string() in
fdt_add_alias_regions() and fdt_next_region().
Signed-off-by: Anton Ivanov <[email protected]>
Diffstat (limited to 'include/linux/input.h')
0 files changed, 0 insertions, 0 deletions
