It's a complex legal issue. The carmaker, software developer, passenger, human driver (if applicable), and other parties may share responsibility depending on the circumstances. New liability frameworks are needed.