Pediatrics

A 10 year old child presents with fever since 24 hours. History reveals 3 episodes of chest infection and passage of bulky, foul smelling stools. The most probable diagnosis is-