mirror of
https://seed.radicle.dev/rad:z254T5p17bdFPmzfDojsdjo4HjpoZ.git
synced 2026-11-29 06:00:29 +08:00
os/mixin/common: Block various kernel modules
This commit is contained in:
+35
-11
@@ -6,17 +6,41 @@
|
||||
}: {
|
||||
imports = [./dns.nix];
|
||||
|
||||
# CVE-2026-98130
|
||||
# CVE-2026-98548
|
||||
# CVE-2026-74752
|
||||
# CVE-2026-74469
|
||||
# CVE-2026-64564
|
||||
# CVE-2026-52929
|
||||
boot = {
|
||||
blacklistedKernelModules = ["sctp"];
|
||||
extraModprobeConfig = ''
|
||||
install sctp ${pkgs.coreutils}/bin/false
|
||||
'';
|
||||
boot = let
|
||||
modules = [
|
||||
# CVE-2026-80844
|
||||
"ah6"
|
||||
|
||||
# CVE-2026-31431
|
||||
"algif_aead"
|
||||
|
||||
# CVE-2026-99239
|
||||
"bluetooth"
|
||||
|
||||
# CVE-2026-53266
|
||||
"ebt_snat"
|
||||
|
||||
# CVE-2026-68083
|
||||
"ksmbd"
|
||||
|
||||
# CVE-2026-68121
|
||||
"pppoe"
|
||||
|
||||
# CVE-2026-98130
|
||||
# CVE-2026-98548
|
||||
# CVE-2026-74752
|
||||
# CVE-2026-74469
|
||||
# CVE-2026-64564
|
||||
# CVE-2026-52929
|
||||
"sctp"
|
||||
"sctp_diag"
|
||||
|
||||
# CVE-2026-81000
|
||||
"tun"
|
||||
];
|
||||
in {
|
||||
blacklistedKernelModules = modules;
|
||||
extraModprobeConfig = lib.concatMapStringsSep "\n" (module: "install ${module} ${lib.getExe' pkgs.coreutils "false"}") modules;
|
||||
};
|
||||
|
||||
time.timeZone = "UTC";
|
||||
|
||||
Reference in New Issue
Block a user