Skip to contentSkip to conversation

CVE-2026-98578: nfc: st21nfca: validate ISO15693 inventory length

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: st21nfca: validate ISO15693 inventory length

The ISO15693 inventory helper removes a two-byte prefix without checking that it exists, then accepts a one-byte remainder before reading data[1] as the DSFID.

Require the prefix and at least two remaining bytes before copying the UID data and reading the DSFID.

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

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

	Issue introduced in 3.16 with commit 7974728094d35f38775417a26d8f30ea3602496a and fixed in 5.10.271 with commit e47b2a350bb0ff123434ec5484c6dc3333b0727c
	Issue introduced in 3.16 with commit 7974728094d35f38775417a26d8f30ea3602496a and fixed in 5.15.222 with commit 57d183764f3002f9625ee4deeeb20716c519534e
	Issue introduced in 3.16 with commit 7974728094d35f38775417a26d8f30ea3602496a and fixed in 6.1.189 with commit 3af2ea4035581a1607d9830779c187a0c7e225aa
	Issue introduced in 3.16 with commit 7974728094d35f38775417a26d8f30ea3602496a and fixed in 6.6.158 with commit 9fa21b0f78adb514e3bd96a505ddb752e9727ff3
	Issue introduced in 3.16 with commit 7974728094d35f38775417a26d8f30ea3602496a and fixed in 6.12.112 with commit 6353dae51bc9b3cad13c9d890b53311a46c96b4e
	Issue introduced in 3.16 with commit 7974728094d35f38775417a26d8f30ea3602496a and fixed in 6.18.55 with commit fdd95e819d828c975aaeb258a3fed5dd7fd136d0
	Issue introduced in 3.16 with commit 7974728094d35f38775417a26d8f30ea3602496a and fixed in 7.2.9 with commit a86987d03a4d39acdbe4533d83db4d656ea36c59
	Issue introduced in 3.16 with commit 7974728094d35f38775417a26d8f30ea3602496a and fixed in 7.3-rc5 with commit 7f2ea5ed588c03d481f0301e6c3d4240132383fb

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

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/st21nfca/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/e47b2a350bb0ff123434ec5484c6dc3333b0727c
	https://git.kernel.org/stable/c/57d183764f3002f9625ee4deeeb20716c519534e
	https://git.kernel.org/stable/c/3af2ea4035581a1607d9830779c187a0c7e225aa
	https://git.kernel.org/stable/c/9fa21b0f78adb514e3bd96a505ddb752e9727ff3
	https://git.kernel.org/stable/c/6353dae51bc9b3cad13c9d890b53311a46c96b4e
	https://git.kernel.org/stable/c/fdd95e819d828c975aaeb258a3fed5dd7fd136d0
	https://git.kernel.org/stable/c/a86987d03a4d39acdbe4533d83db4d656ea36c59
	https://git.kernel.org/stable/c/7f2ea5ed588c03d481f0301e6c3d4240132383fb