CVE-2015-3339: Race Condition

Published Apr 21, 2015
·
Updated

A race condition flaw was found between the chown() and execve() system calls. When changing the owner of a setuid-user binary to root, the race condition could momentarily make the binary setuid root. When root chown()ed an attacker-owned setuid file to root, the file briefly was setuid root (and executable as such).

An attacker could take advantage of this small window and execute a setuid binary with elevated privileges.

Upstream patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=8b01fc86b9f425899f8a3a8fc1c47d73c2c20543

Additional details:

http://seclists.org/oss-sec/2015/q2/216

Other sources

Race condition in the preparebinprm function in fs/exec.c in the Linux kernel before 3.19.6 allows local users to gain privileges by executing a setuid program at a time instant when a chown to root is in progress, and the ownership is changed but the setuid bit is not yet stripped.

Launchpad

Affected Software

4 affected componentsFixes available
Linux Linux kernel<=3.19.5
Debian Debian Linux=7.0
Debian Debian Linux=8.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Apr 21, 2015
Data Sourced
via Red Hat·07:10 PM
DescriptionSeverityAffected Software
May 27, 2015
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:08 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:08 AM
RemedyDescriptionSeverityAffected Software
Apr 28, 2025
Data Sourced
via Debian·02:10 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2015-3339?

CVE-2015-3339 has a medium severity rating due to the potential for privilege escalation.

2

How do I fix CVE-2015-3339?

To fix CVE-2015-3339, ensure you update to the patched versions of the Linux kernel or Debian packages that address this vulnerability.

3

What systems are affected by CVE-2015-3339?

CVE-2015-3339 affects multiple versions of the Linux kernel up to 3.19.5 and both Debian 7.0 and 8.0 distributions.

4

How does CVE-2015-3339 work?

CVE-2015-3339 exploits a race condition between the chown() and execve() system calls, allowing unauthorized users to gain root privileges.

5

Is there a known exploit for CVE-2015-3339?

Yes, there are known exploits for CVE-2015-3339 that can allow an attacker to exploit privilege escalation opportunities in affected systems.

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