Skip to content

nfc: llcp: clone LSM attributes; st21nfca: fix skb leak

Suyuan Wang b4-sent lkml netdev oe-linux-nfc 1 version In review

Get series with b4
b4 am [email protected] change-id 20261112-nfc-402434cf5f79

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfc: llcp: Clone LSM attributes to newly created child socketsnet/nfc/llcp_core.c+3 -01 reply
2/2nfc: st21nfca: Free the ATR_REQ skb after sending itdrivers/nfc/st21nfca/dep.c+6 -31 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSimon Horman
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] nfc: llcp: clone LSM attributes; st21nfca: fix skb leak

Hi,

Two unrelated NFC fixes. Both came out of a static analysis run, and I checked them by hand on next-20261109.

The first one makes LLCP accepted sockets inherit the listener's LSM attributes. nfc_llcp_recv_connect() never calls security_sk_clone(), which bluetooth, iucv and vsock all had to add for the same reason.

The second one plugs an skb leak in st21nfca: the ATR_REQ skb is never freed after the HCI layer has copied it.

Both are compile tested only. I don't have ST21NFCA hardware, and I haven't set up SELinux with an LLCP peer to test the first one.

Thanks,
Suyuan

---
Suyuan Wang (2):
nfc: llcp: Clone LSM attributes to newly created child sockets
nfc: st21nfca: Free the ATR_REQ skb after sending it

 drivers/nfc/st21nfca/dep.c | 9 ++++++---
 net/nfc/llcp_core.c        | 3 +++
 2 files changed, 9 insertions(+), 3 deletions(-)

---
base-commit: 630059a5a632377b9b7b487baccde92b7ae1dd47
change-id: 20261112-nfc-402434cf5f79

Best regards,

Signature · 1 line
Suyuan Wang <[email protected]>