android_kernel_motorola_sm6375/net/ax25
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Dumazet 42b46684e2 ax25: properly unshare skbs in ax25_kiss_rcv()
[ Upstream commit 8156210d36a43e76372312c87eb5ea3dbb405a85 ]

Bernard Pidoux reported a regression apparently caused by commit
c353e8983e0d ("net: introduce per netns packet chains").

skb->dev becomes NULL and we crash in __netif_receive_skb_core().

Before above commit, different kind of bugs or corruptions could happen
without a major crash.

But the root cause is that ax25_kiss_rcv() can queue/mangle input skb
without checking if this skb is shared or not.

Many thanks to Bernard Pidoux for his help, diagnosis and tests.

We had a similar issue years ago fixed with commit 7aaed57c5c
("phonet: properly unshare skbs in phonet_rcv()").

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Reported-by: Bernard Pidoux <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]/
Tested-by: Bernard Pidoux <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Joerg Reuter <[email protected]>
Cc: David Ranch <[email protected]>
Cc: Folkert van Heusden <[email protected]>
Reviewed-by: Dan Cross <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2025-09-09 18:43:58 +02:00
..
af_ax25.c ax25: Fix UAF bugs in ax25 timers 2022-04-20 09:19:40 +02:00
ax25_addr.c
ax25_dev.c ax25: fix reference count leaks of ax25_dev 2022-04-20 09:19:39 +02:00
ax25_ds_in.c
ax25_ds_subr.c
ax25_ds_timer.c
ax25_iface.c
ax25_in.c ax25: properly unshare skbs in ax25_kiss_rcv() 2025-09-09 18:43:58 +02:00
ax25_ip.c
ax25_out.c
ax25_route.c ax25: fix reference count leaks of ax25_dev 2022-04-20 09:19:39 +02:00
ax25_std_in.c
ax25_std_subr.c
ax25_std_timer.c
ax25_subr.c ax25: Fix NULL pointer dereferences in ax25 timers 2022-04-20 09:19:40 +02:00
ax25_timer.c
ax25_uid.c
Kconfig
Makefile
sysctl_net_ax25.c
TODO