The Commonwealth Bank has announced the sale of its remaining stake in Visa for $439 million following a review of its capitalised software assets.