Eating / Using food that has been under a bed where someone has slept

A closed box of cereal ended up under a bed where someone then slept. Is there a problem with eating or benefiting (i.e. giving it to a non-jew) from this food?

Does the fact that the food is covered (inside the closed cereal box) change matters in any way?

Must throw it out