The US Air Force repeatedly failed to hand over information to the FBI that would have stopped Texas church mass shooter Devin Kelly from buying guns, the Pentagon says in a scathing new report released Friday.

Kelley — a former airman who massacred 26 people in Sutherland Springs last November before killing himself — should’ve been banned from buying firearms due to a 2012 conviction for assaulting his wife and baby stepson, the Pentagon Inspector General writes.

But during the investigation, Air Force officials failed on four occasions to submit Kelley’s fingerprints to the FBI, so the 26-year-old was able to breeze through background checks and legally purchase the weapons he used in the rampage.

“If Kelley’s fingerprints were submitted to the FBI, he would have been prohibited from purchasing a firearm from a licensed firearms dealer,” the Pentagon wrote in its report.

“Because his fingerprints were not submitted to the FBI CJIS Division, Kelley was able to purchase firearms, which he used to kill 26 people at the First Baptist Church of Sutherland Springs on November 5, 2017.”

Kelley served in the Air Force from 2010 until he was discharged in 2014 for bad conduct — and spent his final year in confinement for the assault.