Fedora 42 mingw-python3 denial service fix

Backport fix for CVE-2025-12084.