public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/net/wireless/libertas/rx.c: use-after-free
@ 2007-06-29 19:51 Adrian Bunk
  2007-06-30 20:02 ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2007-06-29 19:51 UTC (permalink / raw)
  To: linville, Holger Schurig; +Cc: linux-wireless, linux-kernel

The Coverity checker spotted the following use-after-free of "skb" in 
drivers/net/wireless/libertas/rx.c introduced by
commit 9012b28a407511fb355f6d2176a12d4653489672 (WTF did this commit
with the title "libertas: make debug configurable" add the 
"skb->protocol = __constant_htons(0x0019);" line?):

<--  snip  -->

...
static int process_rxed_802_11_packet(wlan_private * priv, struct sk_buff *skb)
{
...
        libertas_upload_rx_packet(priv, skb);

        ret = 0;

done:
        skb->protocol = __constant_htons(0x0019);       /* ETH_P_80211_RAW */
...

<--  snip  -->


cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-02  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-29 19:51 drivers/net/wireless/libertas/rx.c: use-after-free Adrian Bunk
2007-06-30 20:02 ` Dan Williams
2007-07-02  8:50   ` Holger Schurig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox