“Actually, it was the Civil War which overturned Dred Scott.”
Well that’s certainly the pop-version of history.
Assuming you mean the Emancipation Proclamation, that affected only the “states in rebellion” meaning that it did not apply to slaves in the states that remained in the Union.
The civil war ended in April 1865. Slavery continued in some Union states until the 13th Amendment went into effect on December 18, 1865
Which Union areas were allowed to keep slaves as slaves?