CVE-2026-53262
l2tp: pppol2tp: hold reference to session in pppol2tp_ioctl()
Check your servers for CVE-2026-53262
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-53262 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
l2tp: pppol2tp: hold reference to session in pppol2tp_ioctl()
pppol2tp_ioctl() read sock->sk->sk_user_data directly without any locks or reference counting. If a controllable sleep was induced during copy_from_user() (e.g. via a userfaultfd page fault sleep), a concurrent socket close could trigger pppol2tp_session_close() asynchronously. This frees the l2tp_session structure via the l2tp_session_del_work 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 pppol2tp_sock_to_session(sk) on entry. This locks the session's refcount across the sleep. We structured the function to exit via standard err breaks, guaranteeing that l2tp_session_put() 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 sock_do_ioctl()).
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.76% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 16 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from fd558d186df2c13a22455373858bae634a4795af, before cc19c164a99ab706d4cb45d3c300b305c16798b5 affected from fd558d186df2c13a22455373858bae634a4795af, before 312ecea13b67797747eb9d4b9dab8d3846de6dfb affected from fd558d186df2c13a22455373858bae634a4795af, before 78cdfdca88cbf731a92f3b9ee5427c633dd94e28 affected from fd558d186df2c13a22455373858bae634a4795af, before e251d4cdfc725c9e7d686161e3b775a0e7d95053 affected from fd558d186df2c13a22455373858bae634a4795af, before 62f327e287cf7b595ae3f73ba72f5cd2a9e9f39f affected from fd558d186df2c13a22455373858bae634a4795af, before a213a8950414c684999dcf03edeea6c46ede172e
Other versions: unaffected
|
| Linux |
affected 2.6.35 unaffected before 2.6.35 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.94 up to and including 6.12.* unaffected from 6.18.36 up to and including 6.18.* unaffected from 7.0.13 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-53262 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-53262
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-53262
trivy image --scanners vuln IMAGE | grep CVE-2026-53262
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/cc19c164a99ab706d4cb45d3c300b305c16798b5 git.kernel.org
- https://git.kernel.org/stable/c/312ecea13b67797747eb9d4b9dab8d3846de6dfb git.kernel.org
- https://git.kernel.org/stable/c/78cdfdca88cbf731a92f3b9ee5427c633dd94e28 git.kernel.org
- https://git.kernel.org/stable/c/e251d4cdfc725c9e7d686161e3b775a0e7d95053 git.kernel.org
- https://git.kernel.org/stable/c/62f327e287cf7b595ae3f73ba72f5cd2a9e9f39f git.kernel.org
- https://git.kernel.org/stable/c/a213a8950414c684999dcf03edeea6c46ede172e git.kernel.org
Source: the record CVE-2026-53262 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse