CVE-2026-139709

sit: charge ip_tunnel_prl_entry allocations to memcg

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

sit: charge ip_tunnel_prl_entry allocations to memcg

ipip6_tunnel_add_prl() allocates struct ip_tunnel_prl_entry for each
potential router entry added via SIOCADDPRL.
An unprivileged user with CAP_NET_ADMIN in a user namespace can add
an unbounded number of entries, consuming uncharged kernel memory.

Commit 1b51d8271973 ("memcg: ipv6/sit: account and don't WARN on
ip_tunnel_prl structs allocation") added accounting to the temporary
buffer in ipip6_tunnel_get_prl(), but missed the entry allocations
in ipip6_tunnel_add_prl().

Use GFP_KERNEL_ACCOUNT when allocating struct ip_tunnel_prl_entry.

Analysis

AI-generated

Technical impact

A kernel routine that allocates a routing table entry for IPv6 IP tunnels fails to account for the memory consumed by the allocation, enabling an attacker to add an unlimited number of entries. The result is uncharged kernel memory consumption that can expand until the system runs out of memory, potentially causing the kernel to invoke the OOM killer or stall services. This weakness is a classic resource exhaustion flaw, directly impacting the availability of the host.

Affected Systems

All Linux kernels that include the legacy sit (IPIP over IPv6) implementation prior to the commit that adds accounting to the ip_tunnel_prl_entry allocation path. The vulnerability applies to any system that permits a user to create a user namespace with CAP_NET_ADMIN privileges and use the SIOCADDPRL ioctl to add PRL entries; no specific distribution or version is listed, so any affected kernel before the fix is potentially vulnerable.

Risk and Exploitability

The CVSS score is not provided, and EPSS is unavailable, but the problem allows a non-root user possessing CAP_NET_ADMIN in a user namespace— a privilege that can be granted to ordinary users in many environments—to launch an unlimited allocation loop. Because kernel memory consumption is an unbounded parameter, the likelihood of an impact is high once the attack path is available. The vulnerability is not listed in CISA's KEV catalog, but its effect—kernel memory exhaustion— aligns it with well-known exploitation patterns where resource depletion leads to denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit adding GFP_KERNEL_ACCOUNT to ip_tunnel_prl_entry allocations, thereby enforcing memory accounting for these structures.
  • If a kernel upgrade is not yet available, remove or restrict CAP_NET_ADMIN for users in user namespaces that could exploit the SIOCADDPRL ioctl. This limits the attack surface by preventing the creation of unbounded tunnel entries.
  • Disable or block the SIOCADDPRL ioctl for user namespaces by applying appropriate netlink or sysctl restrictions, or configure the system to ignore warnings for ipip6_tunnel_get_prl() usage. This mitigates the immediate risk until the kernel fix can be applied.

Generated by OpenCVE AI on December 1, 2026 at 00:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-399
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: sit: charge ip_tunnel_prl_entry allocations to memcg ipip6_tunnel_add_prl() allocates struct ip_tunnel_prl_entry for each potential router entry added via SIOCADDPRL. An unprivileged user with CAP_NET_ADMIN in a user namespace can add an unbounded number of entries, consuming uncharged kernel memory. Commit 1b51d8271973 ("memcg: ipv6/sit: account and don't WARN on ip_tunnel_prl structs allocation") added accounting to the temporary buffer in ipip6_tunnel_get_prl(), but missed the entry allocations in ipip6_tunnel_add_prl(). Use GFP_KERNEL_ACCOUNT when allocating struct ip_tunnel_prl_entry.
Title sit: charge ip_tunnel_prl_entry allocations to memcg
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM