I believe that the county/town clerk that registers the death updates Social Security.
Usually the funeral director.