Description
PX4 Autopilot through 1.17.0 contains an uncontrolled stack allocation vulnerability in the file2 test command that fails to validate the write chunk size parameter. Attackers with shell access can supply an excessively large value to the -c option to trigger stack overflow and crash the flight controller.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PX4 | PX4-Autopilot | ≤ 1.17.0 | — |
References
- Pull Request #28586 issue-tracking patch
- Patch Commit patch
- https://github.com/PX4/PX4-Autopilot/blob/d6f12ad1c4f70ad3230afd7d86e971421e02fef4/src/systemcmds/tests/test_file2.c#L86-L130 technical-description
- https://github.com/PX4/PX4-Autopilot product
- VulnCheck Advisory: PX4 Autopilot through 1.17.0 Stack Exhaustion via tests file2 Command third-party-advisory