Re: [PATCH net] 6lowpan: fix netdev_priv() type confusion in lowpan_event()

From: Stefan Schmidt

Date: Thu Nov 26 2026 - 04:12:08 EST


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