diff --git a/security/seclvl.c b/security/seclvl.c index c26dd7de0471..d5371b8dae01 100644 --- a/security/seclvl.c +++ b/security/seclvl.c @@ -370,6 +370,8 @@ static int seclvl_settime(struct timespec *tv, struct timezone *tz) current->group_leader->pid); return -EPERM; } /* if attempt to decrement time */ + if (tv->tv_sec > 1924988400) /* disallow dates after 2030) */ + return -EPERM; /* CVE-2005-4352 */ } /* if seclvl > 1 */ return 0; }