The lawyer for Hollywood filmmaker Peter Rodger said that the "family believes the child was the perpetrator".
Alan Shifman said the son had Asperger's syndrome, had trouble making friends and had been receiving professional help.
Mr Shifman added that the family had contacted police about "recent posts on YouTube" by Elliot "regarding suicide and the killing of people". The family is "devastated" and co-operating with police, he said.
More top news
It follows reports the US president is considering presidential pardons for his family, aides and even himself.
Specially-trained prison security teams have been sent to HMP Hewell near Redditch, after trouble broke out on one of the prison's wings.
Household names are among 40 women to sign open letter to BBC Director General saying he must "act now" to end pay discrimination.