diff options
| author | Sreeraj S Kurup <sreekuttan2156239@gmail.com> | 2026-07-25 15:52:55 +0000 |
|---|---|---|
| committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2026-07-27 09:39:52 +0900 |
| commit | a5367912ba81dfb3180fce89b545b009e57f17a5 (patch) | |
| tree | 81e5f4a83b098782c099a9093b3a05f6c03cfeb1 /tools/lib/python | |
| parent | e8e659f79178c3c30bbfbfac7a310a2a27c9694b (diff) | |
| download | linux-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
