Narrative:

While on initial climbout; out of ZZZ; the engine sputtered and exhaust fumes filled the cabin. Instructor asked student if he smelled it as well; student confirmed and then opened windows. Instructor notified tower and made an air turn back. While on downwind; the engine sputtered again. No further issues were noticed.

Google
 

Original NASA ASRS Text

Title: C172 instructor and student reported engine sputter and fumes during climb; resulting in a return to the departure airport.

Narrative: While on initial climbout; out of ZZZ; the engine sputtered and exhaust fumes filled the cabin. Instructor asked Student if he smelled it as well; Student confirmed and then opened windows. Instructor notified Tower and made an air turn back. While on downwind; the engine sputtered again. No further issues were noticed.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.