What is this

Cate

So as I was changing my sons diaper, I opened his legs and I see that this area is red and there was white stuff. I touched the white stuff and smelled it to see if it was something bad and it had a foul odor. It looks oily Bc I put some aquaphor on it but what can it be? Infection?