NetworkManager-l2tp flaws allow local privilege escalation
Three CVEs cover unsanitized VPN properties, usernames, and MRU or MTU values written into IPsec or pppd files.
Argument Injection in NetworkManager-l2tp Enables Local Root Code Execution
NetworkManager-l2tp fails to properly validate the mru and mtu properties of L2TP VPN connections, writing their values verbatim into the pppd options file via write_config_option(). A local user who is permitted to create or edit VPN connections can supply an mru or mtu value consisting of a valid integer followed by trailing non-numeric content, injecting arbitrary pppd directives (CWE-88 argument injection). By injecting a 'plugin' directive, the attacker causes the privileged pppd process to load an attacker-controlled shared object, yielding arbitrary code execution as root, i.e., a full local privilege escalation. Affected systems are Linux hosts running NetworkManager-l2tp where non-administrative users hold VPN connection creation permissions (e.g., permissive polkit rules); the attack is local-only (AV:L, PR:L per the CVSS 4.0 vector). No public proof-of-concept, CISA KEV listing, or known in-the-wild exploitation exists; the CVE was assigned by VulnCheck.
What to do: Upgrade NetworkManager-l2tp to the vendor's patched release as soon as one is published (no fixed version is given in the available data). Until then, restrict polkit so only trusted administrators can create or modify system VPN connections, and audit existing L2TP profiles' mtu/mru settings for non-numeric trailing characters. Also check pppd options files on hosts for unexpected 'plugin' directives pointing to unexpected shared objects.
| Product | Affected |
|---|---|
| NetworkManager project (GNOME) NetworkManager-l2tp | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
NetworkManager-l2tp through 1.52.4, fixed in 1.52.6, contains an improper input validation vulnerability that allows local users with VPN connection creation permissions to inject arbitrary pppd directives by supplying mru or mtu property values containing trailing non-numeric content after a valid integer. Attackers can exploit the verbatim write of unvalidated strings into the pppd options file via write_config_option() to inject the plugin directive, causing the privileged pppd process to load an attacker-controlled shared object and achieve arbitrary code execution as root.
Three CVEs cover unsanitized VPN properties, usernames, and MRU or MTU values written into IPsec or pppd files.
Today 2.9K readers · 6.7K views · 611 reads · all time 292K views