Re: [PATCH net 1/4] nfc: digital: Fix stack buffer overflow in digital_in_recv_sensf_res()

From
Jakub Kicinski <kuba@kernel.org>
Date
2026-04-12 20:58:28
Also in
linux-wireless, stable
Reply to
Lekë Hapçiu, 2026-04-09
On Fri, 10 Apr 2026 00:34:31 +0200 Lekë Hapçiu wrote:
The function digital_in_recv_sensf_res() validates that the incoming
SENSF_RES frame is at least DIGITAL_SENSF_RES_MIN_LENGTH (17) bytes,
but does not check that it is at most NFC_SENSF_RES_MAXSIZE (18) bytes
before copying into the 18-byte target.sensf_res stack buffer.
Hm, third similar fix we received for this.
struct digital_sensf_res is 19 bytes, you're capping the length at 18
something else is wrong here..
Thread (6 messages) 6 messages, 2 authors, last reply 2026-04-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help