CVE Vulnerabilities

CVE-2011-0460

Improper Link Resolution Before File Access ('Link Following')

Published: Apr 16, 2014 | Modified: Apr 12, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
6.3 MEDIUM
AV:L/AC:M/Au:N/C:N/I:C/A:C
RedHat/V2
6.3 MODERATE
AV:L/AC:M/Au:N/C:N/I:C/A:C
RedHat/V3
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

The init script in kbd, possibly 1.14.1 and earlier, allows local users to overwrite arbitrary files via a symlink attack on /dev/shm/defkeymap.map.

Weakness

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Affected Software

NameVendorStart VersionEnd Version
KbdKbd-project*1.14.1 (including)
KbdKbd-project0.99 (including)0.99 (including)
KbdKbd-project1.01 (including)1.01 (including)
KbdKbd-project1.03 (including)1.03 (including)
KbdKbd-project1.04 (including)1.04 (including)
KbdKbd-project1.05 (including)1.05 (including)
KbdKbd-project1.06 (including)1.06 (including)
KbdKbd-project1.08 (including)1.08 (including)
KbdKbd-project1.10 (including)1.10 (including)
KbdKbd-project1.11 (including)1.11 (including)
KbdKbd-project1.12 (including)1.12 (including)
KbdKbd-project1.13 (including)1.13 (including)
KbdKbd-project1.14 (including)1.14 (including)
OpensuseOpensuse11.2 (including)11.2 (including)
OpensuseOpensuse11.3 (including)11.3 (including)
KbdUbuntuhardy*

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References