From: Ben Hutchings Date: Sun, 4 Aug 2019 23:29:11 +0000 (+0100) Subject: hamradio: Disable auto-loading as mitigation against local exploits X-Git-Tag: archive/raspbian/5.7.10-1+rpi1^2~59 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cf68bf2b00d9b202ee0fbad64efc7bab339697e5;p=linux.git hamradio: Disable auto-loading as mitigation against local exploits Forwarded: not-needed We can mitigate the effect of vulnerabilities in obscure protocols by preventing unprivileged users from loading the modules, so that they are only exploitable on systems where the administrator has chosen to load the protocol. The 'ham' radio protocols (ax25, netrom, rose) are not actively maintained or widely used. Therefore disable auto-loading. Signed-off-by: Ben Hutchings Gbp-Pq: Topic debian Gbp-Pq: Name hamradio-disable-auto-loading-as-mitigation-against-local-exploits.patch --- diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index fd91cd34f25..bb55de09579 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c @@ -1990,7 +1990,7 @@ module_init(ax25_init); MODULE_AUTHOR("Jonathan Naylor G4KLX "); MODULE_DESCRIPTION("The amateur radio AX.25 link layer protocol"); MODULE_LICENSE("GPL"); -MODULE_ALIAS_NETPROTO(PF_AX25); +/* MODULE_ALIAS_NETPROTO(PF_AX25); */ static void __exit ax25_exit(void) { diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 7b1a74f74aa..fa73be473dc 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -1465,7 +1465,7 @@ MODULE_PARM_DESC(nr_ndevs, "number of NET/ROM devices"); MODULE_AUTHOR("Jonathan Naylor G4KLX "); MODULE_DESCRIPTION("The amateur radio NET/ROM network and transport layer protocol"); MODULE_LICENSE("GPL"); -MODULE_ALIAS_NETPROTO(PF_NETROM); +/* MODULE_ALIAS_NETPROTO(PF_NETROM); */ static void __exit nr_exit(void) { diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index 1e8eeb044b0..9465af59955 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c @@ -1554,7 +1554,7 @@ MODULE_PARM_DESC(rose_ndevs, "number of ROSE devices"); MODULE_AUTHOR("Jonathan Naylor G4KLX "); MODULE_DESCRIPTION("The amateur radio ROSE network layer protocol"); MODULE_LICENSE("GPL"); -MODULE_ALIAS_NETPROTO(PF_ROSE); +/* MODULE_ALIAS_NETPROTO(PF_ROSE); */ static void __exit rose_exit(void) {