Green’s Dictionary of Slang

who cut the cheese? phr.

[the smell associated with some soft cheeses]

(orig. US, usu. juv.) who broke wind?

[US](con. 1950s) H. Junker ‘The Fifties’ in Eisen Age of Rock 2 (1970) 100: Who cut the cheese? [...] he who smelt it dealt it.
[US]C. Hiaasen Sick Puppy 250: Aw, who cut the cheese [...] Your damn dog passed gas!