LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Linux Kernel Vulnerability (https://www.linuxquestions.org/questions/linux-security-4/linux-kernel-vulnerability-9/)

jeremy 07-01-2000 11:05 AM

This is getting pretty old, but it is serious enough that I'll post it.

There is a problem in the following kernels that will allow a local user to gain root. If you have a system that has local users it is HIGHLY recommended that you upgrade to 2.2.16 (or the LATEST 2.4 series if you are so inclined).
Vulnerable:
Linux kernel 2.4.0-test1
Linux kernel 2.2.15pre20
Linux kernel 2.2.15pre16
Linux kernel 2.2.15
Linux kernel 2.2.13
Linux kernel 2.2.12

Details:
POSIX "Capabilities" have recently been implemented in the Linux kernel. These "Capabilities" are an additional form of privilege control to enable more specific control over what priviliged processes can do. Capabilities are implemented as three (fairly large) bitfields, which each bit representing a specific action a privileged process can perform. By setting specific bits, the actions of priviliged processes can be controlled -- access can be granted for various functions only to the specific parts of a program that require them. It is a security measure. The problem is that capabilities are copied with fork() execs, meaning that if capabilities are modified by a parent process, they can be carried over. The way that this can be exploited is by setting all of the capabilities to zero (meaning, all of the bits are off) in each of the three bitfields and then executing a setuid program that attempts to drop priviliges before executing code that could be dangerous if run as root, such as what sendmail does. When sendmail attempts to drop priviliges using setuid(getuid()), it fails not having the capabilities required to do so in its bitfields. It continues executing with superuser priviliges, and can run a users .forward file as root leading to a complete compromise. Procmail can also be exploited in this manner.


puffinman 03-11-2005 05:32 PM

Yeah, this IS old.

(Doing my part to clear out the no-replies! :D )

penguinlnx 03-15-2005 02:03 AM

Internet access for other local users
 
How do you go about setting up permissions for local users to use the internet?
Is it an automatic or default priviledge?


All times are GMT -5. The time now is 07:37 PM.