r/linuxmint • • 4h 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...

7 Upvotes

11 comments sorted by

4

u/Unwiredsoul 4h 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.

4

u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 4h 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.

3

u/buttlicker-6652 3h 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.

2

u/Evening-Landscape763 4h 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/Unwiredsoul 4h ago

Thank you for sharing this! My comment was already too long, but I used to do the same thing with an old ISP, too.

1

u/Thunderbolt1003USA 4h ago

My ISP uses DS-LITE, disabling IPv6 would mean no Internet at all for me.

1

u/Unwiredsoul 3h ago

There are many ways IPv6 has been rolling out over the years. I'm not sure how common DS-Lite is for ISP's globally, but I've never had one in the US that uses it (residential or commercial).

I'm still familiar with DS-Lite though, but it reminds me too much of some wacky networking junk I ran into in the late 90's/early 2000's.

However, it can work well, so I hope it is for you.

1

u/Thunderbolt1003USA 3h ago

It's the default in Germany and works perfectly for outgoing, but not incoming for IPv4.

1

u/leonsk297 Linux Mint 27 Cinnamon / Windows 11 26H2 4h ago

I run Mint with IPv6 disabled. Zero issues. Go ahead. The network will use IPv4 just fine.

1

u/chuggerguy Linux Mint 22.3 Zena | MATÉ 3h 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.

1

u/ScullerCA 2h ago

Granted Red Hat is more likely to have a userbase of large organizations where running one or more servers on that platform, so have higher exposure to external access than your desktop. Plus in general the expectation for how tight any of their machines are on security is higher than most people would do with their own system.

If something is hitting the OS firewall for average home desktop, it also needs to get by modem firewall, and if have separate router that firewall too. So for most average desktops it probably is not their biggest risk, laptops that get into public/company networks I could see a stronger argument.