Have a new Samsung dishwasher that emits a sewage smell while running
You need a loop (it should go above where the dishwasher enters the disposal) or an airgap to prevent the backflow of drainage water into the dishwasher. The smell could be coming from the inside of your garbage disposal.

The line should definitely be arranged like this photo, where a portion of the line curves above where it enters your disposal.