This is the easy part. I went through the process of correcting a middle name with SSA earlier this year as described in this thread:
Bottom line: Was very easy to do (of course that was before SSA staff got DOGEd). SSA actually doesn’t use your middle name as part of your identification. I go to the SSA web page and all my information is unchanged except for middle name.
Once you get the SSA to match your birth certificate the getting the Real ID should be possible, which at the same time will correct the name on your driver’s license.
Not sure about passport, but how on earth did you get a passport that DIDN’T match your birth certificate?
Back in the day you didn’t need a birth certificate to get a SS card (see my attached thread for the story of how mine got messed up - it was self-inflicted).