r/linuxmint • u/Dramatic-Beyond-2183 • 1h ago
Security Disabling ipv6 in Linux Mint
Hello,
I came across an article about a major vulnerability in the Linux kernel related to IPv6. Apparently, it could allow an attacker to bypass the system's firewall. According to Red Hat, this vulnerability is critical and patches have already been rolled out. Red Hat also recommends disabling IPv6 as a mitigation if the patch isn't available yet.
Ubuntu, on the other hand, rates it as only medium severity and doesn't consider it a top priority among the upcoming security patches for Ubuntu. So I don't know when the patch will be rolled out for Ubuntu. It could take several weeks.
That's why I'd like to know whether disabling IPv6 on machines running vulnerable Ubuntu versions and its other flavors (like Linux Mint) would be effective. I've already figured out how to do it and which commands to use (for both a temporary and a permanent disable).
However, could disabling IPv6 on an Ubuntu desktop cause other security issues (with the firewall or otherwise)?
Just to be clear, I'm talking here about desktop versions of Ubuntu, not their server counterparts...
2
u/Unwiredsoul 1h ago
Yes, disabling IPv6 would be effective at mitigating this CVE.
No, disabling IPv6 should not cause any issues on a typical Linux Mint desktop.
The only issues that would potentially arise would be if you do not have a valid IPv4 configuration, as you would lose TCP/IP network connectivity completely in that scenario.
Or, if you've manually created static routes over IPv6 for whatever reason. You'll have to speak to whether you did that, or not, but that's pretty uncommon. Especially in a home environment.
It's likely that your ISP (and especially your LAN) will function completely normally on IPv4, so go ahead and disable IPv6 until this CVE is patched. It's easy enough to undo the change, too.
2
u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 1h ago
IPV6 is blocked at my router and again at the OS, My old ISP did not even support IPV6, my new one does I have been meaning to set it up but looks like I will wait a bit longer now.
1
u/Evening-Landscape763 1h ago
I normally run with IPv6 disabled as my old cellular ISP didn't support it and never had any issues because of disabling it
1
u/leonsk297 Linux Mint 27 Cinnamon / Windows 11 26H2 1h ago
I run Mint with IPv6 disabled. Zero issues. Go ahead. The network will use IPv4 just fine.
1
u/buttlicker-6652 1h ago
I mean, as long as your network accually supports ipv4 properly and nothing you use is ipv6 only. It won't be an issue.
But, its worth mentioning that nearly every standard consumer router blocks all incoming packets by default, so, unless your router lacks a firewall or you're running your computer open to the internet depending on UFW for your firewall. There isn't accually a risk vector.
And even then you would have to be running a service that would allow remote code execution or have SSH with a default/weak password setup, because this isnt a RCE exploit, its a firewall bypass.
This CVE is a big deal for public facing servers that use UFW or similar to keep their management ports internal (like making sure that SSH is only accessible from inside the internal network and not outside), because it could allow an external attacker to talk to ports that are supposed to be internal only.
Also, you don't have to completely disable ipv6, you should only need to drop any split packets.
1
u/chuggerguy Linux Mint 22.3 Zena | MATÉ 38m ago
My cheap VPN exposes my real ipv6 IP. Hides my ipv4 but passes my real ipv6 through.
Not wanting a copyright strike, I've been disabling mine for years with no problems.