Skip to content

ax25: fix NPD and UAF bugs when detaching ax25 device

Duoming Zhou linux-hams lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2ax25: improve the incomplete fix to avoid UAF and NPD bugsnet/ax25/af_ax25.c+6 -30 repliesApplied
2/2ax25: add refcount in ax25_dev to avoid UAF bugsinclude/net/ax25.h net/ax25/af_ax25.c net/ax25/ax25_dev.c +1 more+25 -24 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ax25: fix NPD and UAF bugs when detaching ax25 device

There are NPD and UAF bugs when detaching ax25 device, we use lock and refcount to mitigate these bugs.

Duoming Zhou (2):
ax25: improve the incomplete fix to avoid UAF and NPD bugs
ax25: add refcount in ax25_dev to avoid UAF bugs

 include/net/ax25.h    | 10 ++++++++++
 net/ax25/af_ax25.c    | 11 ++++++++---
 net/ax25/ax25_dev.c   | 12 ++++++++++--
 net/ax25/ax25_route.c |  3 +++
 4 files changed, 31 insertions(+), 5 deletions(-)
Signature · 1 line
2.17.1