vendor:
N/A
by:
N/A
4.3
CVSS
MEDIUM
Improper Write Barrier Elimination
787
CWE
Product Name: N/A
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: No
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: N/A
2020
Improper Write Barrier Elimination
The vulnerability is caused by the improper write barrier elimination in the code snippet. The code snippet tries to help write barrier elimination by changing field_representation to MachineRepresentation::kTaggedSigned if it is possible to convert to Smi. However, TruncatingUseInfoFromRepresentation(kTaggedSigned) returns UseInfo::AnyTagged() which is also compatible with kTaggedPointer. As a result, even in the case where input_info->representation() is kTaggedPointer and the field_representation is kTaggedSigned, it will still perform a write barrier.
Mitigation:
The code should be modified to ensure that the write barrier is properly eliminated.