CVE-2025-15150
Stack-Based Buffer Overflow in PX4 MavlinkLogHandler Module
Publication date: 2025-12-28
Last updated on: 2025-12-28
Assigner: VulDB
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| px4 | px4-autopilot | 1.16.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-119 | The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. |
| CWE-121 | A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function). |
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :
The vulnerability can lead to a compromise of the system's integrity, confidentiality, and availability since it allows a stack-based buffer overflow. An attacker with local access could potentially execute arbitrary code or cause a denial of service, impacting the affected system's operation.
What immediate steps should I take to mitigate this vulnerability?
Apply the patch identified as commit 338595edd1d235efd885fd5e9f45e7f9dcf4013d to the PX4 PX4-Autopilot software to resolve the stack-based buffer overflow vulnerability. Since the attack requires local access, ensure that only trusted users have local access to the system until the patch is applied.
Can you explain this vulnerability to me?
This vulnerability is a stack-based buffer overflow found in the PX4 PX4-Autopilot software up to version 1.16.0. It affects specific functions in the mavlink_log_handler.cpp file. The overflow occurs due to improper handling of data in these functions, and an attacker with local access can exploit this issue.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring for the presence of log files with excessively long filenames in the PX4 Autopilot log directory, as these trigger the stack buffer overflow when processed. Detection involves checking for unusually long filenames in the logdata.txt or log directory. Since the vulnerability is triggered by processing these long filenames via MAVLink FTP messages (LOG_REQUEST_LIST and LOG_REQUEST_DATA), you can look for suspicious FTP activity creating or requesting log files with long names. Suggested commands include listing files in the PX4 log directory and filtering for long filenames, for example: `ls -l /path/to/px4/logs | awk 'length($9) > 60'` to find filenames longer than 60 characters. Additionally, monitoring MAVLink FTP traffic for LOG_REQUEST_LIST and LOG_REQUEST_DATA messages requesting or returning log entries with long filenames can help detect exploitation attempts. However, no specific detection commands or tools are provided in the resources. [1, 4]