Skip to contentSkip to conversation

CVE-2026-98579: nfc: llcp: fix sdreq TLV list leak on parse/alloc/send failure

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: llcp: fix sdreq TLV list leak on parse/alloc/send failure

nfc_genl_llc_sdreq() builds a list of TLV nodes while walking nested netlink attrs, but 3 error paths (nested-attr parse failure, TLV alloc ENOMEM, nfc_llcp_send_snl_sdreq() failure) all skip freeing what was already queued.

Route them through a new free_list label, mirroring the SDRES path in the same file which already does this. Harmless on the success path too -- send_snl_sdreq() drains the list as it moves nodes, so it's already empty by the time free_list runs.

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

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

	Issue introduced in 3.10 with commit d9b8d8e19b073096d3609bbd60f82148d128b555 and fixed in 5.10.271 with commit 5b1eca82085134bd92cd3810b0ef003c91e3f668
	Issue introduced in 3.10 with commit d9b8d8e19b073096d3609bbd60f82148d128b555 and fixed in 5.15.222 with commit d3f60a7fc291d08cd9192a3b4cd5d3a223fa7d02
	Issue introduced in 3.10 with commit d9b8d8e19b073096d3609bbd60f82148d128b555 and fixed in 6.1.189 with commit 755bfc409748d8f3df64eb0eb26926270de3dd77
	Issue introduced in 3.10 with commit d9b8d8e19b073096d3609bbd60f82148d128b555 and fixed in 6.6.158 with commit e43ec0191c1630f41e7043ac729ea6f1b8044a7f
	Issue introduced in 3.10 with commit d9b8d8e19b073096d3609bbd60f82148d128b555 and fixed in 6.12.112 with commit 08d2c069239ab425fdd333784a6a3b3e034e4aa0
	Issue introduced in 3.10 with commit d9b8d8e19b073096d3609bbd60f82148d128b555 and fixed in 6.18.55 with commit cbde7f5d326172d6dbb55cca0df42fa7e1ed8115
	Issue introduced in 3.10 with commit d9b8d8e19b073096d3609bbd60f82148d128b555 and fixed in 7.2.9 with commit 0b01a946b0f234f5badd25968610b585a4895f08
	Issue introduced in 3.10 with commit d9b8d8e19b073096d3609bbd60f82148d128b555 and fixed in 7.3-rc5 with commit 66f4300206b82b0b143ef0d9be90cd8d29f23a47

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

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/netlink.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/5b1eca82085134bd92cd3810b0ef003c91e3f668
	https://git.kernel.org/stable/c/d3f60a7fc291d08cd9192a3b4cd5d3a223fa7d02
	https://git.kernel.org/stable/c/755bfc409748d8f3df64eb0eb26926270de3dd77
	https://git.kernel.org/stable/c/e43ec0191c1630f41e7043ac729ea6f1b8044a7f
	https://git.kernel.org/stable/c/08d2c069239ab425fdd333784a6a3b3e034e4aa0
	https://git.kernel.org/stable/c/cbde7f5d326172d6dbb55cca0df42fa7e1ed8115
	https://git.kernel.org/stable/c/0b01a946b0f234f5badd25968610b585a4895f08
	https://git.kernel.org/stable/c/66f4300206b82b0b143ef0d9be90cd8d29f23a47