The report was based on information in the Tuscaloosa County Sheriff's Office arrest database that is no longer available.
Foster's bond was set at $2,500. Second-degree possession is a misdemeanor.
The Alabama product just finished his rookie season with the 49ers. He was flagged in drug testing leading up to last spring's draft due to a diluted sample, which the league treats as a positive test.
Foster finished his rookie season with 72 tackles and one pass deflection over 10 games as he dealt with multiple injuries.