This is an internal wall where the brown sediment (is it drywall? Plaster? Or something else entirely?) behind layers of paint is crumbling away causing holes.
You can see from the photos where the holes have formed but also cracks above where holes are likely to form. That part of the wall moves under slight pressure which makes me think the wall is crumbling there too.
What would be the best way to fix this up before redecorating?