I used to struggle with this issue myself and it took me a long time to understand why I was doing it and stop myself. It sounds like this is a recent (and short) phenomenon for you, so you will probably have more success stopping it quicker than I did.
First, I'm an emotional eater, so when I went through this (in the midst of trying to lose weight) I attributed my night time eating to anxiety. I was anxious about eating too much or not enough. Exercising too much or not enough. And, then there was the anxiety that I felt due to deprivation (I was very strict with my diet). All of this anxiety led me to get up multiple times through out the night and eat (and eat).
Over time, and it was a year or so, I was able to calm my nerves and start sleeping more soundly again. I don't remember what exactly helped me, but I do vividly remember the helpless feeling I had while I was eating throughout the night.
I'm not sure if anxiety is what is keeping you up or waking you up in the middle of the night, but you may want to try to keep a journal by your bedside and, when you wake up (whatever time it is), write down what you are thinking about. It may just save you from running to the kitchen...
| December Minutes: 0