Race Condition in n_tty_write (Linux Kernel <=3.14.3)
A race condition exists in the n_tty_write function in drivers/tty/n_tty.c in the Linux kernel through version 3.14.3. The vulnerability is triggered in the 'LECHO & !OPOST' case, where the tty driver does not properly synchronize access, allowing local users to exploit concurrent read and write operations with long strings. This can result in memory corruption and potentially a system crash or privilege escalation.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Local attackers can exploit this race condition to cause a denial of service (system crash) or potentially escalate privileges by corrupting kernel memory. The vulnerability is significant as it allows unprivileged local users to compromise system integrity.
If you can’t patch tonight, do this now.
Restrict local shell access to trusted users only. Consider applying kernel hardening patches or using security modules (e.g., SELinux, AppArmor) to limit the impact of local privilege escalation until the kernel can be updated.
Patch, then assume compromise.
Upgrade the Linux kernel to a version later than 3.14.3 where the race condition in n_tty_write has been patched. Apply vendor-supplied security updates as soon as possible.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.