LWN.net Logo

hf: arbitrary code execution

Package(s):hf CVE #(s):CVE-2008-2378
Created:November 24, 2008 Updated:November 25, 2008
Description:

From the debian-hams mailing list posting:

The hf package, Described by Debian as an amateur-radio protocol suite using a soundcard as a modem, is a program that eventually becomes setuid(0), and has a trivial security hole in it.

By default the package installs "/usr/bin/hfkernel" as a typical binary, but when first started via the program "hf" the binary is changed to be setuid(root).

[...]

Unfortunately the hfkernel program contains a trivial root hole:

int main(int argc, char *argv[])
{
        // snip
        while ((c = getopt(argc, argv, "a:M:c:klhip:m:nt:s:r:Rf23")) != -1)
            switch (c) {

            // snip

                case 'k':
                    system ("killall hfkernel");

            //
}
Creating ~/bin/killall is sufficient to gain root privileges.
Alerts:
Debian DSA-1668-1 2008-11-22

(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds