Linux Kernel Race Condition
CVE-2014-0196 is a medium-severity concurrent execution using shared resource with improper synchronization vulnerability in Linux Kernel from Linux, with a CVSS 2.0 base score of 6.9 out of 10. It can be exploited with local access to the system by an unauthenticated attacker, without any action from a user. The record lists versions 3.2.59, 3.4.91, 3.10.40 as the first without the flaw, so updating Linux Kernel to one of those releases or later removes the exposure. CISA added it to the Known Exploited Vulnerabilities catalogue on May 12, 2023, which means attacks have been observed in the wild.
Attackers are already exploiting this vulnerability, according to CISA.
What to do
- Update Linux Kernel to 3.2.59 or 3.4.91 or 3.10.40 or 3.12.20, whichever matches your release line, or a later version.
- CISA's required action: The impacted product is end-of-life and should be disconnected if still in use.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux Kernel | after 2.6.31 up to, but not including, 3.2.59; 3.3 up to, but not including, 3.4.91; 3.5 up to, but not including, 3.10.40; 3.11 up to, but not including, 3.12.20; 3.13 up to, but not including, 3.14.4; 2.6.31 | 3.2.59, 3.4.91, 3.10.40, 3.12.20, 3.14.4 |
| Debian | Debian Linux | 6.0; 7.0 | Not stated |
| Red Hat | Enterprise Linux | 6.0 | Not stated |
| Red Hat | Enterprise Linux EUS | 6.3; 6.4 | Not stated |
| Red Hat | Enterprise Linux Server EUS | 6.3 | Not stated |
| SUSE | Suse Linux Enterprise Desktop | 11 | Not stated |
| SUSE | Suse Linux Enterprise High Availability Extension | 11 | Not stated |
| SUSE | Suse Linux Enterprise Server | 11 | Not stated |
| Oracle | Linux | 6 | Not stated |
| Canonical | Ubuntu Linux | 10.04; 12.04; 12.10; 13.10; 14.04 | Not stated |
| F5 | Big-ip Access Policy Manager | 11.1.0 through 11.5.1 | Not stated |
| F5 | Big-ip Advanced Firewall Manager | 11.3.0 through 11.5.1 | Not stated |
| F5 | Big-ip Analytics | 11.1.0 through 11.5.1 | Not stated |
| F5 | Big-ip Application Acceleration Manager | 11.4.0 through 11.5.1 | Not stated |
| F5 | Big-ip Application Security Manager | 11.1.0 through 11.5.1 | Not stated |
| F5 | Big-ip Edge Gateway | 11.1.0 through 11.3.0 | Not stated |
| F5 | Big-ip Global Traffic Manager | 11.1.0 through 11.5.1 | Not stated |
| F5 | Big-ip Link Controller | 11.1.0 through 11.5.1 | Not stated |
| F5 | Big-ip Local Traffic Manager | 11.1.0 through 11.5.1 | Not stated |
| F5 | Big-ip Policy Enforcement Manager | 11.3.0 through 11.5.1 | Not stated |
| F5 | Big-ip Protocol Security Module | 11.1.0 through 11.4.1 | Not stated |
| F5 | Big-ip Wan Optimization Manager | 11.1.0 through 11.3.0 | Not stated |
| F5 | Big-ip Webaccelerator | 11.1.0 through 11.3.0 | Not stated |
| F5 | Big-iq Application Delivery Controller | 4.5.0 | Not stated |
| F5 | Big-iq Centralized Management | 4.6.0 | Not stated |
Version data comes from NVD's product matching; 5 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Access vector
- LocalLocal access is required.
- Access complexity
- MediumSome conditions must be met.
- Authentication
- NoneNo login is needed.
- Confidentiality
- CompleteAll data can be read.
- Integrity
- CompleteAny data can be modified.
- Availability
- CompleteThe system can be shut down completely.
Vector: AV:L/AC:M/Au:N/C:C/I:C/A:C. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 5.5 | Medium | CISA (ADP) |
| CVSS 2.0 | 6.9 | Medium | NVD |
Official description
The n_tty_write function in drivers/tty/n_tty.c in the Linux kernel through 3.14.3 does not properly manage tty driver access in the "LECHO & !OPOST" case, which allows local users to cause a denial of service (memory corruption and system crash) or gain privileges by triggering a race condition involving read and write operations with long strings.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Concurrent Execution using Shared Resource with Improper Synchronization
The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
How developers prevent this class of flaw
- In languages that support it, use synchronization primitives. Only wrap these around critical code to minimize the impact on performance.
- Use thread-safe capabilities such as the data access abstraction in Spring.
- Minimize the usage of shared resources in order to remove as much complexity as possible from the control flow and to reduce the likelihood of unexpected conditions occurring. Additionally, this will minimize the amount of synchronization necessary and may even help to reduce the likelihood of a denial of service where an attacker may be able to repeatedly trigger a critical section (CWE-400).
Timeline
- CVE record published.
- Added to CISA's Known Exploited Vulnerabilities catalogue.
- Deadline for US federal agencies to remediate, set by CISA.
- CISA published its SSVC assessment (exploitation: active, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- bugzilla.redhat.com/show_bug.cgi?id=1094232Issue Tracking, Third Party Advisory
- github.com/torvalds/linux/commit/4291086b1f081b869c6d79e5b7441633dc3ace00Exploit, Third Party Advisory
Third-party and government advisories
- bugzilla.novell.com/show_bug.cgi?id=875690Issue Tracking, Permissions Required, Third Party Advisory
- linux.oracle.com/errata/ELSA-2014-0771.htmlThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2014-05/msg00007.htmlMailing List, Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2014-05/msg00012.htmlMailing List, Third Party Advisory
- rhn.redhat.com/errata/RHSA-2014-0512.htmlThird Party Advisory
- support.f5.com/kb/en-us/solutions/public/15000/300/sol15319.htmlThird Party Advisory
- debian.org/security/2014/dsa-2926Third Party Advisory
- debian.org/security/2014/dsa-2928Third Party Advisory
- openwall.com/lists/oss-security/2014/05/05/6Mailing List, Third Party Advisory
- ubuntu.com/usn/USN-2196-1Third Party Advisory
- ubuntu.com/usn/USN-2197-1Third Party Advisory
- ubuntu.com/usn/USN-2198-1Third Party Advisory
- ubuntu.com/usn/USN-2199-1Third Party Advisory
- ubuntu.com/usn/USN-2200-1Third Party Advisory
- ubuntu.com/usn/USN-2201-1Third Party Advisory
Technical write-ups (may include proof of concept)
- pastebin.com/raw.php?i=yTSFUBgZExploit, Mailing List, Third Party Advisory
- exploit-db.com/exploits/33516Exploit, Third Party Advisory, VDB Entry
Other references
- secunia.com/advisories/59218Not Applicable
- source.android.com/security/bulletin/2016-07-01.htmlNot Applicable
Other vulnerabilities in Linux Kernel
- 9.8 Critical severity
- 7.0 High severity
- 7.8 High severity
- 7.1 High severity
- 7.0 High severity
- 7.8 High severity
Spotted an error? Tell us.