Picture an ordinary web server this week, on a stock Debian or Ubuntu installation, as tidy as these things get. nginx runs its workers as an unprivileged user, inside a container built from the official image, with a firewall in front that lets through port 443 and nothing else. An image scanner went over it on Monday and found nothing to complain about. Somewhere in one of those workers a single line of code asks the kernel for a socket of type SCTP, the Stream Control Transmission Protocol, which telephone networks use to carry their signalling and which this server has never had the slightest use for.
The kernel does not have SCTP in memory. It fetches the module from disk into ring zero and hands the worker its socket. Since 18 November it has been public what an attacker can do with it.
One socket, one protocol
NGINX2Root is the name Theori's research team Xint gave to "five nginx vulnerabilities and a separate Linux kernel SCTP vulnerability", disclosed in the middle of November. The most widely reachable of the five, CVE-2026-123007, sits in nginx's HTTP/2 flow control and has done so since version 1.9.5, the release that introduced HTTP/2; serving ordinary static files is enough to reach it. It gives an attacker "arbitrary commands with nginx worker privileges", which on a well-built server are meant to be very few. The second stage is a use-after-free in the kernel's SCTP code, present since Linux 4.15 in 2018 and, at the time of writing, without a CVE or a patch. Together they reach "root privileges on the host and even escape containers". Xint counted 56.7 million nginx hosts on 10 November, and of the 11.94 million that showed a version, 98.9 per cent fell inside the affected range.
The bridge between the two stages is a feature. In the Linux source, inet_create looks up the requested protocol, and if it is not registered, it calls request_module with a name built from the request, net-pf-2-proto-132 in this case, which the SCTP module declares as its alias. The kernel then runs modprobe as a helper with full privileges, modprobe loads sctp.ko, and the socket call succeeds. Sysdig's lab tested it from the worker: "a single SCTP socket opened from the NGINX worker was enough to load sctp.ko", and "once loaded, the module stays loaded until the next reboot". Nobody checks who asked. A worker with no rights at all can, as Sysdig puts it, "load the vulnerable code into the kernel themselves".
The container changes nothing, "because they share the host's kernel". The researchers ran the chain from a Docker container built on the official nginx:1.31.8 image and came out as root on the machine underneath.
The hardened room with the hatch left on the latch
Consider what that server's operators did right. They dropped the privileges of the worker, put it in a container, closed every port but one and scanned the image. Each of those measures assumes that the worker can do only what it has been given. And then the same worker asks for a new protocol in the kernel, the one component every container on the host shares, and the kernel obliges without a question. It is a bank vault with a night porter who lets in anyone who asks politely for a room, on the off chance they have a good reason.
The distributions know. Ubuntu's kmod package ships a file called blacklist-rare-network.conf, and its comment explains the purpose with admirable candour: the protocols in it "are being blacklisted here so that unprivileged users cannot use them by default". The list holds eight protocol families, RDS among them, which most administrators could not name if asked. SCTP is not on the list, nor is DCCP. Debian's kmod ships no network list at all, only a few options for sound cards.
DCCP is the precedent. In February 2017 Andrey Konovalov reported CVE-2017-6074, a double free in the DCCP code that could be "exploited to gain kernel code execution from an unprivileged processes", a bug that had been there since about 2005. In December of that year LWN described the mechanism in one sentence that might have been written last week: "the autoloading mechanism allows any user to force that module to be loaded simply by creating a DCCP socket." A patch set by Djalal Harouni proposed a switch to restrict it. The current kernel documentation has no such switch, and the kernel of Debian 13, released in August 2025, still ships dccp.ko, eight years later, ready to be fetched for anyone who opens the socket.
What is on the shelf
Ask the operators of that tidy server what their kernel contains, and very few will know (I asked myself, and had to count). Debian 13's current kernel package, version 6.12.117 for amd64, holds 4,230 loadable modules, 487 of them for networking alone. Among them are SCTP, DCCP, RDS and TIPC, all built as modules by the kernel configuration and all reachable by name. Nobody chose them. They arrived with the package called linux-image-amd64, which is what one installs when one wants a kernel and has no particular opinion about which parts of it.
That shelf is the attack surface, and it is a good deal larger than the server's actual job. A web server needs TCP, perhaps UDP for HTTP/3, and a filesystem or two. Everything else on the shelf is code the server will never use, kept within reach of any process that knows the name, written by thousands of contributors and audited unevenly, because almost nobody runs it. Bugs tend to live longest in code that hardly anyone runs, and the autoloader keeps all of it one socket call away from any process on the machine.
The strongest case for loading on demand
The arrangement has a sound origin. A distribution builds one kernel for millions of machines it has never seen, from laptops to telephone exchanges, and it cannot know which drivers and protocols each of them needs. Compiling everything into the kernel would make it enormous; making the administrator load each piece by hand would make every installation a puzzle. Loading on demand solves both problems, and for hardware it works beautifully. Telecom operators run SCTP in earnest, and several Kubernetes network plugins use it too; they would rather not file a ticket every time a node boots.
The switches exist as well. Setting the sysctl kernel.modprobe to an empty string means that "module autoloading is completely disabled". The toggle modules_disabled forbids loading altogether, once set, until the next boot. One line in modprobe.d, install sctp /bin/false, closed this very hole in Sysdig's lab, and the worker's call failed with EPROTONOSUPPORT. Hardening guides have recommended exactly that for years.
All of it is true, and all of it is opt-in. The default stays open, the switch sits in a different place on each distribution, and the work falls to an administrator who has to know which of 4,230 modules to forbid before an attacker knows which one to request. Sysdig lists the limits of the block in its own report: it "doesn't unload a module that is already loaded", it does not help where the code is compiled in, and it breaks anything that needs SCTP. The repair has to be made on every machine, and it is the administrator who pays for it, in hours.
On FreeBSD
FreeBSD 15.1 keeps its modules on a shelf as well, 858 of them in the release, and every one of them stays there until somebody entitled to take it down does so.
When a process asks for a socket, socreate in uipc_socket.c looks up the protocol with pffindproto, and a protocol it cannot find earns the caller EPROTONOSUPPORT, which is the whole of the procedure. The socket code contains no call to the module loader, so an unprivileged nginx worker asking for SCTP on a FreeBSD host receives an error and the kernel stays exactly as it was. Since FreeBSD 13.0 SCTP has not been part of the GENERIC kernel; GENERIC carries only the option SCTP_SUPPORT, with the comment "Allow kldload of SCTP", so the protocol arrives when the administrator types the command.
The loader guards its own door. kern_kldload in kern_linker.c checks two things before it reads a single byte: the securelevel, through securelevel_gt, and the privilege PRIV_KLD_LOAD, both against the credentials of the thread that asked. Where the kernel does load something on its own initiative, as when mount names a filesystem it does not have yet, the request goes through the same function with the same check, so the kernel loads on behalf of a caller only what the caller would be allowed to load in its own name. Inside a jail even root is refused, because prison_priv_check does not list the privilege, and its default branch says so plainly: "In all remaining cases, deny the privilege request." At securelevel 1, according to security(7), "kernel modules … may not be loaded or unloaded" by anyone at all, root included, until the next boot.
So the hatch in the hardened room is shut from the start. An nginx worker in a FreeBSD jail that asks for SCTP receives the error code and nothing else, and the shelf stays where it was.
The limit
The nginx bug is nginx's own. CVE-2026-123007 sits in nginx's HTTP/2 code on every platform, so the update to 1.31.9 or 1.30.7 belongs on every server that runs it. On FreeBSD the attack ends where it began: in an unprivileged worker inside a jail, with no way of adding a single line to the kernel.
The kernel's own code stays in the administrator's hands. What is compiled in or loaded on purpose is maintained with the base system, and freebsd-update brings its fixes for kernel and userland in one step. Because a jail shares the host's kernel, FreeBSD denies the jail every privilege that would let it change that kernel, module loading first among them.
SCTP arrives when somebody needs it. A telecom workload gets it with kldload sctp, a deliberate act by root, and from then on the protocol serves the processes on that host. A web server never needs to take that step.
FreeBSD loads automatically where it makes sense. devd loads drivers for hardware when it appears, and root's ifconfig or mount fetches the module they need. Each of these runs with privilege and passes the same check in kern_kldload, which keeps the convenience inside the rule of the house.
Linux can be closed by hand. A fleet that empties kernel.modprobe or blocks the rare protocols one by one has shut this path on every machine it remembered, whilst a FreeBSD host comes out of the installer with it shut already.
A kernel that loads code because somebody asked has made the asking the only credential, and the politest process on the machine is rarely the most trustworthy one.