CVE-2014-0196
Linux Kernel Race Condition Vulnerability
Description
CVE-2014-0196 is a race condition vulnerability in the Linux kernel's n_tty_write function within the TTY driver subsystem. The flaw exists in versions through 3.14.3 and affects the handling of terminal driver access under specific "LECHO & !OPOST" conditions. A local attacker with low-level system privileges can trigger this race condition by performing concurrent read and write operations with long strings, leading to memory corruption that may cause a system crash or enable privilege escalation. This Linux kernel vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, and with an EPSS score of 61.8% it faces a high probability of active exploitation. The CVE-2014-0196 flaw impacts numerous downstream products including Debian, Red Hat Enterprise Linux, SUSE, Ubuntu, Oracle Linux, and multiple F5 BIG-IP appliances.
KEV Information
CVSS Score
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CalculatorAffected Products
| Vendor | Product | Version |
|---|---|---|
| linux | linux kernel | > 2.6.31, < 3.2.59; >= 3.3, < 3.4.91; >= 3.5, < 3.10.40; >= 3.11, < 3.12.20; >= 3.13, < 3.14.4; 2.6.31 |
| debian | debian linux | 6.0; 7.0 |
| redhat | enterprise linux | 6.0 |
| redhat | enterprise linux eus | 6.3; 6.4 |
| redhat | enterprise linux server eus | 6.3 |
| suse | suse linux enterprise desktop | 11 |
| suse | suse linux enterprise high availability extension | 11 |
| suse | suse linux enterprise server | 11 |
| oracle | linux | 6 |
| canonical | ubuntu linux | 10.04; 12.04; 12.10; 13.10; 14.04 |
| f5 | big-ip access policy manager | >= 11.1.0, <= 11.5.1 |
| f5 | big-ip advanced firewall manager | >= 11.3.0, <= 11.5.1 |
| f5 | big-ip analytics | >= 11.1.0, <= 11.5.1 |
| f5 | big-ip application acceleration manager | >= 11.4.0, <= 11.5.1 |
| f5 | big-ip application security manager | >= 11.1.0, <= 11.5.1 |
| f5 | big-ip edge gateway | >= 11.1.0, <= 11.3.0 |
| f5 | big-ip global traffic manager | >= 11.1.0, <= 11.5.1 |
| f5 | big-ip link controller | >= 11.1.0, <= 11.5.1 |
| f5 | big-ip local traffic manager | >= 11.1.0, <= 11.5.1 |
| f5 | big-ip policy enforcement manager | >= 11.3.0, <= 11.5.1 |
References
- http://bugzilla.novell.com/show_bug.cgi?id=875690(Issue Tracking, Permissions Required, Third Party Advisory)
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=4291086b1f081b869c6d79e5b7441633dc3ace00(Broken Link)
- http://linux.oracle.com/errata/ELSA-2014-0771.html(Third Party Advisory)
- http://lists.opensuse.org/opensuse-security-announce/2014-05/msg00007.html(Mailing List, Third Party Advisory)
- http://lists.opensuse.org/opensuse-security-announce/2014-05/msg00012.html(Mailing List, Third Party Advisory)
- http://pastebin.com/raw.php?i=yTSFUBgZ(Exploit, Mailing List, Third Party Advisory)
- http://rhn.redhat.com/errata/RHSA-2014-0512.html(Third Party Advisory)
- http://secunia.com/advisories/59218(Not Applicable)
- http://secunia.com/advisories/59262(Broken Link)
- http://secunia.com/advisories/59599(Broken Link)
- http://source.android.com/security/bulletin/2016-07-01.html(Not Applicable)
- http://support.f5.com/kb/en-us/solutions/public/15000/300/sol15319.html(Third Party Advisory)
- http://www.debian.org/security/2014/dsa-2926(Third Party Advisory)
- http://www.debian.org/security/2014/dsa-2928(Third Party Advisory)
- http://www.exploit-db.com/exploits/33516(Exploit, Third Party Advisory, VDB Entry)
- http://www.openwall.com/lists/oss-security/2014/05/05/6(Mailing List, Third Party Advisory)
- http://www.osvdb.org/106646(Broken Link)
- http://www.ubuntu.com/usn/USN-2196-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-2197-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-2198-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-2199-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-2200-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-2201-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-2202-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-2203-1(Third Party Advisory)
- http://www.ubuntu.com/usn/USN-2204-1(Third Party Advisory)
- https://bugzilla.redhat.com/show_bug.cgi?id=1094232(Issue Tracking, Patch, Third Party Advisory)
- https://github.com/torvalds/linux/commit/4291086b1f081b869c6d79e5b7441633dc3ace00(Exploit, Patch, Third Party Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2014-0196(US Government Resource)
Weakness Type
CWE-362: Concurrent Execution Using Shared Resource with Improper Synchronization
CWE-362, commonly known as a race condition, occurs when multiple threads or processes access shared resources without proper synchronization. In the context of CVE-2014-0196, the Linux kernel's TTY driver fails to properly serialize concurrent read and write operations on terminal devices, allowing an attacker to exploit a timing window that leads to memory corruption.
Learn more: CWE-362 — Concurrent Execution Using Shared Resource with Improper Synchronization
Impact Analysis
Attack Vector (Local): CVE-2014-0196 requires local access to the system, meaning an attacker must already have a user account or shell access on the affected machine to exploit this vulnerability. Attack Complexity (Low): The exploit conditions are straightforward and do not require special preparation or winning a narrow timing window beyond triggering the race condition itself. Privileges Required (Low): A standard unprivileged user account is sufficient to trigger the vulnerability, making it accessible to any local user. Confidentiality and Integrity (None): While the CVSS v3.1 base score of 5.5 (Medium) reflects no direct data exfiltration or modification, the underlying memory corruption can lead to privilege escalation in practice. Availability (High): Successful exploitation causes memory corruption that can crash the entire system, resulting in a complete denial of service. The EPSS score of 61.8% (98th percentile) indicates that exploitation activity is highly likely, and CISA has confirmed active exploitation in the wild by adding CVE-2014-0196 to its Known Exploited Vulnerabilities catalog.
Exploit Maturity
Public exploit code is available for CVE-2014-0196 via multiple sources, including Exploit-DB and a Pastebin proof-of-concept. Additionally, the kernel commit on GitHub is tagged as an exploit reference. Active exploitation has been confirmed by CISA, which added this vulnerability to its Known Exploited Vulnerabilities catalog with a remediation deadline of June 2, 2023. The EPSS score of 61.8% places CVE-2014-0196 in the 98th percentile, indicating near-certain exploitation activity across the threat landscape. While the ransomware association is currently listed as unknown, the availability of mature public exploit code and confirmed active exploitation make this vulnerability a critical priority for patching.
Remediation
- Apply kernel patches immediately as directed by CISA's required action: apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. Upgrade the Linux kernel to version 3.14.4 or later, which contains the fix in commit 4291086b1f081b869c6d79e5b7441633dc3ace00.
- Update distribution-specific packages by applying the relevant security advisories for your platform: Red Hat (RHSA-2014-0512), Debian (DSA-2926, DSA-2928), Ubuntu (USN-2196-1 through USN-2204-1), SUSE (openSUSE-SU-2014:0678), and Oracle Linux (ELSA-2014-0771). For F5 BIG-IP products, apply the mitigations described in SOL15319.
- Restrict local access to affected systems by auditing user accounts and removing unnecessary shell access. Since this vulnerability requires local privileges, reducing the number of users with interactive login capabilities minimizes the attack surface.
- Monitor for exploitation attempts by reviewing system logs for unexpected kernel panics, segmentation faults in TTY-related processes, or suspicious terminal operations involving high-volume read/write activity on pseudo-terminals.
- Implement defense-in-depth measures against race condition vulnerabilities by enabling kernel hardening options such as SELinux or AppArmor in enforcing mode, which can limit the impact of successful privilege escalation attempts.
Technical Details
Vulnerability mechanism: CVE-2014-0196 resides in the n_tty_write function in drivers/tty/n_tty.c, where the Linux kernel fails to properly manage concurrent access to the TTY driver when the terminal line discipline is configured with LECHO (local echo) enabled and OPOST (output post-processing) disabled. This specific configuration creates a race condition between the read and write paths of the N_TTY line discipline. Exploitation technique: An attacker triggers the vulnerability by initiating simultaneous read and write system calls with long string buffers on the same TTY device, exploiting the insufficient locking to corrupt kernel memory. The CVSS vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H reflects that while the base metric captures the denial-of-service impact, the memory corruption primitive can be leveraged for privilege escalation depending on the kernel memory layout and exploitation technique. Root cause: The underlying issue is a classic CWE-362 race condition where shared TTY buffer state is accessed by multiple execution contexts without adequate mutual exclusion, and the fix introduced proper locking to serialize these operations.
Frequently Asked Questions
Is CVE-2014-0196 being actively exploited?
Yes, CVE-2014-0196 is confirmed to be actively exploited in the wild. CISA added this vulnerability to its Known Exploited Vulnerabilities catalog with a remediation deadline of June 2, 2023. The EPSS score of 61.8% (98th percentile) further indicates a very high probability of exploitation activity.
What products are affected by CVE-2014-0196?
CVE-2014-0196 affects the Linux kernel through version 3.14.3. This impacts all major distributions including Red Hat Enterprise Linux, Debian, Ubuntu, SUSE Linux Enterprise, and Oracle Linux. Additionally, F5 BIG-IP products (Access Policy Manager, Application Security Manager, Local Traffic Manager, and others) that rely on affected kernel versions are also vulnerable.
How do I fix CVE-2014-0196?
Upgrade the Linux kernel to version 3.14.4 or later, or apply the distribution-specific security patches provided by your vendor (e.g., RHSA-2014-0512 for Red Hat, DSA-2926 for Debian). For F5 BIG-IP appliances, consult SOL15319 for applicable mitigations. See the Remediation section above for detailed steps.
How severe is CVE-2014-0196?
CVE-2014-0196 carries a CVSS v3.1 base score of 5.5 (Medium severity), reflecting the local access requirement and primary denial-of-service impact. However, the practical severity is elevated due to confirmed active exploitation, available public exploit code, and the potential for privilege escalation through memory corruption. The EPSS percentile of 98.3% places it among the most likely-to-be-exploited vulnerabilities.
Need Help With Vulnerability Management?
Our security experts can help you prioritize and remediate vulnerabilities effectively.