Submit #584889: px4 1.12.3 stack-buffer-overflowinfo

Titlepx4 1.12.3 stack-buffer-overflow
DescriptionDuring a PX4 simulator test, the system encountered a crash caused by a stack buffer overflow triggered by sending a series of data packets. The error occurred at line 1808 in the mavlink_receiver.cpp file, within the MavlinkReceiver::handle_message_trajectory_representation_waypoints function. This function is responsible for handling TRAJECTORY_REPRESENTATION_WAYPOINTS messages received via the MAVLink protocol and decoding their contents into a locally defined buffer variable. However, this buffer is allocated on the stack and does not have sufficient capacity to hold the entire message data structure, resulting in a buffer overflow during the decoding process.
Source⚠️ https://github.com/PX4/PX4-Autopilot/issues/24915
User
 wwsshh (UID 85759)
Submission05/26/2025 14:33 (1 Year ago)
Moderation06/04/2025 13:43 (9 days later)
StatusAccepted
VulDB entry311127 [PX4-Autopilot 1.12.3 TRAJECTORY_REPRESENTATION_WAYPOINTS Message mavlink_receiver.cpp stack-based overflow]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!