BSD Securelevels settimeofday() security restriction bypass

bsd-securelevel-settimeofday-bypass (24036) The risk level is classified as LowLow Risk

Description:

The implementation of Securelevels in NetBSD and Linux kernel could allow a local attacker to bypass Securelevel restrictions, caused by an integer overflow vulnerability in the settimeofday() function. A local attacker could exploit this vulnerability to set the kernel time backwards, which could lead to system instability.

Platforms Affected:

  • Linux, Kernel 2.6.0 test9-cvs
  • Linux, Kernel 2.6.0 test9
  • Linux, Kernel 2.6.0 test8
  • Linux, Kernel 2.6.0 test7
  • Linux, Kernel 2.6.0 test6
  • Linux, Kernel 2.6.0 test5
  • Linux, Kernel 2.6.0 test4
  • Linux, Kernel 2.6.0 test3
  • Linux, Kernel 2.6.0 test2
  • Linux, Kernel 2.6.0 test11
  • Linux, Kernel 2.6.0 test10
  • Linux, Kernel 2.6.0 test1
  • Linux, Kernel 2.6.0
  • Linux, Kernel 2.6.1 rc2
  • Linux, Kernel 2.6.1 rc1
  • Linux, Kernel 2.6.1
  • Linux, Kernel 2.6.10 rc2
  • Linux, Kernel 2.6.10
  • Linux, Kernel 2.6.11 rc3
  • Linux, Kernel 2.6.11 rc4
  • Linux, Kernel 2.6.11 rc2
  • Linux, Kernel 2.6.11
  • Linux, Kernel 2.6.11.11
  • Linux, Kernel 2.6.11.12
  • Linux, Kernel 2.6.11.5
  • Linux, Kernel 2.6.11.6
  • Linux, Kernel 2.6.11.7
  • Linux, Kernel 2.6.11.8
  • Linux, Kernel 2.6.12 rc4
  • Linux, Kernel 2.6.12 rc5
  • Linux, Kernel 2.6.12 rc1
  • Linux, Kernel 2.6.12.1
  • Linux, Kernel 2.6.12.2
  • Linux, Kernel 2.6.12.3
  • Linux, Kernel 2.6.12.4
  • Linux, Kernel 2.6.12.5
  • Linux, Kernel 2.6.12.6
  • Linux, Kernel 2.6.13 rc7
  • Linux, Kernel 2.6.13 rc6
  • Linux, Kernel 2.6.13 rc4
  • Linux, Kernel 2.6.13 rc1
  • Linux, Kernel 2.6.13
  • Linux, Kernel 2.6.13.1
  • Linux, Kernel 2.6.13.2
  • Linux, Kernel 2.6.13.3
  • Linux, Kernel 2.6.13.4
  • Linux, Kernel 2.6.14 rc4
  • Linux, Kernel 2.6.14 rc3
  • Linux, Kernel 2.6.14 rc2
  • Linux, Kernel 2.6.14
  • Linux, Kernel 2.6.14 rc1
  • Linux, Kernel 2.6.14.1
  • Linux, Kernel 2.6.14.2
  • Linux, Kernel 2.6.14.3
  • Linux, Kernel 2.6.15 rc1
  • Linux, Kernel 2.6.15
  • Linux, Kernel 2.6.15 rc2
  • Linux, Kernel 2.6.15 rc3
  • Linux, Kernel 2.6.2
  • Linux, Kernel 2.6.3
  • Linux, Kernel 2.6.4
  • Linux, Kernel 2.6.5
  • Linux, Kernel 2.6.6
  • Linux, Kernel 2.6.6 rc1
  • Linux, Kernel 2.6.7
  • Linux, Kernel 2.6.7 rc1
  • Linux, Kernel 2.6.8 rc3
  • Linux, Kernel 2.6.8 rc2
  • Linux, Kernel 2.6.8 rc1
  • Linux, Kernel 2.6.8
  • Linux, Kernel 2.6.9
  • NetBSD, NetBSD 1.6
  • NetBSD, NetBSD 1.6 beta
  • NetBSD, NetBSD 1.6.1
  • NetBSD, NetBSD 1.6.2
  • NetBSD, NetBSD 2.0
  • NetBSD, NetBSD 2.0.1
  • NetBSD, NetBSD 2.0.2
  • NetBSD, NetBSD 2.0.3
  • NetBSD, NetBSD 2.1
  • NetBSD, NetBSD CURRENT

Remedy:

For NetBSD:
Refer to NetBSD Security Advisory 2006-002 for patch or upgrade information. See References.

Consequences:

Bypass Security

References:

  • Full-Disclosure Mailing List, Mon Jan 09 2006 - 06:30:11 CST, Time modification flaw in BSD securelevels on NetBSD and Linux at http://archives.neohapsis.com/archives/fulldisclosure/2006-01/0285.html.
  • NetBSD Security Advisory 2006-002, settimeofday() time wrap at http://archives.neohapsis.com/archives/bugtraq/2006-01/0117.html.
  • BID-16170: BSD SecureLevel Time Setting Security Restriction Bypass Vulnerability
  • CVE-2005-4352: The securelevels implementation in NetBSD 2.1 and earlier, and Linux 2.6.15 and earlier, allows local users to bypass time setting restrictions and set the clock backwards by setting the clock ahead to the maximum unixtime value (19 Jan 2038), which then wraps around to the minimum value (13 Dec 1901), which can then be set ahead to the desired time, aka settimeofday() time wrap.
  • SECTRACK ID: 1015454: NetBSD settimeofday() Lets Certain Local Users Set the Time Backwards

Reported:

Jan 09, 2006

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page