Young Buck is headed back to jail.
TMZ has learned the rapper has agreed to serve 18 months in prison for gun possession, following a massive IRS raid on his Nashville home in 2010.
According to the deal, Buck agreed to plead guilty to possessing firearms and ammunition as a convicted felon.
The legal docs revealed that federal agents recovered the firearms in Buck’s house during a 2010 raid — when feds busted into the house to repossess a bunch of the rapper’s belongings to settle a $300,000 tax debt.
According to the docs, feds found a .40 caliber Glock 22 in Buck’s home along with ammunition. As a convicted felon, Buck is prohibited from possessing ANY kinds of firearms.
Buck was convicted of assault with a deadly weapon after stabbing some guy at the Vibe Awards in 2004.
The judge on the case signed off on the plea deal already but will not formally sentence the rapper ’til July 13th.