diff options
| author | 2026-09-21 23:41:17 +0300 | |
|---|---|---|
| committer | 2026-10-14 11:56:35 +0300 | |
| commit | ef292778d590e9db4a4620175221786f84d6c34c (patch) | |
| tree | 090ffe0bd3b5df20225f1cb7b7a557c8e57e48f6 /scripts/Makefile.thinlto | |
| parent | wifi: iwlwifi: fw: fix integer overflow in INI dump size calc (diff) | |
wifi: iwlwifi: validate TLV length before reading fields
The INI/Yoyo debug TLVs are parsed from an untrusted firmware-debug
file. The dispatcher only guarantees that the
TLV length covers the 8-byte common header, yet several per-type
handlers dereferenced fields located beyond that header before
checking the TLV length.
Add the missing minimum-length check in iwl_dbg_tlv_config_set() so
the short TLV is rejected before it is stored, and move the field
reads in the other handlers to after their existing length checks so
no field is dereferenced before the buffer is known to be large
enough.
Signed-off-by: Shahar Tzarfati <shahar.tzarfati@intel.com>
Assisted-by: GitHub-Copilot:claude-opus-4-8
Link: https://patch.msgid.link/20260921233730.6127e849e40a.If963f766dbe29cbb8c226e163ab678be97240730@changeid
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
