CVE-2026-53262: l2tp: pppol2tp: hold reference to session in pppol2tp_ioctl()

Published Jun 25, 2026
·
Updated

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

l2tp: pppol2tp: hold reference to session in pppol2tpioctl()

pppol2tpioctl() read sock->sk->skuserdata directly without any locks or reference counting. If a controllable sleep was induced during copyfromuser() (e.g. via a userfaultfd page fault sleep), a concurrent socket close could trigger pppol2tpsessionclose() asynchronously. This frees the l2tpsession structure via the l2tpsessiondelwork workqueue. Upon resuming, the ioctl thread dereferences the stale session pointer, resulting in a Use-After-Free (UAF).

Fix this by securely fetching the session reference using the RCU-safe, refcounted helper pppol2tpsocktosession(sk) on entry. This locks the session's refcount across the sleep. We structured the function to exit via standard err breaks, guaranteeing that l2tpsessionput() is cleanly called on all return paths to drop the reference.

To preserve existing behavior we validate the session and its magic signature only for the specific L2TP commands that require it. This ensures that generic/unknown ioctls called on an unconnected socket still return -ENOIOCTLCMD and correctly fall back to generic handlers (e.g. in sockdoioctl()).

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=2.6.35<6.12.94
Linux Linux kernel>=6.13<6.18.36
Linux Linux kernel>=6.19<7.0.13
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4
Linux Linux kernel=7.1-rc5
Linux Linux kernel=7.1-rc6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In pppol2tp_ioctl(), avoid reading sock->sk->sk_user_data directly without a refcounted helper. Hold a valid session reference across the sleep and ensure each return path drops the reference (e.g., via a structured function exit and explicit l2tp_session_put() on all paths) to prevent Use-After-Free when the session pointer can become stale during concurrent socket close.

    Linux kernel (l2tp: pppol2tp) pppol2tp_ioctl session handling = Use an RCU-safe refcounted helper and hold/release session reference across any sleep instead of directly reading sock->sk->sk_user_data

Event History

Jun 25, 2026
CVE Published
via MITRE·08:39 AM
Data Sourced
via MITRE·08:39 AM
DescriptionSeverity
Data Sourced
via NVD·09:16 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-53262?

CVE-2026-53262 has a severity rating of 55.

2

How do I fix CVE-2026-53262?

To fix CVE-2026-53262, update the Linux kernel to the latest version where this vulnerability has been addressed.

3

What is the nature of CVE-2026-53262?

CVE-2026-53262 is a use-after-free vulnerability in the Linux kernel related to the pppol2tp_ioctl() function.

4

What impact does CVE-2026-53262 have on affected systems?

CVE-2026-53262 can lead to potential memory corruption and attacker exploitation on affected Linux systems.

5

Which software systems are affected by CVE-2026-53262?

CVE-2026-53262 affects the Linux kernel specifically related to the L2TP protocol.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203