[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140929.164541.20059477388052953.davem@davemloft.net>
Date: Mon, 29 Sep 2014 16:45:41 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: sasha.levin@...cle.com
Cc: acme@...stprotocols.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: llc: check for device before dereferencing
From: Sasha Levin <sasha.levin@...cle.com>
Date: Fri, 26 Sep 2014 21:41:43 -0400
> llc_ui_sendmsg would not make sure that a device indeed exists before
> dereferencing it. This caused a user triggerable NULL ptr deref:
...
> Signed-off-by: Sasha Levin <sasha.levin@...cle.com>
The bug is real, but I don't think the fix is in the correct spot.
The real problem seems to be that the guard for calling
llc_ui_autobind() is inaccurate.
Fix that and there will always be a proper llc->dev attached at
this location.
--
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