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.
Published: 2026-05-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s caif networking module contains a use‑after‑free flaw that triggers when a client connection is torn down after a remote shutdown. The caif_disconnect_client() and caif_free_client() functions release a service object while leaving the adap_layer->dn pointer still referencing the freed memory. Subsequent calls to caif_sock_destructor() invoke caif_free_client() again and dereference this stale pointer, causing a kernel panic (CVE-2026-46098). The flaw is classified under CWE‑416 (Use‑After‑Free) and CWE‑1341 (Improper Release of Resource).

Affected Systems

All Linux kernel builds that include the caif networking support are potentially vulnerable. No specific kernel version numbers are listed, so any kernel that incorporates the caif module may be affected until the patch that clears the client/service links before freeing the service object is applied.

Risk and Exploitability

Because the exploit requires local kernel access through caif APIs, it is a local privilege escalation or denial‑of‑service risk. An attacker with sufficient privileges can deliberately initiate a remote shutdown to trigger the dangling dereference, resulting in a kernel crash. No EPSS or KEV indicators are available, but the severity of a kernel panic warrants immediate remediation. Applying the kernel update that removes the dangling pointer mitigates the risk.

Generated by OpenCVE AI on May 28, 2026 at 03:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel patch that clears the client/service links before freeing the service object, which eliminates the Use‑After‑Free (CWE‑416) and Improper Release of Resource (CWE‑1341) conditions.
  • If a kernel update is not immediately available, disable or prevent the caif module from loading in the running system to remove the vulnerable API surface until the patch can be deployed.
  • Continuously monitor kernel logs (e.g., via dmesg or /var/log/kern.log) for caif‑related crash messages and enforce an alert mechanism to apply the update as soon as it becomes available.

Generated by OpenCVE AI on May 28, 2026 at 03:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 04:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Thu, 28 May 2026 00:15:00 +0000


Wed, 27 May 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
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.
Title net: caif: clear client service pointer on teardown
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-27T12:59:02.308Z

Reserved: 2026-05-13T15:03:33.097Z

Link: CVE-2026-46098

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:31.453

Modified: 2026-05-27T14:48:03.013

Link: CVE-2026-46098

cve-icon Redhat

Severity :

Publid Date: 2026-05-27T00:00:00Z

Links: CVE-2026-46098 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T03:45:06Z

Weaknesses