7mm, low-cost, Linux-capable ARM SoC with stacked RAM?
I don't see any SoC with enough built-in memory to run Linux. If you just want to receive JPEG from a camera and transmit it with WiFi — take a look at Electric Imp. It's bigger than 7x7mm but still has small form-factor of SD card.