Skip to contentSkip to conversation

CVE-2026-46098: net: caif: clear client service pointer on teardown

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

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

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

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

net: caif: clear client service pointer on teardown

caif_connect() can tear down an existing client after remote shutdown by calling caif_disconnect_client() followed by caif_free_client(). caif_free_client() releases the service layer referenced by adap_layer->dn, but leaves that pointer stale.

When the socket is later destroyed, caif_sock_destructor() calls caif_free_client() again and dereferences the freed service pointer.

Clear the client/service links before releasing the service object so repeated teardown becomes harmless.

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

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

	Issue introduced in 3.0 with commit 43e3692101086add8719c3b8b50b05c9ac5b14e1 and fixed in 6.6.140 with commit 914c6456fcfc21a3d553945dff62fd1621d6155d
	Issue introduced in 3.0 with commit 43e3692101086add8719c3b8b50b05c9ac5b14e1 and fixed in 6.12.86 with commit 3ac6db584d9d420267bb8413115707eeec76d9cf
	Issue introduced in 3.0 with commit 43e3692101086add8719c3b8b50b05c9ac5b14e1 and fixed in 6.18.27 with commit 63d21a3aa0108b9dde4e99b0d3d5d679ac68c0f9
	Issue introduced in 3.0 with commit 43e3692101086add8719c3b8b50b05c9ac5b14e1 and fixed in 7.0.4 with commit a4b191ddc12c55ddb62feb096536f819f384d6f1
	Issue introduced in 3.0 with commit 43e3692101086add8719c3b8b50b05c9ac5b14e1 and fixed in 7.1-rc1 with commit f7cf8ece8cee3c1ee361991470cdb1eb65ab02e8

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

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/caif/cfsrvl.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/914c6456fcfc21a3d553945dff62fd1621d6155d
	https://git.kernel.org/stable/c/3ac6db584d9d420267bb8413115707eeec76d9cf
	https://git.kernel.org/stable/c/63d21a3aa0108b9dde4e99b0d3d5d679ac68c0f9
	https://git.kernel.org/stable/c/a4b191ddc12c55ddb62feb096536f819f384d6f1
	https://git.kernel.org/stable/c/f7cf8ece8cee3c1ee361991470cdb1eb65ab02e8