Do you mean, the house has an extra bedroom extension which does not have planning permission from the council, so the bank will not lend? Did you add a clause subject to finance on your offer? If you did, then you should be able to pull out as you cannot get the finance approved.