Paul Sakuma / AP Media and entertainment company CBS Corp. is buying CNET Networks Inc. based in San Francisco.