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

xfrm: fix compat ALLOCSPI request use-after-free

xfrm_state_netlink() builds the ALLOCSPI response with
dump_one_state(), which already calls alloc_compat() with the response
skb and header.

xfrm_alloc_userspi() then calls alloc_compat() again, but passes the
original request skb and its header. For a compat request, the
translator therefore interprets the 228-byte compat xfrm_userspi_info
as the 232-byte native layout and reads four bytes past the declared
payload. It also publishes the translated child through the request's
frag_list.

A multicast clone of the request shares skb_shared_info and can observe
that child. xfrm_user_rcv_msg() frees it after the request handler
returns, racing a compat receiver which may still be copying from it and
resulting in a use-after-free.

Remove the redundant conversion. The response keeps its correct compat
translation from dump_one_state(), and no child is attached to the
inbound request.
Published: 2026-10-06
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: Use‑After‑Free in the kernel networking subsystem
Action: Patch immediately
AI Analysis

Impact

The vulnerability stems from a redundant use of alloc_compat() in the xfrm_state_netlink routine when handling compatibility ALLOCSPI requests. The kernel erroneously frees a socket buffer after the request handler returns while a compatibility receiver may still be copying data from it. This use‑after‑free can lead to a kernel crash or, depending on the execution context, arbitrary code execution. The flaw is categorized as CWE‑825 – a use‑after‑free condition.

Affected Systems

All Linux kernel builds that expose the xfrm netlink interface are affected. This includes standard distribution kernels from major vendors such as Ubuntu, Debian, Red Hat Enterprise Linux, and Fedora, as well as custom‑built kernels that retain the xfrm subsystem. Version information is not specified in the advisory, so any kernel containing the unpatched code is at risk.

Risk and Exploitability

The EPSS score of < 1% indicates a low probability of exploitation, and the flaw is not listed in the CISA KEV catalog. Based on the description, it is inferred that an attacker would need to craft a malicious compat ALLOCSPI netlink message and send it to the system, which typically requires local privileges or the ability to inject netlink traffic. If an attacker can control that traffic, the resulting use‑after‑free could trigger a kernel panic or allow privilege escalation. With a CVSS score of 7.0, the risk remains medium overall, but the potential for kernel compromise warrants prompt remediation.

Generated by OpenCVE AI on October 9, 2026 at 03:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that contains commit 17893987e52918c23945c42e47e894a936305a25 or a later release incorporating the fix.
  • If an immediate kernel upgrade is not feasible, restrict access to the xfrm netlink interface so that only privileged or trusted processes can send messages, or disable the xfrm subsystem entirely if it is unused.
  • After applying the patch or configuration change, reboot the system to load the updated networking code and clear any stale socket buffers.

Generated by OpenCVE AI on October 9, 2026 at 03:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6568-1 linux security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Fri, 09 Oct 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


Tue, 06 Oct 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Tue, 06 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xfrm: fix compat ALLOCSPI request use-after-free xfrm_state_netlink() builds the ALLOCSPI response with dump_one_state(), which already calls alloc_compat() with the response skb and header. xfrm_alloc_userspi() then calls alloc_compat() again, but passes the original request skb and its header. For a compat request, the translator therefore interprets the 228-byte compat xfrm_userspi_info as the 232-byte native layout and reads four bytes past the declared payload. It also publishes the translated child through the request's frag_list. A multicast clone of the request shares skb_shared_info and can observe that child. xfrm_user_rcv_msg() frees it after the request handler returns, racing a compat receiver which may still be copying from it and resulting in a use-after-free. Remove the redundant conversion. The response keeps its correct compat translation from dump_one_state(), and no child is attached to the inbound request.
Title xfrm: fix compat ALLOCSPI request use-after-free
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-10-19T09:18:22.245Z

Reserved: 2026-09-25T10:25:14.344Z

Link: CVE-2026-98370

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:31.450

Modified: 2026-10-19T10:18:40.183

Link: CVE-2026-98370

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98370 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-09T03:45:16Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference