The issue is related to the `gdImageScaleTwoPass` function in the GD Graphics Library, which uses inconsistent memory allocation and deallocation approaches. This inconsistency can be exploited by remote attackers to cause a denial of service through memory consumption. The exploitation can be achieved by making a crafted call to the function, for example, through the PHP `imagescale` function.