Security Advisory

CVE-2014-0196: Linux n_tty_write PTY Race Local Root

Last updated:
  • CVE-2014-0196

CVE-2014-0196 is a race condition in the Linux pseudo-terminal (pty) layer: when two writers hit the same pty in raw echo mode, n_tty_write() can overflow a tty buffer, crashing the kernel or giving a local user root. NVD scores it CVSS v2 6.9, CISA lists it as exploited, and Linux 3.14.4 and its stable siblings fix it.

Vulnerability summary

CVSS base score

6.9

Medium severity

EPSS score (FIRST)

20.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2014-0196 · Source: NVD

Affected components

ComponentCPEVersion range
Linux kernel (pty / N_TTY line discipline, drivers/tty/n_tty.c)cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*2.6.31 to before 3.2.59, 3.3 to before 3.4.91, 3.5 to before 3.10.40, 3.11 to before 3.12.20, 3.13 to before 3.14.4 (NVD); upstream fix 4291086b1f08. CISA KEV: end of life, disconnect if still in use
Debian linux and linux-2.6 packagespkg:deb/debian/linuxFixed in 3.2.57-3+deb7u1 for wheezy (DSA-2926-1), 2.6.32-48squeeze6 for squeeze (DSA-2928-1) and 3.14.4-1 in unstable (Debian security tracker, as of 2026-11-25)

What does this mean for affected devices?

NVD describes CVE-2014-0196: "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." Red Hat is the CNA. NVD's only Primary metric is CVSS v2 6.9 (AV:L/AC:M/Au:N/C:C/I:C/A:C); NVD has no Primary CVSS v3 score. The CISA ADP container scores CVSS v3.1 5.5 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), counting only the crash, although NVD's description and CISA's own KEV entry both include privilege gain; CVSS v4 vs v3.1 explains why scores from different scorers and versions diverge. NVD and CISA ADP classify it as CWE-362, race condition (NVD, CVE record).

Where does the bug come from?

SUSE's Marcus Meissner announced the CVE on oss-security on 2014-05-05: a SUSE customer, Ericsson, reported a kernel crash that turned out to be a race in the PTY write buffer handling, where "the buffer end could be overwritten" when two processes write to the same pty. Jiri Slaby traced it to a pty rework in 2.6.31-rc3. Peter Hurley's commit 4291086b1f08, "n_tty: Fix n_tty_write crash when echoing in raw mode", takes the N_TTY output_lock so echo output and normal tty writes are serialised; it is listed in the Linux 3.14.4 changelog.

Which kernels and devices are affected?

NVD's ranges for linux:linux_kernel start after 2.6.31 and end before 3.2.59, 3.4.91, 3.10.40, 3.12.20 and 3.14.4, plus the 2.6.31 release candidates. Debian's security tracker lists the fix in 3.2.57-3+deb7u1 for wheezy (DSA-2926-1) and 2.6.32-48squeeze6 for squeeze (DSA-2928-1). Ptys are in nearly every Linux build, since SSH and serial console sessions use them, so embedded Linux devices on a kernel in these ranges are affected wherever a local user or process can run; no device maker is named in the CVE record. Move to a fixed stable kernel or confirm the backport, and treat devices whose vendor no longer ships kernels as end of life. Linux kernel CVEs on embedded devices covers that triage. Other exploited local-root bugs from the same kernel era: CVE-2014-3153 in futex and CVE-2013-2094 in perf.

Is CVE-2014-0196 exploited?

Yes. CISA added it to the KEV catalog on 2023-05-12 as "Linux Kernel Race Condition Vulnerability", with a due date of 2023-06-02 and the required action "The impacted product is end-of-life and should be disconnected if still in use." Known ransomware campaign use is listed as Unknown. It is still listed as of 2026-11-25 in catalog version 2026.11.24 (CISA KEV). FIRST EPSS gives 0.20486, the 97.55th percentile, in the 2026-11-24 dataset (FIRST EPSS).

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD (read 2026-11-25): status Analyzed, published 2014-05-07, CNA Red Hat; n_tty_write through 3.14.3, LECHO & !OPOST race, DoS or privilege gain; NVD Primary CVSS v2 6.9 AV:L/AC:M/Au:N/C:C/I:C/A:C only; CISA ADP (Secondary) CVSS v3.1 5.5 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H; CWE-362; CPE 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. — NVD
  • CVE record: PUBLISHED, CNA redhat, published 2014-05-07; CISA ADP CVSS v3.1 5.5. — CVE.org
  • oss-security 2014-05-05 (Marcus Meissner, SUSE): SUSE customer Ericsson reported a crash; race in PTY write buffer handling; introduced in 2.6.31-rc3 by d945cb9cce20; fixed by Jiri Slaby and Peter Hurley. — oss-security (Openwall)
  • Commit 4291086b1f08 (Peter Hurley, 2014-05-03) "n_tty: Fix n_tty_write crash when echoing in raw mode": obtain the N_TTY ldisc output_lock to serialise echo output with tty writes. — Linux kernel (GitHub mirror)
  • Linux 3.14.4 ChangeLog includes "n_tty: Fix n_tty_write crash when echoing in raw mode". — kernel.org ChangeLog
  • Debian tracker: linux wheezy 3.2.57-3+deb7u1 (DSA-2926-1), unstable 3.14.4-1; linux-2.6 squeeze 2.6.32-48squeeze6 (DSA-2928-1). — Debian security tracker
  • KEV catalog 2026.11.24: dateAdded 2023-05-12, due 2023-06-02, required action "The impacted product is end-of-life and should be disconnected if still in use.", knownRansomwareCampaignUse Unknown, CWE-362. — CISA KEV
  • EPSS 0.20486, percentile 0.97553, dataset 2026-11-24. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Linux commit 4291086b1f08: n_tty: Fix n_tty_write crash when echoing in raw mode
  3. Linux 3.14.4 ChangeLog
  4. oss-security: CVE-2014-0196 Linux kernel pty layer race condition memory corruption
  5. Debian security tracker CVE-2014-0196
  6. CVE.org record CVE-2014-0196 (CNA: Red Hat)
  7. CISA KEV
  8. FIRST EPSS

Frequently asked questions

What CVSS score does CVE-2014-0196 have?

NVD's only Primary metric is CVSS v2 6.9; NVD publishes no Primary CVSS v3 score. The CISA ADP container in the CVE record scores CVSS v3.1 5.5, counting availability impact only (per NVD and the CVE record).

Which Linux kernel versions fix CVE-2014-0196?

Linux 3.2.59, 3.4.91, 3.10.40, 3.12.20 and 3.14.4 and later carry the fix, upstream commit 4291086b1f08. Debian fixed wheezy in 3.2.57-3+deb7u1 and squeeze in 2.6.32-48squeeze6 (per NVD, kernel.org and the Debian security tracker).

Why does CISA say to disconnect affected systems?

The KEV entry's required action reads "The impacted product is end-of-life and should be disconnected if still in use." For a device whose maker no longer ships kernel updates, retiring it is the remaining fix (per CISA KEV).

Is CVE-2014-0196 exploited in the wild?

Yes. CISA added it to KEV on 2023-05-12 and lists it as of 2026-11-25 in catalog version 2026.11.24, with ransomware use Unknown. FIRST EPSS gives 0.20486, the 97.55th percentile, in the 2026-11-24 dataset (per CISA KEV and FIRST EPSS).