]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] security/seclvl.c: fix time wrap (CVE-2005-4352)
authorAdrian Bunk <bunk@stusta.de>
Wed, 15 Nov 2006 16:01:46 +0000 (17:01 +0100)
committerChris Wright <chrisw@sous-sol.org>
Sun, 19 Nov 2006 03:28:04 +0000 (19:28 -0800)
commitc721af6db5992d16fbd93855666eafa616512e00
treea8fd62151853df32d0ed03e4f46c269b75d6eef4
parent9a74fa0d377c3c1e633491b5500296174f4c41df
[PATCH] security/seclvl.c: fix time wrap (CVE-2005-4352)

initlvl=2 in seclvl gives the guarantee
"Cannot decrement the system time".

But it was possible to set the time to the maximum unixtime value
(19 Jan 2038) resulting in a wrap to the minimum value.

This patch fixes this by disallowing setting the time to any date
after 2030 with initlvl=2.

This patch does not apply to kernel 2.6.19 since the seclvl module was
already removed in this kernel.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
security/seclvl.c