Flipper Zero Firmware Stack Overflow Vulnerability in Main Function

Vulnerability

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.

Impact

Exploitation of this vulnerability can lead to a system crash or undefined behavior.

Reproduction

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.

Remediation

The vulnerability has been addressed in a subsequent commit by increasing the stack allocation for the main function to a safer level.

Added: May 1, 2026, 7:23 PM
Updated: May 1, 2026, 7:23 PM

Vulnerability Rating

Custom Algorithm
spread
4.2
impact
3.1
exploitability
3.6
remediation
0.0
relevance
7.2
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.