[PATCH 5.15] Backport the fix for CVE-2024-23851 to v5.15