flipperdevices flipperzero-firmware
cpe:2.3:o:flipperzero:flipper_zero_firmware:*:*:*:*:*:*:*
- <ad2a800>
A stack overflow vulnerability has been identified in the Flipper Zero firmware, specifically in the main function of the code. This issue arises from a fixed stack allocation of 1024 bytes, which is insufficient for certain execution scenarios that may require up to 1464 bytes. The vulnerability was introduced in commit ad2a80 and potentially affects earlier versions as well.
Exploitation of this vulnerability can lead to a system crash or undefined behavior.
The vulnerability can be reproduced by enabling stack usage analysis in the build process. After building the firmware with the appropriate configuration, the generated stack usage files will reveal that the main function's call chain exceeds the allocated stack size, particularly under conditions where a crash is handled.
The vulnerability has been addressed in a subsequent commit by increasing the stack allocation for the main function to a safer level.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.