Skip to content
OpenAdvisories
Medium · 5.5 CVE-2024-56661 EUVD-2024-53309GHSA-4g6f-5r4h-c449

tipc: fix NULL deref in cleanup_bearer()

Published Dec 27, 2024 · Updated May 11, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.8 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-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.8 Package: linux-gcp-6.2 Package: linux-gcp-6.5 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.19 Package: linux-hwe-5.8 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-edge Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 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.5 Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.8 Package: linux-oracle-6.5 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.5 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

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

tipc: fix NULL deref in cleanup_bearer()

syzbot found [1] that after blamed commit, ub->ubsock->sk
was NULL when attempting the atomic_dec() :

atomic_dec(&tipc_net(sock_net(ub->ubsock->sk))->wq_count);

Fix this by caching the tipc_net pointer.

[1]

Oops: general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 0 UID: 0 PID: 5896 Comm: kworker/0:3 Not tainted 6.13.0-rc1-next-20241203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events cleanup_bearer
RIP: 0010:read_pnet include/net/net_namespace.h:387 [inline]
RIP: 0010:sock_net include/net/sock.h:655 [inline]
RIP: 0010:cleanup_bearer+0x1f7/0x280 net/tipc/udp_media.c:820
Code: 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 3c f7 99 f6 48 8b 1b 48 83 c3 30 e8 f0 e4 60 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 1a f7 99 f6 49 83 c7 e8 48 8b 1b
RSP: 0018:ffffc9000410fb70 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffff88802fe45a00
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc9000410f900
RBP: ffff88807e1f0908 R08: ffffc9000410f907 R09: 1ffff92000821f20
R10: dffffc0000000000 R11: fffff52000821f21 R12: ffff888031d19980
R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff88807e1f0918
FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000556ca050b000 CR3: 0000000031c0c000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Affected products

VendorProductAffectedFixed
Linux Linux 5.4.287 – < 5.4.288, 5.10.231 – < 5.10.232, 5.15.174 – < 5.15.175, 6.1.120 – < 6.1.121, 6.6.66 – < 6.6.67, 6.12.5 – < 6.12.6 5.4.288

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.12.6-1 —
Debian 13 linux 6.12.6-1 —
Debian 12 linux 6.1.123-1 —
Debian 11 linux 5.10.234-1 DLA-4075-1
Debian 11 linux-6.1 6.1.128-1~deb11u1 DLA-4076-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP6 kernel-64kb +6 6.4.0-150600.23.38.1 SUSE-SU-2025:0499-1
SLES 15 SP6 kernel-azure +2 6.4.0-150600.8.26.1 SUSE-SU-2025:0428-1
SLES 15 SP6 kernel-coco +3 6.4.0-15061.12.coco15sp6.1 SUSE-SU-2025:0289-1
SLES 15 SP6 kernel-default-base 6.4.0-150600.23.38.1.150600.12.16.2 SUSE-SU-2025:0499-1
SLES 15 SP5 kernel-64kb +6 5.14.21-150500.55.94.1 SUSE-SU-2025:0577-2, SUSE-SU-2025:0577-1
SLES 15 SP5 kernel-default-base 5.14.21-150500.55.94.1.150500.6.43.1 SUSE-SU-2025:0577-2, SUSE-SU-2025:0577-1
SLES 15 SP4 kernel-64kb +6 5.14.21-150400.24.150.1 SUSE-SU-2025:0576-1
SLES 15 SP4 kernel-default-base 5.14.21-150400.24.150.1.150400.24.74.1 SUSE-SU-2025:0576-1
SLES 15 SP3 kernel-64kb +7 5.3.18-150300.59.204.1 SUSE-SU-2025:01633-1
SLES 15 SP3 kernel-default-base 5.3.18-150300.59.204.1.150300.18.122.1 SUSE-SU-2025:01633-1
SLES 12 SP5 kernel-syms +2 4.12.14-122.247.1 SUSE-SU-2025:0565-1
Show 22 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 kernel-default-base 5.14.21-150500.55.94.1.150500.6.43.1 SUSE-SU-2025:0577-2, SUSE-SU-2025:0577-1
SLES for SAP 15 SP5 kernel-docs +4 5.14.21-150500.55.94.1 SUSE-SU-2025:0577-2, SUSE-SU-2025:0577-1
SLES for SAP 15 SP4 kernel-default-base 5.14.21-150400.24.150.1.150400.24.74.1 SUSE-SU-2025:0576-1
SLES for SAP 15 SP4 kernel-docs +4 5.14.21-150400.24.150.1 SUSE-SU-2025:0576-1
SLES for SAP 15 SP3 kernel-default-base 5.3.18-150300.59.204.1.150300.18.122.1 SUSE-SU-2025:01633-1
SLES for SAP 15 SP3 kernel-docs +5 5.3.18-150300.59.204.1 SUSE-SU-2025:01633-1
SLE Micro 6.1 kernel-default-base 6.4.0-24.1.21.4 SUSE-SU-2025:20248-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0-RT_Update_5 1-1.1 SUSE-SU-2025:20249-1
SLE Micro 6.1 kernel-livepatch-MICRO-6-0_Update_5 1-1.2 SUSE-SU-2025:20248-1
SLE Micro 6.1 kernel-rt +4 6.4.0-25.1 SUSE-SU-2025:20249-1, SUSE-SU-2025:20248-1
SLE Micro 6.0 kernel-default-base 6.4.0-24.1.21.4 SUSE-SU-2025:20165-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0-RT_Update_5 1-1.1 SUSE-SU-2025:20166-1
SLE Micro 6.0 kernel-livepatch-MICRO-6-0_Update_5 1-1.2 SUSE-SU-2025:20165-1
SLE Micro 6.0 kernel-rt +4 6.4.0-25.1 SUSE-SU-2025:20166-1, SUSE-SU-2025:20165-1
SLE Micro 5.5 kernel-default-base 5.14.21-150500.55.94.1.150500.6.43.1 SUSE-SU-2025:0577-2, SUSE-SU-2025:0577-1
SLE Micro 5.5 kernel-rt +1 5.14.21-150500.13.85.1 SUSE-SU-2025:0556-1
SLE Micro 5.5 kernel-source +1 5.14.21-150500.55.94.1 SUSE-SU-2025:0577-2, SUSE-SU-2025:0577-1
SLE Micro 5.4 kernel-default 5.14.21-150400.24.150.1 SUSE-SU-2025:0576-1
SLE Micro 5.4 kernel-default-base 5.14.21-150400.24.150.1.150400.24.74.1 SUSE-SU-2025:0576-1
SLE Micro 5.4 kernel-rt +1 5.14.21-150400.15.109.1 SUSE-SU-2025:0555-1
SLE Micro 5.3 kernel-default 5.14.21-150400.24.150.1 SUSE-SU-2025:0576-1
SLE Micro 5.3 kernel-default-base 5.14.21-150400.24.150.1.150400.24.74.1 SUSE-SU-2025:0576-1
SLE Micro 5.3 kernel-rt +1 5.14.21-150400.15.109.1 SUSE-SU-2025:0555-1
SLE Micro 5.2 kernel-default 5.3.18-150300.59.204.1 SUSE-SU-2025:01633-1
SLE Micro 5.2 kernel-default-base 5.3.18-150300.59.204.1.150300.18.122.1 SUSE-SU-2025:01633-1
SLE Micro 5.2 kernel-rt +1 5.3.18-150300.208.1 SUSE-SU-2025:1574-1
SLE Micro 5.1 kernel-default 5.3.18-150300.59.204.1 SUSE-SU-2025:01633-1
SLE Micro 5.1 kernel-default-base 5.3.18-150300.59.204.1.150300.18.122.1 SUSE-SU-2025:01633-1
SLE Micro 5.1 kernel-rt +1 5.3.18-150300.208.1 SUSE-SU-2025:1574-1
SLE Live Patching 15 SP6 kernel-default 6.4.0-150600.23.38.1 SUSE-SU-2025:0499-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6-RT_Update_8 1-150600.1.3.1 SUSE-SU-2025:0557-1
SLE Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_8 1-150600.13.3.2 SUSE-SU-2025:0499-1
SLE Live Patching 15 SP5 kernel-default 5.14.21-150500.55.94.1 SUSE-SU-2025:0577-1
SLE Live Patching 15 SP5 kernel-livepatch-SLE15-SP5_Update_23 1-150500.11.3.1 SUSE-SU-2025:0577-1
SLE Live Patching 15 SP4 kernel-default 5.14.21-150400.24.150.1 SUSE-SU-2025:0576-1
SLE Live Patching 15 SP4 kernel-livepatch-SLE15-SP4_Update_36 1-150400.9.3.1 SUSE-SU-2025:0576-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-150300.59.204.1 SUSE-SU-2025:01633-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_57 1-150300.7.3.1 SUSE-SU-2025:01633-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.247.1 SUSE-SU-2025:0565-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_65 1-8.3.1 SUSE-SU-2025:0565-1
SLE HPC 15 SP5 kernel-64kb +5 5.14.21-150500.55.94.1 SUSE-SU-2025:0577-2, SUSE-SU-2025:0577-1
SLE HPC 15 SP5 kernel-default-base 5.14.21-150500.55.94.1.150500.6.43.1 SUSE-SU-2025:0577-2, SUSE-SU-2025:0577-1
SLE HPC 15 SP4 kernel-64kb +5 5.14.21-150400.24.150.1 SUSE-SU-2025:0576-1
SLE HPC 15 SP4 kernel-default-base 5.14.21-150400.24.150.1.150400.24.74.1 SUSE-SU-2025:0576-1
SLE HPC 15 SP3 kernel-64kb +6 5.3.18-150300.59.204.1 SUSE-SU-2025:01633-1
SLE HPC 15 SP3 kernel-default-base 5.3.18-150300.59.204.1.150300.18.122.1 SUSE-SU-2025:01633-1
SUSE Real Time Module 15 SP6 kernel-rt +3 6.4.0-150600.10.26.1 SUSE-SU-2025:0557-1
SUSE Manager Server 4.3 kernel-default-base 5.14.21-150400.24.150.1.150400.24.74.1 SUSE-SU-2025:0576-1
SUSE Manager Server 4.3 kernel-syms +3 5.14.21-150400.24.150.1 SUSE-SU-2025:0576-1
SUSE Manager Proxy 4.3 kernel-default-base 5.14.21-150400.24.150.1.150400.24.74.1 SUSE-SU-2025:0576-1
SUSE Manager Proxy 4.3 kernel-syms +2 5.14.21-150400.24.150.1 SUSE-SU-2025:0576-1
SUSE Enterprise Storage 7.1 kernel-64kb +6 5.3.18-150300.59.204.1 SUSE-SU-2025:01633-1
SUSE Enterprise Storage 7.1 kernel-default-base 5.3.18-150300.59.204.1.150300.18.122.1 SUSE-SU-2025:01633-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 dtb-aarch64 +10 6.4.0-150600.23.38.1 SUSE-SU-2025:0499-1
openSUSE Leap 15.6 kernel-azure +2 6.4.0-150600.8.26.1 SUSE-SU-2025:0428-1
openSUSE Leap 15.6 kernel-default-base 6.4.0-150600.23.38.1.150600.12.16.2 SUSE-SU-2025:0499-1
openSUSE Leap 15.6 kernel-rt +3 6.4.0-150600.10.26.1 SUSE-SU-2025:0557-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 kernel-uek +34 6.12.0-101.33.4.3.el10uek ELSA-2025-20530, ELSA-2025-20480
Oracle Linux 8 bpftool +13 5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 7 kernel-uek +6 5.4.17-2136.340.4.1.el8uek ELSA-2025-20100
Oracle Linux 7 kernel-uek-tools 5.4.17-2136.340.4.1.el7uek ELSA-2025-20100

Advisories 25

References