summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorSreeraj S Kurup <sreekuttan2156239@gmail.com>2026-07-25 15:52:55 +0000
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-07-27 09:39:52 +0900
commita5367912ba81dfb3180fce89b545b009e57f17a5 (patch)
tree81e5f4a83b098782c099a9093b3a05f6c03cfeb1 /tools/lib/python
parente8e659f79178c3c30bbfbfac7a310a2a27c9694b (diff)
downloadlinux-a5367912ba81dfb3180fce89b545b009e57f17a5.tar.gz
linux-a5367912ba81dfb3180fce89b545b009e57f17a5.zip
firewire: core: validate sub-block lengths in fw_core_add_descriptor()
When traversing internal block structures of a descriptor in fw_core_add_descriptor(), each sub-block header specifies its own length in the upper 16 bits of its header quadlet. If a malformed or corrupted descriptor provides a sub-block length that exceeds the remaining total length of the descriptor buffer, the parsing loop advances past the allocated boundary of desc->data, leading to an out-of-bounds read access. Validate each sub-block's length against the remaining descriptor size before advancing the offset pointer to ensure loop bounds safety. Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com> Link: https://lore.kernel.org/r/20260725155255.3054-3-sreekuttan2156239@gmail.com Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions