Secunia Logo
Netsikker nu! 2008
 
Linux Kernel Console Keyboard Mapping Shell Command Injection
Secunia Advisory: SA17226
Release Date: 2005-10-17
Last Update: 2005-11-10
Popularity: 14,330 views

Critical:
Less critical
Impact: Privilege escalation
Where: Local system
Solution Status: Vendor Patch

OS:Linux Kernel 2.4.x
Linux Kernel 2.6.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-3257


Description:
Rudolf Polzer has reported a vulnerability in the Linux Kernel, which potentially can be exploited by malicious, local users to gain escalated privileges.

The vulnerability is caused due to the way console keyboard mapping is handled. The keyboard map installed by a local user using "loadkeys" is applied to all virtual consoles and is not being reset after the user logs out.

Successful exploitation allows malicious console users to inject arbitrary shell commands into certain key mappings, which are executed when the next logon console user uses the re-mapped key.

The vulnerability has been reported in Kernel 2.4.x and 2.6.x. Other versions may also be affected.

Solution:
The vulnerability has been fixed in version 2.4.32-rc2 and in version 2.6.14-git12.

Provided and/or discovered by:
Rudolf Polzer

Changelog:
2005-11-09: Updated "Solution Status" and "Solution" sections. Added CVE reference.
2005-11-10: Added kernel 2.4.x as vulnerable. Updated "Description", "Solution" and "Original Advisory" sections.

Original Advisory:
Debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=334113

Kernel.org:
http://kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.14-git12.log
http://kernel.org/git/?p=linux/kernel...60adbdb54d5b98b78d57ba0916bc4b8871968
http://kernel.org/pub/linux/kernel/v2.4/testing/patch-2.4.32.log
http://kernel.org/git/?p=linux/kernel...b6d8ea04e81a1547e8e51b7550a8fd69b9fce


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. phpBB Avatar Script Insertion Vulnerability // 65 views
2. phpBB Multiple Vulnerabilities // 50 views
3. Microsoft Windows Vista Page Fault Handling Denial of Service // 47 views
4. VMware ESX Server Sun Java JDK / JRE Multiple Vulnerabilities // 45 views
5. VMware VirtualCenter Multiple Vulnerabilities // 39 views
6. VMware ESX / ESXi "JMP" Privilege Escalation Vulnerability // 38 views
7. phpBB Avatar Functions Information Disclosure and Deletion // 35 views
8. Subdreamer Light Global Variables SQL Injection Vulnerability // 33 views
9. Nucleus EUC-JP Cross-Site Scripting Vulnerability // 33 views
10. JMweb MP3 Script "src" File Inclusion Vulnerabilities // 31 views