Brenda Walker in downtown Richmond, Va., June 12, 2017.

About 12 million people will get a lift in their credit scores next month as the national credit reporting agencies wipe from their records two major sources of negative information about borrowers: tax liens and civil judgments.

The change stems from a lengthy crusade by consumer advocates and government officials to force the credit bureaus to improve the accuracy of their reports, which are often speckled with errors and outdated information. Those mistakes can limit borrowers' access to credit cards, auto loans and mortgages, or saddle them with higher borrowing costs.