Corn that smells rancid has spoiled and the smell is produced by bacteria and mold. This corn is no longer edible.