Marketing company Red Ventures said on Monday that it would buy online media company CNET Media Group from ViacomCBS Inc for $500 million.