The 49ers are on the verge of a five-year contract extension with linebacker NaVorro Bowman that will tie him to San Francisco through the 2018 season, according to a league source.