The foul smell associated with Karnal bunt disease of wheat is caused by the volatile compound trimethyl amine.