He was cut by the 49ers earlier this month.
By cutting Rogers, the 49ers created $6 million in salary-cap space.
Rogers, 32, was the 49ers' nickel cornerback last season. He had 47 tackles and two interceptions last season.
Rogers is a capable veteran cornerback who could help the Raiders.
For his career, Rogers has 445 tackles and 17 interceptions with four forced fumbles.
Follow me on Twitter: @RavensInsider
Aaron Wilson covers the Ravens for The Baltimore Sun