Update your software:

Don't do it once and forget to do it next time, continually keep your system up-to-date. You can turn on auto-update but sometimes it will get missed or skipped so try a weekly check as well.

You can do the NCSC action plan quiz to see how much of a risk you are to yourself and others.