Kaneria, who represents Essex in English county championship, underwent the operation on Wednesday after suffering a small fracture in the little finger while attempting a caught-and-bowled against Worcesters which forced him to return home mid-way thro' the season.
"There was a fracture in my right hand ring finger which I sustained while taking a caught and bowled chance," he told mediapersons.
"I have had the surgery to set it right," he said. "Hopefully I should be bowling again after six weeks."
The leg spinner was disappointed he could not play on and reach 100 wickets for the season. He took 75 wickets in all forms of the game after joining Essex a month into the season.
"Already Pakistan is not playing a Test series this year and we are short of cricket," he said. "The injury has really come at a bad time."
Essex first-team coach Paul Grayson told the club's website: "Danish's injury is a big blow to us because he"s a world-class performer and has been a massive part of our success."
"But we have a good replacement in Tim Phillips, who has played a big part for us in one-day games in previous years, so this is a good opportunity for him to show what he can do."
The 27-year-old has claimed 220 wickets in 51 Tests.