Ferroconvective instability of fluids saturating a porous medium