How deep is the issue? On the Apple Support Discussions forums, it's twenty pages deep. And counting. The details of this issue vary throughout the forum posts, but essentially the proximity sensor (the one that shuts down the screen functionality when your iPhone is close to your face or in your pocket) seems to be malfunctioning.
Some users report that the sensor does cause the screen to go black, as expected, but that the functionality of iPhone remains intact, causing anything from mid-call hangups to inadvertent three-way calling, accidental FaceTime initiation attempts, or muting calls.
The forum is flush with responses, "me too" comments, and suggestions for resolutions. The best advice for now is to sync your iPhone and backup your information. Perform a restore to your backup and see if that solves the issue. If it persists, do a restore and set your iPhone 4 up as a new phone. Keep in mind, this will not save your information (like text messages), so be sure to have them backed up elsewhere.
Should restoring your iPhone 4 not solve the proximity sensor issues, many users are reporting that contacting AppleCare (by phone at 1.800.APL.CARE) or visiting an AppleCare certified technician or the Genius Bar at an Apple Store to get their iPhone replaced has been a fairly painless process. iPhone 4 is still a new product and replacement supplies may be limited, so be sure to check your iPhone out quickly and take it in as soon as possible.
Apple - USE TAG
reading•iPhone 4 proximity sensor may be causing issues during calls
Jan 21•Galaxy S10: 7 things it needs to stay ahead of top rival Huawei
Jan 20•Been sleeping on smart lights? Time to wake up
Jan 19•Here's every iPhone ever made from 2007 to today
Jan 19•iPhone XS, iPhone XR: What you need to know about Apple's Smart Battery Case