From e03b4685440bc83b6718d1574a9f17ac12416e09 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 5 Aug 2019 00:29:11 +0100 Subject: [PATCH] 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 --- net/ax25/af_ax25.c | 2 +- net/netrom/af_netrom.c | 2 +- net/rose/af_rose.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 6b4c25a9237..3ca255c81be 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c @@ -2061,7 +2061,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 5a4cb796150..bd3483a7e39 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -1494,7 +1494,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 ca2b17f3267..0f08a031e8c 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c @@ -1600,7 +1600,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) { -- 2.30.2