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
| ||
|
Date: Thu, 3 Feb 2011 21:27:56 +0100 (CET) From: Jesper Juhl <jj@...osbits.net> To: linux-kernel@...r.kernel.org cc: netdev@...r.kernel.org, Tejun Heo <tj@...nel.org>, Karsten Keil <isdn@...ux-pingi.de> Subject: potential null pointer dereference in drivers/isdn/hisax/isdnl2.c Hi, In drivers/isdn/hisax/isdnl2.c:l2_pull_iqueue() we have this: ... skb = alloc_skb(oskb->len + i, GFP_ATOMIC); memcpy(skb_put(skb, i), header, i); ... If alloc_skb() fails and returns NULL then the second line will cause a NULL pointer dereference - skb_put() gives the pointer to skb_tail_pointer() which dereferences it. I'm not quite sure how this should be dealt with, so I'll just report it rather than submit a patch. Happy bug fixing :-) -- Jesper Juhl <jj@...osbits.net> http://www.chaosbits.net/ Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists