firewire: core: validate descriptor and sub-block lengths in fw_core_add_descriptor()
Status from this message: Applied to for-next branch.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 1 replyApplied
- v21 patch 1 replySuperseded
Changes in v3 from the cover letter
- Split original single patch into two distinct commits for cleaner review as requested by Takashi Sakamoto.
- Simplified overall length check using the in_range() macro.
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | firewire: core: validate overall descriptor length in fw_core_add_descriptor()drivers/ | +5 | 0 replies | |
| 2/2 | firewire: core: validate sub-block lengths in fw_core_add_descriptor()drivers/ | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] firewire: core: validate descriptor and sub-block lengths in fw_core_add_descriptor()
This two-patch series addresses potential out-of-bounds memory accesses when parsing Config ROM descriptors in fw_core_add_descriptor().
Patch 1 adds overall length validation using the in_range() macro to ensure descriptors fit within standard IEEE 1394 Config ROM limits (256 quadlets).
Patch 2 validates individual sub-block header lengths during iteration to prevent reading past allocated buffer boundaries on malformed inputs.
v2 -> v3:
- Split original single patch into two distinct commits for cleaner review as requested by Takashi Sakamoto.
- Simplified overall length check using the in_range() macro.
Sreeraj S Kurup (2):
firewire: core: validate overall descriptor length in
fw_core_add_descriptor()
firewire: core: validate sub-block lengths in fw_core_add_descriptor()
drivers/firewire/core-card.c | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-)
Signature · 1 line
2.54.0