Sony Corp. said Tuesday it is buying Bertelsmann AG out of their 50-50 music venture Sony BMG for $900 million,