CVE-2014-9645: Input Validation
Last updated 25 August 2025
Other sources
Matthias Krause reports:
modprobe uses the "basename" of the module argument as the module to load, as can be seen here:
bbox:~# lsmod | grep vfat bbox:~# modprobe foo/bar/baz/vfat bbox:~# lsmod | grep vfat vfat 17135 0 fat 61984 1 vfat bbox:~# find /lib/modules/uname -r -name vfat.ko /lib/modules/3.18.0-rc5+/vfat.ko
It should instead fail to load the module -- actually fail to find the module.
This can even be abused to load arbitrary modules by nullifying enforced module prefixes some of the Linux kernel's subsystems try to apply to prevent just that:
bbox:~# lsmod | grep usb bbox:~# ifconfig /usbserial up ifconfig: SIOCGIFFLAGS: No such device bbox:~# lsmod | grep usb usbserial 32201 0
The actual modprobe invocation, done by the kernel was: /sbin/modprobe -q -- netdev-/usbserial
Due to the bug, the "netdev-" prefix including the "/" are ignored and the usbserial.ko module gets loaded.
The same works for filesystems, e.g.:
bbox:~# lsmod | grep sndpcm bbox:~# mount -t /sndpcm none / mount: mounting none on / failed: No such device bbox:~# lsmod | grep sndpcm sndpcm 88826 0 sndtimer 26606 1 sndpcm snd 61141 2 sndpcm,sndtimer
This time the kernel called out to: /sbin/modprobe -q -- fs-/sndpcm
Note the "fs-" prefix.
External reference: https://bugs.busybox.net/showbug.cgi?id=7652 (cert maybe expired)
— Red Hat
The addprobe function in modutils/modprobe.c in BusyBox before 1.23.0 allows local users to bypass intended restrictions on loading kernel modules via a / (slash) character in a module name, as demonstrated by an "ifconfig /usbserial up" command or a "mount -t /sndpcm none /" command.
— Launchpad
Affected Software
Remediation
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is CVE-2014-9645?
CVE-2014-9645 is a vulnerability in BusyBox versions before 1.23.0 that allows local users to bypass restrictions on loading kernel modules.
How can local users exploit CVE-2014-9645?
Local users can exploit CVE-2014-9645 by using a / character in a module name to load kernel modules that are supposed to be restricted.
What is the severity of CVE-2014-9645?
CVE-2014-9645 has a severity rating of medium with a CVSS score of 5.5.
Which versions of BusyBox are affected by CVE-2014-9645?
BusyBox versions before 1.23.0 are affected by CVE-2014-9645.
How can I fix CVE-2014-9645?
To fix CVE-2014-9645, update to BusyBox version 1.23.0 or later.