CVE DatabaseCVE-2014-0196
한국어 권고문 →
CVE-2014-01965.5/MEDIUMCISA KEVCWE-362CWE-362

Linux Kernel n_tty_write Race Condition Local Privilege Escalation (CVE-2014-0196)

⚡ Jump to Patch
Affected Vendors
linux
Affected Components
linux_kernel
Published Date
2014-05-07
CVSS v3.1
5.5
MEDIUM
EPSS (30d)
20.3%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

All Linux systems running Linux kernel versions up to and including 3.14.3

Impact

Local attackers can exploit a race condition to corrupt kernel memory, leading to a denial of service (system crash) or full root privilege escalation

Mitigation

Apply the latest kernel security updates provided by your OS vendor and reboot the system

Affected Products & Version Scope

Linux kernel versions up to and including 3.14.3 (Affects major distributions including RHEL, CentOS, Debian, Ubuntu, and SUSE)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Update your Linux kernel to the latest stable release using your distribution's package manager and reboot the system to apply changes.

bash
# For RHEL / CentOS systems
sudo yum update -y kernel
sudo reboot

# For Ubuntu / Debian systems
sudo apt-get update && sudo apt-get install --only-upgrade -y linux-image-generic
sudo reboot

2. Temporary Workaround & Hardening Configuration

If an immediate reboot or kernel update is not feasible, restrict compiler access and harden temporary directories to prevent the execution of exploit binaries.

bash
# Restrict compiler access to root only
sudo chmod 700 /usr/bin/gcc
sudo chmod 700 /usr/bin/g++

# Remount temporary directories with noexec flag
sudo mount -o remount,noexec /tmp
sudo mount -o remount,noexec /dev/shm

3. Log Audit & IoC Verification Commands

Check the current running kernel version and inspect system logs for signs of kernel panics or memory corruption related to the tty subsystem.

bash
# Verify the current running kernel version
uname -r

# Search for tty-related kernel faults or crashes in system logs
sudo dmesg | grep -Ei 'tty|general protection fault|unable to handle kernel'
sudo grep -Ei 'tty|general protection fault' /var/log/messages /var/log/syslog 2>/dev/null
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Due to active exploitation history (CISA KEV), immediately audit your Linux kernel versions and apply the latest vendor patches.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability is a race condition found in the pseudo-terminal (tty) subsystem of the Linux kernel, specifically within drivers/tty/n_tty.c. The root cause lies in the n_tty_write function, which fails to properly synchronize access to the tty driver buffer when the 'LECHO' flag is enabled and the 'OPOST' flag is disabled ('LECHO & !OPOST'). This lack of proper locking allows concurrent read and write operations to corrupt kernel memory.

2. Exploitation Mechanics & Attack Scenario

A local attacker with basic shell access can execute a multi-threaded exploit that performs rapid, concurrent write and read operations with long strings on a tty device. Due to the race condition, the kernel's buffer boundary checks are bypassed between the time-of-check and time-of-use (TOCTOU). This leads to an out-of-bounds write, corrupting the kernel slab allocator memory. By carefully structuring the corrupted memory, the attacker can hijack kernel control flow to execute arbitrary code with root privileges.

3. Infrastructure & Business Impact

As a vulnerability listed in the CISA KEV catalog, this flaw has been actively exploited in the wild. In multi-tenant environments, cloud infrastructures, or shared hosting servers, this vulnerability poses a severe threat as it allows any low-privileged user or compromised application container to escape boundaries and gain full administrative control over the host operating system.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2014-0196)

FAQ

Q1. How critical is CVE-2014-0196 and is it actively exploited in the wild?

CVE-2014-0196 is rated CVSS 5.5 (MEDIUM) with a 30-day EPSS exploitation probability of 20.3%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2014-0196?

Primary impacted vendors include linux across linux_kernel. Scope summary: Linux kernel versions up to and including 3.14.3 (Affects major distributions including RHEL, CentOS, Debian, Ubuntu, and SUSE)

Q3. What temporary mitigations or workarounds exist for CVE-2014-0196 before patching?

[Mitigation] Apply the latest kernel security updates provided by your OS vendor and reboot the system Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2014-0196

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (linux)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2014-0196 Linux Kernel n_tty_write Race Condition Local Privilege Escalation (CVE-2014-0196) (CVSS 5.5) - Patch & Workaround | CVE Pulse