]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: nfc: nci: Fix parameter validation for packet data
authorMichael Thalmeier <michael.thalmeier@hale.at>
Wed, 18 Feb 2026 08:30:00 +0000 (09:30 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Feb 2026 17:32:51 +0000 (09:32 -0800)
commit571dcbeb8e635182bb825ae758399831805693c2
tree36f9bbf30544f2d9af0b64498f41024687445ee2
parent7997bca6c2b00310161fbcd628dc0161fd3b040c
net: nfc: nci: Fix parameter validation for packet data

Since commit 9c328f54741b ("net: nfc: nci: Add parameter validation for
packet data") communication with nci nfc chips is not working any more.

The mentioned commit tries to fix access of uninitialized data, but
failed to understand that in some cases the data packet is of variable
length and can therefore not be compared to the maximum packet length
given by the sizeof(struct).

Fixes: 9c328f54741b ("net: nfc: nci: Add parameter validation for packet data")
Cc: stable@vger.kernel.org
Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
Reported-by: syzbot+740e04c2a93467a0f8c8@syzkaller.appspotmail.com
Link: https://patch.msgid.link/20260218083000.301354-1-michael.thalmeier@hale.at
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/nfc/nci/ntf.c