Title: RunIt CHPST Privilege Escalation Vulnerability
Severity: HIGH
Description:
Runit is an 'init' replacement package for UNIX, Linux, and variants.
Runit is susceptible to a local privilege-escalation vulnerability. This issue is due to a flaw in the 'chpst' utility that results in programs gaining unintended, elevated group privileges.
This issue is due to a mismatch between 32-bit and 16-bit values when specifying group IDs. Specifically, the 'src/uidgid.h' source file specifies an array of 'int' values for group IDs, but dietlibc specifies 16-bit values for group IDs. When the array of 32-bit group IDs in the 'chpst' binary is passed to the 'setgroups()' function call, it is interpreted as an array of 16-bit values. As a result, every other group ID value becomes zero, inadvertently adding group ID 0 privileges to the executed application.
This issue will have varying consequences depending on the nature of programs executed by the affected utility. Attackers exploiting latent vulnerabilities in applications may gain access to elevated group privileges.
Runit versions prior to 1.4.1 are affected by this issue. This affects only packages that are compiled with 16-bit gid_t types (such as when compiled with dietlibc).
Affected Products:
- Debian Linux 3.1.0
- Debian Linux 3.1.0 alpha
- Debian Linux 3.1.0 amd64
- Debian Linux 3.1.0 arm
- Debian Linux 3.1.0 hppa
- Debian Linux 3.1.0 ia-32
- Debian Linux 3.1.0 ia-64
- Debian Linux 3.1.0 m68k
- Debian Linux 3.1.0 mips
- Debian Linux 3.1.0 mipsel
- Debian Linux 3.1.0 ppc
- Debian Linux 3.1.0 s/390
- Debian Linux 3.1.0 sparc
- Gerrit Pape runit 0.x
- Gerrit Pape runit 1.0.x
- Gerrit Pape runit 1.2.x
- Gerrit Pape runit 1.3.x
- Gerrit Pape runit 1.4.0
References:
- Debian: Debian Bug report logs - #356016
- Gerrit Pape: Runit Home Page
- Gerrit Pape <pape@smarden.org>: Accepted runit 1.4.1-1 (source i386)
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.