Skip to contentSkip to conversation

CVE-2026-90225: nfc: llcp: read llcp_sock->local under the socket lock in getsockopt

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: llcp: read llcp_sock->local under the socket lock in getsockopt

nfc_llcp_getsockopt() read llcp_sock->local before lock_sock(sk) and then dereferenced the cached pointer inside the locked region. llcp_sock_bind() assigns and clears llcp_sock->local under the same socket lock, dropping the last reference on its error path. A getsockopt() racing an in-flight bind() can observe the pointer, block on lock_sock(), and then dereference a freed nfc_llcp_local once bind() has unwound.

Move the llcp_sock->local read and the NULL check inside the lock_sock(sk) region so bind() cannot mutate or free the pointer between the load and the use.

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

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

	Issue introduced in 3.10 with commit 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7 and fixed in 5.10.270 with commit 56fd158fef20268f48db6cdfe5d722e930134eda
	Issue introduced in 3.10 with commit 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7 and fixed in 5.15.221 with commit 8ba8cec0586727cc135ca4827921fc7b52946d71
	Issue introduced in 3.10 with commit 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7 and fixed in 6.1.188 with commit ed5240bab3468988077fe8bf29b935eaecc9ff89
	Issue introduced in 3.10 with commit 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7 and fixed in 6.6.157 with commit fe65727a4a21b11c18eebae1338482767a897b76
	Issue introduced in 3.10 with commit 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7 and fixed in 6.12.110 with commit 2d8ac24565be85bf56580b87bf1b874d35625eb5
	Issue introduced in 3.10 with commit 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7 and fixed in 6.18.52 with commit 156e65bd29307f5053835bff60bc1ba342fa010f
	Issue introduced in 3.10 with commit 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7 and fixed in 7.2.6 with commit d1b73962675cdc5a58e2707e25b548d8b495fde0
	Issue introduced in 3.10 with commit 26fd76cab2e61cedc5c25f7151fb31b57ddc53c7 and fixed in 7.3-rc1 with commit 36812527052c5bfb1ec6c1e292d67a5bf76b750f

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

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/llcp_sock.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/56fd158fef20268f48db6cdfe5d722e930134eda
	https://git.kernel.org/stable/c/8ba8cec0586727cc135ca4827921fc7b52946d71
	https://git.kernel.org/stable/c/ed5240bab3468988077fe8bf29b935eaecc9ff89
	https://git.kernel.org/stable/c/fe65727a4a21b11c18eebae1338482767a897b76
	https://git.kernel.org/stable/c/2d8ac24565be85bf56580b87bf1b874d35625eb5
	https://git.kernel.org/stable/c/156e65bd29307f5053835bff60bc1ba342fa010f
	https://git.kernel.org/stable/c/d1b73962675cdc5a58e2707e25b548d8b495fde0
	https://git.kernel.org/stable/c/36812527052c5bfb1ec6c1e292d67a5bf76b750f