Skip to content
OpenAdvisories
High · 7.8 CVE-2023-54142 EUVD-2023-60303GHSA-frp2-qrfx-2m63

gtp: Fix use-after-free in __gtp_encap_destroy().

Published Dec 24, 2025 · Updated Aug 5, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-azure-fips Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-ibm-5.4 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-nvidia Package: linux-nvidia-6.11 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.11 Package: linux-oem-6.5 Package: linux-oem-6.8 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-oracle-6.5 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.14 Package: linux-riscv-6.5 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

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

gtp: Fix use-after-free in __gtp_encap_destroy().

syzkaller reported use-after-free in __gtp_encap_destroy(). [0]

It shows the same process freed sk and touched it illegally.

Commit e198987e7dd7 ("gtp: fix suspicious RCU usage") added lock_sock()
and release_sock() in __gtp_encap_destroy() to protect sk->sk_user_data,
but release_sock() is called after sock_put() releases the last refcnt.

[0]:
BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
BUG: KASAN: slab-use-after-free in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:541 [inline]
BUG: KASAN: slab-use-after-free in queued_spin_lock include/asm-generic/qspinlock.h:111 [inline]
BUG: KASAN: slab-use-after-free in do_raw_spin_lock include/linux/spinlock.h:186 [inline]
BUG: KASAN: slab-use-after-free in __raw_spin_lock_bh include/linux/spinlock_api_smp.h:127 [inline]
BUG: KASAN: slab-use-after-free in _raw_spin_lock_bh+0x75/0xe0 kernel/locking/spinlock.c:178
Write of size 4 at addr ffff88800dbef398 by task syz-executor.2/2401

CPU: 1 PID: 2401 Comm: syz-executor.2 Not tainted 6.4.0-rc5-01219-gfa0e21fa4443 #2
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x72/0xa0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:351 [inline]
print_report+0xcc/0x620 mm/kasan/report.c:462
kasan_report+0xb2/0xe0 mm/kasan/report.c:572
check_region_inline mm/kasan/generic.c:181 [inline]
kasan_check_range+0x39/0x1c0 mm/kasan/generic.c:187
instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:541 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:111 [inline]
do_raw_spin_lock include/linux/spinlock.h:186 [inline]
__raw_spin_lock_bh include/linux/spinlock_api_smp.h:127 [inline]
_raw_spin_lock_bh+0x75/0xe0 kernel/locking/spinlock.c:178
spin_lock_bh include/linux/spinlock.h:355 [inline]
release_sock+0x1f/0x1a0 net/core/sock.c:3526
gtp_encap_disable_sock drivers/net/gtp.c:651 [inline]
gtp_encap_disable+0xb9/0x220 drivers/net/gtp.c:664
gtp_dev_uninit+0x19/0x50 drivers/net/gtp.c:728
unregister_netdevice_many_notify+0x97e/0x1520 net/core/dev.c:10841
rtnl_delete_link net/core/rtnetlink.c:3216 [inline]
rtnl_dellink+0x3c0/0xb30 net/core/rtnetlink.c:3268
rtnetlink_rcv_msg+0x450/0xb10 net/core/rtnetlink.c:6423
netlink_rcv_skb+0x15d/0x450 net/netlink/af_netlink.c:2548
netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
netlink_unicast+0x700/0x930 net/netlink/af_netlink.c:1365
netlink_sendmsg+0x91c/0xe30 net/netlink/af_netlink.c:1913
sock_sendmsg_nosec net/socket.c:724 [inline]
sock_sendmsg+0x1b7/0x200 net/socket.c:747
____sys_sendmsg+0x75a/0x990 net/socket.c:2493
___sys_sendmsg+0x11d/0x1c0 net/socket.c:2547
__sys_sendmsg+0xfe/0x1d0 net/socket.c:2576
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3f/0x90 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x72/0xdc
RIP: 0033:0x7f1168b1fe5d
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 73 9f 1b 00 f7 d8 64 89 01 48
RSP: 002b:00007f1167edccc8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004bbf80 RCX: 00007f1168b1fe5d
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000003
RBP: 00000000004bbf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f1168b80530 R15: 0000000000000000
</TASK>

Allocated by task 1483:
kasan_save_stack+0x22/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
__kasan_slab_alloc+0x
---truncated---

Affected products

VendorProductAffectedFixed
Linux Linux 4.14.135 – < 4.14.322, 4.19.61 – < 4.19.291, 5.1.20 – < 5.2, 5.2.3 – < 5.3, 5.3 4.14.322

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.4.4-1 —
Debian 13 linux 6.4.4-1 —
Debian 12 linux 6.1.52-1 —
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1027.29 —
Ubuntu 24.04 LTS linux-riscv +10 No fix yet —
Ubuntu 22.04 LTS linux 5.15.0-86.96 —
Ubuntu 22.04 LTS linux-aws 5.15.0-1047.52 —
Ubuntu 22.04 LTS linux-azure 5.15.0-1049.56 —
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1049.56.1 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1044.52 —
Ubuntu 22.04 LTS linux-gke +1 5.15.0-1044.49 —
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1030.35 —
Ubuntu 22.04 LTS linux-ibm +1 5.15.0-1040.43 —
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1043.49 —
Ubuntu 22.04 LTS linux-lowlatency 5.15.0-86.95 —
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1037.37 —
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1018.18 —
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1005.5 —
Ubuntu 22.04 LTS linux-oracle 5.15.0-1045.51 —
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1025.29 —
Ubuntu 20.04 LTS linux 5.4.0-166.183 —
Ubuntu 20.04 LTS linux-aws 5.4.0-1113.123 —
Ubuntu 20.04 LTS linux-aws-5.15 5.15.0-1047.52~20.04.1 —
Ubuntu 20.04 LTS linux-azure 5.4.0-1119.126 —
Ubuntu 20.04 LTS linux-azure-5.15 5.15.0-1049.56~20.04.1 —
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1074.80 —
Ubuntu 20.04 LTS linux-gcp 5.4.0-1117.126 —
Ubuntu 20.04 LTS linux-gcp-5.15 5.15.0-1044.52~20.04.1 —
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 20.04 LTS linux-hwe-5.15 5.15.0-86.96~20.04.1 —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1060.65 —
Ubuntu 20.04 LTS linux-ibm-5.15 5.15.0-1040.43~20.04.1 —
Ubuntu 20.04 LTS linux-intel-iotg-5.15 5.15.0-1043.49~20.04.1 —
Ubuntu 20.04 LTS linux-iot 5.4.0-1025.26 —
Ubuntu 20.04 LTS linux-kvm 5.4.0-1102.108 —
Ubuntu 20.04 LTS linux-lowlatency-hwe-5.15 5.15.0-86.95~20.04.1 —
Ubuntu 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1018.18~20.04.1 —
Ubuntu 20.04 LTS linux-oracle 5.4.0-1112.121 —
Ubuntu 20.04 LTS linux-oracle-5.15 5.15.0-1045.51~20.04.1 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1097.109 —
Ubuntu 20.04 LTS linux-riscv-5.15 5.15.0-1043.47~20.04.1 —
Ubuntu 20.04 LTS linux-xilinx-zynqmp 5.4.0-1033.37 —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1040.42 —
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1048.54 —
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1113.123+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1119.126+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1088.97 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1117.126+fips1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips No fix yet —
Ubuntu Pro 18.04 LTS linux +5 No fix yet —
Ubuntu Pro 18.04 LTS linux-aws-5.4 5.4.0-1113.123~18.04.1 —
Ubuntu Pro 18.04 LTS linux-azure-5.4 5.4.0-1119.126~18.04.2 —
Ubuntu Pro 18.04 LTS linux-gcp-5.4 5.4.0-1117.126~18.04.1 —
Ubuntu Pro 18.04 LTS linux-hwe-5.4 5.4.0-166.183~18.04.2 —
Ubuntu Pro 18.04 LTS linux-ibm-5.4 5.4.0-1060.65~18.04.1 —
Ubuntu Pro 18.04 LTS linux-oracle-5.4 5.4.0-1112.121~18.04.4 —
Ubuntu Pro 18.04 LTS linux-raspi-5.4 5.4.0-1097.109~18.04.2 —
Ubuntu Pro 16.04 LTS linux-gcp +4 No fix yet —
Ubuntu Pro 14.04 LTS linux-azure No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +6 6.4.0-150700.53.28.1 SUSE-SU-2026:0315-1
SLES 15 SP7 kernel-azure +2 6.4.0-150700.20.24.1 SUSE-SU-2026:0281-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.28.1.150700.17.19.1 SUSE-SU-2026:0315-1
SLES 15 SP6 kernel-64kb +6 6.4.0-150600.23.84.1 SUSE-SU-2026:0293-1
SLES 15 SP6 kernel-default-base 6.4.0-150600.23.84.1.150600.12.38.1 SUSE-SU-2026:0293-1
SLES 15 SP5 kernel-64kb +6 5.14.21-150500.55.136.1 SUSE-SU-2026:0474-1
SLES 15 SP5 kernel-default-base 5.14.21-150500.55.136.1.150500.6.67.1 SUSE-SU-2026:0474-1
SLES 15 SP4 kernel-64kb +6 5.14.21-150400.24.194.1 SUSE-SU-2026:0617-1
SLES 15 SP4 kernel-default-base 5.14.21-150400.24.194.1.150400.24.98.3 SUSE-SU-2026:0617-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP6 kernel-default-base 6.4.0-150600.23.84.1.150600.12.38.1 SUSE-SU-2026:0293-1
SLES for SAP 15 SP6 kernel-docs +4 6.4.0-150600.23.84.1 SUSE-SU-2026:0293-1
SLES for SAP 15 SP5 kernel-default-base 5.14.21-150500.55.136.1.150500.6.67.1 SUSE-SU-2026:0474-1
SLES for SAP 15 SP5 kernel-docs +4 5.14.21-150500.55.136.1 SUSE-SU-2026:0474-1
SLES for SAP 15 SP4 kernel-default-base 5.14.21-150400.24.194.1.150400.24.98.3 SUSE-SU-2026:0617-1
SLES for SAP 15 SP4 kernel-docs +4 5.14.21-150400.24.194.1 SUSE-SU-2026:0617-1
SLE Micro 6.1 kernel-default-base 6.4.0-39.1.21.16 SUSE-SU-2026:20498-1
SLE Micro 6.1 kernel-rt +1 6.4.0-40.1 SUSE-SU-2026:20876-1
SLE Micro 6.1 kernel-source +2 6.4.0-39.1 SUSE-SU-2026:20498-1
SLE Micro 6.0 kernel-default-base 6.4.0-39.1.21.16 SUSE-SU-2026:20477-1
SLE Micro 6.0 kernel-rt +1 6.4.0-40.1 SUSE-SU-2026:20845-1
SLE Micro 6.0 kernel-source +2 6.4.0-39.1 SUSE-SU-2026:20477-1
SLE Micro 5.5 kernel-default-base 5.14.21-150500.55.136.1.150500.6.67.1 SUSE-SU-2026:0474-1
SLE Micro 5.5 kernel-rt +1 5.14.21-150500.13.121.1 SUSE-SU-2026:0496-1
SLE Micro 5.5 kernel-source +1 5.14.21-150500.55.136.1 SUSE-SU-2026:0474-1
SLE Micro 5.4 kernel-default 5.14.21-150400.24.194.1 SUSE-SU-2026:0617-1
SLE Micro 5.4 kernel-default-base 5.14.21-150400.24.194.1.150400.24.98.3 SUSE-SU-2026:0617-1
SLE Micro 5.4 kernel-rt +1 5.14.21-150400.15.142.1 SUSE-SU-2026:0411-1
SLE Micro 5.3 kernel-default 5.14.21-150400.24.194.1 SUSE-SU-2026:0617-1
SLE Micro 5.3 kernel-default-base 5.14.21-150400.24.194.1.150400.24.98.3 SUSE-SU-2026:0617-1
SLE Micro 5.3 kernel-rt +1 5.14.21-150400.15.142.1 SUSE-SU-2026:0411-1
SLE Micro 5.2 kernel-default 5.3.18-150300.59.232.1 SUSE-SU-2026:0369-1
SLE Micro 5.2 kernel-default-base 5.3.18-150300.59.232.1.150300.18.138.1 SUSE-SU-2026:0369-1
SLE Micro 5.2 kernel-rt +1 5.3.18-150300.232.1 SUSE-SU-2026:0350-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.28.1 SUSE-SU-2026:0315-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_8 1-150700.1.3.1 SUSE-SU-2026:0278-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_8 1-150700.15.3.1 SUSE-SU-2026:0315-1
SLE Live Patching 15 SP6 kernel-default 6.4.0-150600.23.84.1 SUSE-SU-2026:0293-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_19 1-150600.13.3.1 SUSE-SU-2026:0293-1
SLE Live Patching 15 SP5 kernel-default 5.14.21-150500.55.136.1 SUSE-SU-2026:0474-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_23 +1 15-150500.2.1 SUSE-SU-2026:0725-1, SUSE-SU-2026:0713-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_27 13-150500.2.1 SUSE-SU-2026:0727-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_31 5-150500.2.1 SUSE-SU-2026:0731-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_34 2-150500.2.1 SUSE-SU-2026:0734-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_35 1-150500.11.3.1 SUSE-SU-2026:0474-1
SLE Live Patching 15 SP4 kernel-default 5.14.21-150400.24.194.1 SUSE-SU-2026:0617-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_36 15-150400.2.1 SUSE-SU-2026:0711-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_44 8-150400.2.1 SUSE-SU-2026:0713-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_48 1-150400.9.7.1 SUSE-SU-2026:0617-1
SLE HPC 15 SP5 kernel-64kb +5 5.14.21-150500.55.136.1 SUSE-SU-2026:0474-1
SLE HPC 15 SP5 kernel-default-base 5.14.21-150500.55.136.1.150500.6.67.1 SUSE-SU-2026:0474-1
SLE HPC 15 SP4 kernel-64kb +5 5.14.21-150400.24.194.1 SUSE-SU-2026:0617-1
SLE HPC 15 SP4 kernel-default-base 5.14.21-150400.24.194.1.150400.24.98.3 SUSE-SU-2026:0617-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.28.1 SUSE-SU-2026:0278-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 dtb-aarch64 +10 6.4.0-150600.23.84.1 SUSE-SU-2026:0293-1
openSUSE Leap 15.6 kernel-default-base 6.4.0-150600.23.84.1.150600.12.38.1 SUSE-SU-2026:0293-1

Advisories 21

References