Fixes: CVE-2021-32027, CVE-2021-32028, CVE-2021-32029 (cherry picked from commit daedf20fa605c859a3c4b4c60d1ad0ba88261d4e)