Re: [PATCH] nfc: llcp: validate PDU size in nfc_llcp_recv_dm() and nfc_llcp_recv_hdlc()

From: Aamir Ahmed

Date: Tue Sep 15 2026 - 16:07:16 EST


This version is superseded by v2:

https://lore.kernel.org/netdev/AS8P251MB0001789BBF04B72745C7D96BC8BA2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/

v2 narrows the fix to nfc_llcp_recv_hdlc() and drops the
nfc_llcp_recv_dm() hunk, which duplicates Lekë Hapçiu's pending patch:

https://lore.kernel.org/netdev/20260729011547.19191-2-snowwlake@xxxxxxxxxx/

It also addresses the Sashiko review: it no longer replies with
DM(NOCONN) on a truncated frame, which could close the peer's side of
an established connection, and it uses pskb_may_pull() so the check
also covers non-linear skbs.

Please disregard this version.

Kind Regards
Aamir A.