I came up with an idea for a parasitic fungus for my world, and I was wondering if it would be biologically viable/possible. Here are its traits.
After the target organism breathes in the spores, they travel to its brain. They form a mycelium covering the host's brain and take control of its bodily functions, but it DOES NOT KILL THE HOST. It then forces the host to gorge itself on whatever food is available, while all of the nutrients go towards the developing fruiting body. After a few days of feasting, the host promptly dies, and the fruiting body of the fungus erupts from the corpse and releases its spores.
Would this be biologically possible, and what would its effects be on Earth's ecosystem?