Linux Kernel pty layer race condition memory corruption

2014-05-06 / 2014-05-26
Credit: Marcus
Risk: Medium
Local: Yes
Remote: No
CWE: N/A


CVSS Base Score: 6.9/10
Impact Subscore: 10/10
Exploitability Subscore: 3.4/10
Exploit range: Local
Attack complexity: Medium
Authentication: No required
Confidentiality impact: Complete
Integrity impact: Complete
Availability impact: Complete

Hi, SUSE customer Ericsson reported a kernel crash to us which turned out to be a race condition in the PTY write buffer handling. When two processes/threads write to the same pty, the buffer end could be overwritten and so memory corruption into adjacent buffers could lead to crashes / code execution. Jiri Slaby and Peter Hurley localized and fixed this problem. CVE-2014-0196 has been assigned to this issue. Jiri thinks this was introduced during 2.6.31 development by d945cb9cce20ac7143c2de8d88b187f62db99bdc (pty: Rework the pty layer to use the normal buffering logic) in 2.6.31-rc3. Until then, pty was writing directly to a line discipline without using buffers. https://bugzilla.novell.com/show_bug.cgi?id=875690 Patch is also attached. Ciao, Marcus

References:

https://bugzilla.novell.com/show_bug.cgi?id=875690


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top