diff options
| author | Anton Ivanov <[email protected]> | 2026-06-02 19:29:25 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-06-12 15:35:54 -0600 |
| commit | e73328612534e81b41d0363fad9a7b4385cd3d39 (patch) | |
| tree | 2c906ea3ad7a9296d3433e0721cf3ce20968613b /include/linux/unaligned/be_byteshift.h | |
| parent | 7e47c37adf53f3010a6bf151df32df04a3c9ab91 (diff) | |
image-fit-sig: Validate hashed-strings region size
fit_config_check_sig() reads the hashed-strings property and uses
its size value without validation when building the region list for
signature verification. A crafted FIT image can specify an arbitrary
size, causing the hash calculation to read beyond the end of the FIT
image. The property length is also not checked, so a truncated
hashed-strings property causes strings[1] to be read past the end of
the property. This may result in the out-of-bounds read during signature
verification of an untrusted FIT.
Validate both the property length and that the declared strings region
fits within bounds before adding it to the region list.
Signed-off-by: Anton Ivanov <[email protected]>
Diffstat (limited to 'include/linux/unaligned/be_byteshift.h')
0 files changed, 0 insertions, 0 deletions
