diff options
| author | 2026-10-08 19:36:01 +0530 | |
|---|---|---|
| committer | 2026-10-14 14:38:25 -0400 | |
| commit | cf87709d7ff83b4de5d42b61e4a9806fe374cb9d (patch) | |
| tree | fceeac7a3e6166750043d5e467ddbd1a429fa2be /scripts/Makefile.thinlto | |
| parent | Bluetooth: selftest: Pin module for selftest debugfs file operations (diff) | |
Bluetooth: btintel: Zero version data before parsing TLVs
Firmware may omit optional TLVs, leaving their corresponding fields
unset in the caller-supplied struct intel_version_tlv. Since the
structure is typically stack-allocated and not cleared beforehand,
fields for which no TLV is received retain uninitialized stack
memory. This stale data can be logged via btintel_version_info_tlv()
and copied back to the caller, leaking kernel stack contents.
Clear the structure in btintel_read_version_tlv() before parsing so
that fields with no corresponding TLV are deterministically zero
instead of containing garbage.
Fixes: 57375beef71a ("Bluetooth: btintel: Add infrastructure to read controller information")
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
