[PATCH 5.10] Backport the fix for CVE-2023-25012 to kernel v5.10