Article View: linux.kernel.netdev
Article #22989Re: [PATCH net] 6lowpan: fix netdev_priv() type confusion in lowpan_event()
From: Stefan Schmidt
Date: Thu, 26 Nov 2026 09:11
Date: Thu, 26 Nov 2026 09:11
23 lines
8156 bytes
8156 bytes
Hello Roman Gushchin.
On Fri, 06 Nov 2026 22:59:30 +0000, Roman Gushchin wrote:
> lowpan_event() assumes any netdevice with dev->type == ARPHRD_6LOWPAN
> has a struct lowpan_dev in netdev_priv(dev). However, non-6LoWPAN
> devices can also have ARPHRD_6LOWPAN, e.g. a TUN device via TUNSETLINK
> or a bonding device inheriting dev->type from its lower device.
>
> Bringing such a device up or down causes lowpan_event() to read and
> overwrite unrelated netdev_priv() memory. Since unprivileged users can
> create TUN and bonding devices in a user and network namespace, they
> can corrupt struct bonding and trigger a slab use-after-free.
>
> [...]
Applied to wpan/wpan.git, thanks!
[1/1] 6lowpan: fix netdev_priv() type confusion in lowpan_event()
https://git.kernel.org/wpan/wpan/c/092207b6f1b6
regards,
Stefan Schmidt
Technical Details
Message-ID:
<179568430273.1923641.1345266046368621519.b4-ty@datenfreihafen.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371985-linux-kernel-netdev=dewy.ruReferences:
<20261106225930.1379968-1-roman.gushchin@linux.dev>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371985-linux-kernel-netdev=dewy.ru From: stefan@datenfreihafen.org (Stefan Schmidt) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] 6lowpan: fix netdev_priv() type confusion in lowpan_event() Date: Thu, 26 Nov 2026 10:11:50 +0100 Organization: Usenet Network Message-ID: <179568430273.1923641.1345266046368621519.b4-ty@datenfreihafen.org> References: <20261106225930.1379968-1-roman.gushchin@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="424136"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:nPzsOrYCpvsqN97m4IorsQWHgMg= sha256:ithmqVurmI8S6psnCoSDNBbz+KnXRaNHt5rylr1pl8g= sha1:0PzEcRnO+ELJINkCC8XRFemJXlc= sha256:IDxp6X8uZUHnGrSSYzUrfOnS4f7x+52eO6vIYTdchRg= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id D74BB125EBB; Thu, 26 Nov 2026 12:12:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.851 X-Spam-Status: No, score=-1.851 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PoddPUNgtFCQ; Thu, 26 Nov 2026 12:12:09 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-371985-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=datenfreihafen.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id C7034125EBA; Thu, 26 Nov 2026 12:12:04 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 9D73330BB9; Thu, 26 Nov 2026 09:12:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795684321; b=hspxE/pW3mrcMAOyPCIpcmwS5CrgBTHaf7rLVpS2X/PtCgXsRbRWJC2lfd9hMTnuvbbF 5ITVALK858LeaDoGeqKUgCpga/ur3s/yzdjhU4tRM8of/nrYLQNC88A+iPHJujbrNhIqf 8nA8jhv2PdN66hc6M4/HwWejIBE/OMITr0aGWR5EtsYmUF+Yh+hUtfyZYIdXGqeG2LBPw N5Gl8tef+AIvHSnz2luUUXO0JSWt0TABc5v9RPg/UWO5S7lGCMbjT7QyT0UGboxnN2XhK Er5WrM8xVKLAIPX1T9VPLVAXQQPBT6keAAk/4sSeAIAu1BKoRNLxqA+xXfDlpX/n+Qg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795684321; h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=xlPXbBzk6OAyHCSpIb7JT+SULbnTMe1cN5htl76U4AY=; b=ipUIBJ6hBmTlic/eyAKEcECGV/jv0+T80y8vJsu81BXG6yBq557bNY6e7NcHfHdsQBAn KwnVGbQ8sjNH6HSGjInLzMiIHtglHC5SsnVvYa93lo+MAhoLUJ3c919ba8EudHZBFSAac 5GJiBuMzJdB9yXW4OdHF/NoT+KjnQSylyuWwzfTChdHZbf7NFz9AHUOP/IY8kJE4l3rd+ SmzQGIXF1btoxSuctjJ0T0cqxYyti0vg2qlCD0170blf29pKCZ+NPVVorukS+2hQGKN/3 UHfsrMci50IOIgq/lWjbD9dSKlNL/TzO/DycMTl4js7WCapBmW8V7alsSCVnRsWSIIQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=datenfreihafen.org; spf=pass smtp.mailfrom=datenfreihafen.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BD9F606A331; Thu, 26 Nov 2026 09:12:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=78.47.171.185 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795684320; b=wOfx1HN1CbVgdSTlm8lAe2BhV2WKlh8UQs3Wu7Mj4sW1BZgXTmd3Uqgoo+O2OMGPr4iA FNl1cjO/+MHFiroe76XheA0bnnZJAjtbdGY24whfb7R2ElZ2Y7F+77crgPQpLNnDgN+Ni KBlAWhQbdguLh/nTBz+mlwmkf+5q32UHVzuyP2qwlXzMp3zTKIJ7VUJtRPZPW23ZB4m2x BECzWalBSyY53f/qLQGIKYIVbp3OpEgWVWiwXUQG17BqSTDCbNMCDJeWKYjT4a4nneLIb MLsBmOgkBEHqkKNbxnRVfUfYBKZVyTY3cer0gFM4E4+6mHcqsXO4hcyI+HK7dJ2TExA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795684320; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=xlPXbBzk6OAyHCSpIb7JT+SULbnTMe1cN5htl76U4AY=; b=ze+JEKZmYyZ7LzM/uRpGi3L6nTl4tgad9lAKnvGfbsbJjlCJ1Fzxhsv76TQKad+JiYYN vMqBESLSbAp9QLAsdsAVfQ2D/fDD/F5PLcoNrIIB9Vo2qqVFIRoTxMtGesoDtuehbDMvQ 8HUmh02cWb5h0Ce8ryVlBxMpBgvGxjKgsrMYyYv3CIT55w02ZIAxHjLFaS96u6WSU6mrZ qB25IHjqww6ipsDtcXISqRFZdxzHrquDaRtu7NgfRug6IaXCbANEsvqIFXDZN5js0X788 HllURwppYCgZ2DWuaDAOCpuMawcvkYETCsT8dMYZWgw2H5CfDpRbPeIWp8OVZF2tCFQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=datenfreihafen.org; spf=pass smtp.mailfrom=datenfreihafen.org; arc=none smtp.remote-ip=78.47.171.185 X-Received: from proxima.lasnet.de (proxima.lasnet.de [78.47.171.185]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39677606A321; Thu, 26 Nov 2026 09:11:59 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 39677606A321 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=datenfreihafen.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=datenfreihafen.org X-Received: from work.datenfreihafen.local (unknown [46.253.254.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: stefan@sostec.de) by proxima.lasnet.de (Postfix) with ESMTPSA id 9350CC0270; Thu, 26 Nov 2026 10:11:56 +0100 (CET) X-Cc: Stefan Schmidt <stefan@datenfreihafen.org>, horms@kernel.org, netdev@vger.kernel.org, linux-wpan@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: git-send-email 2.56.1 X-In-Reply-To: <20261106225930.1379968-1-roman.gushchin@linux.dev> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list