mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 12:09:06 +08:00
Variable-length known packet types (CRSF_PACKET_TYPE_ELRS_STATUS, CRSF_PACKET_TYPE_LINK_STATISTICS_TX, CRSF_PACKET_TYPE_MSP_WRITE) bypassed the bounds check that exists for unknown packets. A crafted packet with a large size field could overflow the 64-byte process_buffer during QueueBuffer_PeekBuffer() in the CRC state. Apply the same CRSF_MAX_PACKET_LEN bounds check to variable-length known packets that already exists for unknown packets. Fixes GHSA-mqgj-hh4g-fg5p Signed-off-by: Ramon Roche <mrpollo@gmail.com>