Race condition in Linux kernel - CVE-2014-0196

 

Race condition in Linux kernel - CVE-2014-0196

Published: May 7, 2014 / Updated: May 12, 2023


Vulnerability identifier: #VU41718
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2014-0196
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

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.


Affected software

Linux kernel
Amazon Linux AMI
Ubuntu
SUSE Linux
linux (Ubuntu package)
linux-image-2.6.32-363-ec2 (Ubuntu package)
linux-lts-quantal (Ubuntu package)
linux-lts-raring (Ubuntu package)
linux-lts-saucy (Ubuntu package)
linux-lts-trusty (Ubuntu package)

How to mitigate CVE-2014-0196

Install update from vendor's website.

linux (Ubuntu package) - addressed in versions 2.6.32-58.121, 3.2.0-61.93, 3.5.0-49.74, 3.11.0-20.35, 3.13.0-24.47
linux-image-2.6.32-363-ec2 (Ubuntu package) - update to 2.6.32-363.77
linux-lts-quantal (Ubuntu package) - update to 3.5.0-49.74~precise1
linux-lts-raring (Ubuntu package) - update to 3.8.0-39.58~precise1
linux-lts-saucy (Ubuntu package) - update to 3.11.0-20.35~precise1
linux-lts-trusty (Ubuntu package) - update to 3.13.0-30.54~precise2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins