sit: charge ip_tunnel_prl_entry allocations to memcg

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linux1b51d8271973e4966078f0c1a5cb061ae9a424d2 to before adce976c0c1cab403454225f2fde3d175804a62e Affected1b51d8271973e4966078f0c1a5cb061ae9a424d2 to before b01aaeb24d0eafcc1b43b60c17065ecabfbc8a02 Affected1b51d8271973e4966078f0c1a5cb061ae9a424d2 to before b1653742c1ad7313959aa0f4e8508192360b7059 Affected1b51d8271973e4966078f0c1a5cb061ae9a424d2 to before 40a2b90f5190fcc7b083809fa93f2799abefeeb1 Affected
Linux Linux5.15 Affectedbefore 5.15 Not Affected6.12.120 through 6.12.* Not Affected6.18.66 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.