CVE-2026-139709: sit: charge ip_tunnel_prl_entry allocations to memcg
In the Linux kernel, the following vulnerability has been resolved:
sit: charge iptunnelprlentry allocations to memcg
ipip6tunneladdprl() allocates struct iptunnelprlentry for each potential router entry added via SIOCADDPRL. An unprivileged user with CAPNETADMIN 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 iptunnelprl structs allocation") added accounting to the temporary buffer in ipip6tunnelgetprl(), but missed the entry allocations in ipip6tunneladdprl().
Use GFPKERNELACCOUNT when allocating struct iptunnelprlentry.