lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <a63d67fe0809220232w1679f074i33629bf37a47f579@mail.gmail.com>
Date:	Mon, 22 Sep 2008 12:32:49 +0300
From:	"Dan Carpenter" <error27@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: [patch] possible NULL deref in alloc_posix_timer()

Found by static checker (http://repo.or.cz/w/smatch.git).
Compile tested.

Signed-off-by: Dan Carpenter <error27@...il.com>

--- kernel/posix-timers.c.orig  2008-08-29 01:52:02.000000000 +0300
+++ kernel/posix-timers.c       2008-09-20 21:54:19.000000000 +0300
@@ -441,7 +441,7 @@
                return tmr;
        if (unlikely(!(tmr->sigq = sigqueue_alloc()))) {
                kmem_cache_free(posix_timers_cache, tmr);
-               tmr = NULL;
+               return NULL;
        }
        memset(&tmr->sigq->info, 0, sizeof(siginfo_t));
        return tmr;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ