Bug 2055879 (CVE-2021-21708)

Summary: CVE-2021-21708 php: Use after free due to php_filter_float() failing for ints
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dwoodruf, fedora, hhorak, jburrell, jorton, rcollet
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php 7.4.28 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in PHP. The vulnerability occurs due to the malformed php_filter_float() function and leads to a use-after-free vulnerability. This flaw allows an attacker to inject a malicious file, leading to a crash or a Segmentation fault.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-04 20:37:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2055880, 2056798, 2056799, 2056800, 2056801    
Bug Blocks: 2055881    

Description Pedro Sampaio 2022-02-17 20:43:02 UTC
Use after free due to php_filter_float() failing for ints.

References:

https://bugs.php.net/bug.php?id=81708
https://www.php.net/ChangeLog-7.php

Comment 1 Pedro Sampaio 2022-02-17 20:43:18 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 2055880]

Comment 2 Remi Collet 2022-02-18 06:59:18 UTC
This only affects PHP > 7.4 (where min∕max_range feature was added), older versions are not affectede

Comment 5 errata-xmlrpc 2022-11-08 09:51:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7624 https://access.redhat.com/errata/RHSA-2022:7624

Comment 6 errata-xmlrpc 2022-11-08 09:52:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7628 https://access.redhat.com/errata/RHSA-2022:7628

Comment 7 errata-xmlrpc 2022-11-15 10:35:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8197 https://access.redhat.com/errata/RHSA-2022:8197

Comment 8 Product Security DevOps Team 2022-12-04 20:37:16 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-21708