Jailbreaking is not illegal. In 2012, The Library of Congress ruled it as a legal exemption to the DMCA, or Digital Millennium Copyright Act, making it legal.