Vulnerability · Published Aug 15, 2025 · Assigned by VulDB
CVE-2025-9020PX4 PX4-Autopilot Mavlink Shell Closing mavlink_receiver.cpp handle_message_serial_control use after free
Medium 4.5
In plain English
A medium-severity use-after-free in PX4-Autopilot from PX4. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities).
Official description
A vulnerability was found in PX4 PX4-Autopilot up to 1.15.4. This issue affects the function MavlinkReceiver::handle_message_serial_control of the file src/modules/mavlink/mavlink_receiver.cpp of the component Mavlink Shell Closing Handler. The manipulation of the argument _mavlink_shell leads to use after free. An attack has to be approached locally. The complexity of an attack is rather high. The exploitation is known to be difficult. The identifier of the patch is 4395d4f00c49b888f030f5b43e2a779f1fa78708. It is recommended to apply a patch to fix this issue.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| PX4 | PX4-Autopilot | 1.15.01.15.11.15.21.15.31.15.4 |
Weakness: CWE-416, CWE-119 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C
References
- VDB-320081 | PX4 PX4-Autopilot Mavlink Shell Closing mavlink_receiver.cpp handle_message_serial_control use after free vdb-entry, technical-description
- VDB-320081 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #624722 | PX4 PX4-Autopilot main and v1.15.4 Race Condition in File Access third-party-advisory
- https://github.com/PX4/PX4-Autopilot/issues/25046 issue-tracking
- https://github.com/PX4/PX4-Autopilot/pull/25082 issue-tracking
- https://github.com/PX4/PX4-Autopilot/pull/25082/commits/4395d4f00c49b888f030f5b43e2a779f1fa78708 issue-tracking, patch