Local privilege escalation via freed GTP socket
Published Dec 24, 2025 · Updated Dec 24, 2025
Use-after-free in Linux kernel GTP socket teardown allows local users to corrupt kernel memory through local socket and rtnetlink calls. __gtp_encap_destroy calls sock_put before release_sock, so the final reference can free the socket before release_sock writes through its lock and callbacks. An unprivileged local user can obtain namespace-scoped CAP_NET_ADMIN; controlled reclamation enables kernel read and write primitives, privilege escalation, a crash, or a hang.
Summary
What happened
Use-after-free in Linux kernel GTP socket teardown allows local users to corrupt kernel memory through local socket and rtnetlink calls. __gtp_encap_destroy calls sock_put before release_sock, so the final reference can free the socket before release_sock writes through its lock and callbacks. An unprivileged local user can obtain namespace-scoped CAP_NET_ADMIN; controlled reclamation enables kernel read and write primitives, privilege escalation, a crash, or a hang.
The record
- CVE
- CVE-2023-54142
- Published
- Dec 24, 2025
- Updated
- Dec 24, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 24, 2025CVE publishedPublication date reported by the CVE source.
- Dec 24, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=01f3c64e405ab3d25887d080a103ad76f30661d2 <d38039697184aacff1cf576e14ef583112fdefef
- Affected versionversion=5.3
- Affected versionversion=76357f65f18f180f44ccbbbf713461881d0ab219
- Affected versionversion=bf75202df8e473d4ee914894542f213158066d8b
- Affected versionversion=e117a04133c673cc54292e12086a8177cd9bd4a4 <e5aa6d829831a55a693dbaeb58f8d22ba7f2b3e6
- Affected versionversion=e198987e7dd7d3645a53875151cd6f8fc425b706 <17d6b6354f0025b7c10a56da783fd0cbb3819c5d
- Affected versionversion=e198987e7dd7d3645a53875151cd6f8fc425b706 <58fa341327fdb4bdf92597fd8796a9abc8d20ea3
- Affected versionversion=e198987e7dd7d3645a53875151cd6f8fc425b706 <9c9662e2512b5e4ee7b03108802c5222e0fa77a4
- Affected versionversion=e198987e7dd7d3645a53875151cd6f8fc425b706 <bccc7ace12e69dee4684a3bb4b69737972e570d6
- Affected versionversion=e198987e7dd7d3645a53875151cd6f8fc425b706 <ce3aee7114c575fab32a5e9e939d4bbb3dcca79f
- Affected versionversion=e198987e7dd7d3645a53875151cd6f8fc425b706 <dae6095bdb24f537b4798ffd9201515b97bac94e
- Affected versionversion=e198987e7dd7d3645a53875151cd6f8fc425b706 <ebd6d2077a083329110695a996c00e8ca94bc640
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo