Upvote:2
Yes, you can travel. Your passport needs to be valid throughout your stay in the UK. There is no requirement for it to be valid beyond that.
You must have a valid passport to enter the UK. It should be valid for the whole of your stay.
But if there is any transit country in between that can have its own rules.