Settings

Theme

Latest Debian 12 update opens MariaDB server to the internet

8 points by babuskov a month ago · 6 comments · 1 min read


I have a couple servers with Debian 12, running MariaDB. The servers were configured with bind-address 127.0.0.1:3306 so that any database connections are local.

I upgraded to Debian 12.15 today, rebooted and checked open ports just to see if all services are running.

To my surprise, MariaDB is no longer listening on 127.0.0.1:3306, but we have "init" listening on :::3306.

It looks like default config has changed to use Systemd sockets. Which I guess is fine, but silently making your database server accessible to the whole Internet doesn't sound like a good idea.

So, just PSA, if you rely on bind-address only, make sure you reconfigure the mariadb.socket settings.

gib444 a month ago

Bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1141976

debpalash a month ago

Yikes, on debain seems highly alarming, remeber times when used to turn to debain for stability and security of servers.

atmosx a month ago

The Damon should default to local host, however mariaDB is not some obscure daemon that runs for the kicks… so maybe, engineers should take the time to setup a firewall instead of assuming that all daemons listen to local host? Especially when the server is online? Just saying…

  • babuskovOP a month ago

    Yeah, I have firewall set up to disallow everything except whitelisted ports, so my system was never in jeopardy. Maybe I should have mentioned that in my original post.

khurs a month ago

Have you reported it to Debian as a bug?

gib444 a month ago

Can you repro on a fresh install?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection