2010s PaX/Grsecurity had an option to ban module autoloading, which is pretty us...
niconiconi @niconiconi@mk.absturztau.be
2010s PaX/Grsecurity had an option to ban module autoloading, which is pretty useful, e.g. the recent nginx2root exploit chain relies on opening a SCTP socket which autoloads a vulnerable sctp.ko. There was an attempt to upstream it in 2017 but that attempt failed.
#TIL An alternative does exist: kernel.modules_disabled. Once toggled, all additional modules are permanently blocked after this point. Not as painless as "just block autoloading", but should work well enough if you make it the last service to trigger on boot on a fixed-function server.