Its probably just paint. Rust doesnt normally bleed onto walls. Scraep off whatever loose stuff you can. Prime with either Gardz, or an oil based primer. In this case, an oil based stain blocking primer might be best, especially if that is, in fact rust. Then skim coat the whole thing, and either take the time to make it nice and smooth, or retexture it, prime and paint.