Related to kufomë (“corpse”), both related to κούφωμα (koúphōma, “frame”) and κουφάρι (kouphári, “corpse”) with an unclear mixing of the meanings.
kufar