Bond kind of went semi-rogue in Quantum of Solace, although his heart was in the right place the whole time (As he says, "I never left").
Also in the first half of No Time To Die he's semi-retired and when working with Felix he's technically part of the CIA. DIE ANOTHER DAY also has him rogue for the first hour but M realizes he might be on to something and hires him back.
Some of the other films like OHMSS and MOONRAKER have him "off the books" working to keep some higher-ups off his back but still with MI6 support.