CVE-2026-23330: nfc: nci: complete pending data exchange on device close
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nfc: nci: complete pending data exchange on device close
In nci_close_device(), complete any pending data exchange before closing. The data exchange callback (e.g. rawsock_data_exchange_complete) holds a socket reference.
NIPA occasionally hits this leak:
unreferenced object 0xff1100000f435000 (size 2048):
comm "nci_dev", pid 3954, jiffies 4295441245 hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
27 00 01 40 00 00 00 00 00 00 00 00 00 00 00 00 '..@............
backtrace (crc ec2b3c5):
__kmalloc_noprof+0x4db/0x730
sk_prot_alloc.isra.0+0xe4/0x1d0
sk_alloc+0x36/0x760
rawsock_create+0xd1/0x540
nfc_sock_create+0x11f/0x280
__sock_create+0x22d/0x630
__sys_socket+0x115/0x1d0
__x64_sys_socket+0x72/0xd0
do_syscall_64+0x117/0xfc0
entry_SYSCALL_64_after_hwframe+0x4b/0x53The Linux kernel CVE team has assigned CVE-2026-23330 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.2 with commit 38f04c6b1b682f1879441e2925403ad9aff9e229 and fixed in 6.18.17 with commit 91ff0d8c3464da7f0c43da38c195e60b660128bf Issue introduced in 3.2 with commit 38f04c6b1b682f1879441e2925403ad9aff9e229 and fixed in 6.19.7 with commit d05f55d68ebdebb2b0a8480d766eaae88c8c92de Issue introduced in 3.2 with commit 38f04c6b1b682f1879441e2925403ad9aff9e229 and fixed in 7.0-rc3 with commit 66083581945bd5b8e99fe49b5aeb83d03f62d053
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23330
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/nfc/nci/core.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/91ff0d8c3464da7f0c43da38c195e60b660128bf https://git.kernel.org/stable/c/d05f55d68ebdebb2b0a8480d766eaae88c8c92de https://git.kernel.org/stable/c/66083581945bd5b8e99fe49b5aeb83d03f62d053