Highlights
Privilege Escalation: 1 prior fix. Scrutinize any change in this area.
AndroidPort.java: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Privilege Escalation: Android 12+ requires explicit FLAG_MUTABLE or FLAG_IMMUTABLE on PendingIntents; an immutable flag can cause the system to drop or modify the intent, potentially allowing another app to hijack USB permission grants and escalate privileges.
Race Condition: Destroying a pthread mutex or Windows critical section during JNI_OnUnload can race with in-flight serial I/O operations, leading to undefined behavior, crashes, or memory corruption. The fix removes this destruction to avoid the race.