Skip to contentSkip to conversation

CVE-2026-90222: nfc: pn533: hold a reference to the request skb during send_frame

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

nfc: pn533: hold a reference to the request skb during send_frame

__pn533_send_async() publishes the command and then calls dev->phy_ops->send_frame(). Once dev->cmd is set, an incoming frame can be matched to this command: the I2C threaded IRQ runs pn533_recv_frame(), which queues cmd_complete_work, and pn533_send_async_complete() frees cmd->req with consume_skb().

On the I2C transport, pn533_i2c_send_frame() still dereferences the same skb after i2c_master_send() returns, so a completion that races the send can free the skb while the transport is still using it.

The request skb is owned by the command object and may be freed by command completion at any time after dev->cmd is published, so the transport send path must not assume it stays alive. Hold a temporary reference to the request skb across the send_frame() call so the transport always sees a live skb even if completion races the send. Add a pn533_send_cmd_frame() helper and use it from all three send paths.

The Linux kernel CVE team has assigned CVE-2026-90222 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.7 with commit 9815c7cf22daceabfb919ddcd6f2c80e049c1fbc and fixed in 5.10.270 with commit 8710faddef4ad8b2a6bfa985d896e2e1bfb77018
	Issue introduced in 4.7 with commit 9815c7cf22daceabfb919ddcd6f2c80e049c1fbc and fixed in 5.15.221 with commit 19f1239758c23f087f4c25733cfcf62bf0b06051
	Issue introduced in 4.7 with commit 9815c7cf22daceabfb919ddcd6f2c80e049c1fbc and fixed in 6.1.188 with commit 7ee72c64b4b66b1b42dbddbca0a80a218f1b9297
	Issue introduced in 4.7 with commit 9815c7cf22daceabfb919ddcd6f2c80e049c1fbc and fixed in 6.6.157 with commit 753bdaf3220fe8371a6c3c75da645ea7753d11be
	Issue introduced in 4.7 with commit 9815c7cf22daceabfb919ddcd6f2c80e049c1fbc and fixed in 6.12.110 with commit d329f61ad5786900334a54c2445dc99feda545bf
	Issue introduced in 4.7 with commit 9815c7cf22daceabfb919ddcd6f2c80e049c1fbc and fixed in 6.18.52 with commit 7a8e0a7aef80721da287ac246349aba7d98f6aed
	Issue introduced in 4.7 with commit 9815c7cf22daceabfb919ddcd6f2c80e049c1fbc and fixed in 7.2.6 with commit 3e7a093c177f9f8b9fd039cab41191515079425a
	Issue introduced in 4.7 with commit 9815c7cf22daceabfb919ddcd6f2c80e049c1fbc and fixed in 7.3-rc1 with commit 47792358a624ea066455ef86b744159928cd7716

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-90222

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:

	drivers/nfc/pn533/pn533.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/8710faddef4ad8b2a6bfa985d896e2e1bfb77018
	https://git.kernel.org/stable/c/19f1239758c23f087f4c25733cfcf62bf0b06051
	https://git.kernel.org/stable/c/7ee72c64b4b66b1b42dbddbca0a80a218f1b9297
	https://git.kernel.org/stable/c/753bdaf3220fe8371a6c3c75da645ea7753d11be
	https://git.kernel.org/stable/c/d329f61ad5786900334a54c2445dc99feda545bf
	https://git.kernel.org/stable/c/7a8e0a7aef80721da287ac246349aba7d98f6aed
	https://git.kernel.org/stable/c/3e7a093c177f9f8b9fd039cab41191515079425a
	https://git.kernel.org/stable/c/47792358a624ea066455ef86b744159928cd7716