# CVE-2024-56661: tipc: fix NULL deref in cleanup\_bearer()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-12-27T15:06:23.928Z
- **Modified:** 2026-06-17T08:12:40.850Z

## Who should check

- Anyone running Linux \>= 4e69457f9dfae67435f3ccf29008768eae860415, \< d1d4dfb189a115734bff81c411bc58d9e348db7d; \>= 650ee9a22d7a2de8999fac2d45983597a0c22359, \< a771f349c95d3397636861a0a6462d4a7a7ecb25; \>= d2a4894f238551eae178904e7f45af87577074fd, \< 07b569eda6fe6a1e83be5a587abee12d1303f95e; \>= d62d5180c036eeac09f80660edc7a602b369125f, \< 754ec823ee53422361da7958a8c8bf3275426912; \>= d00d4470bf8c4282617a3a10e76b20a9c7e4cffa, \< 89ecda492d0a37fd00aaffc4151f1f44c26d93ac; \>= e48b211c4c59062cb6dd6c2c37c51a7cc235a464, \< a852c82eda4991e21610837aaa160965be71f5cc; \>= 6a2fa13312e51a621f652d522d7e2df7066330b6, \< b04d86fff66b15c07505d226431f808c15b1703c
- Anyone running 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

## 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 and fixed versions

- Linux: \>= 4e69457f9dfae67435f3ccf29008768eae860415, \< d1d4dfb189a115734bff81c411bc58d9e348db7d; \>= 650ee9a22d7a2de8999fac2d45983597a0c22359, \< a771f349c95d3397636861a0a6462d4a7a7ecb25; \>= d2a4894f238551eae178904e7f45af87577074fd, \< 07b569eda6fe6a1e83be5a587abee12d1303f95e; \>= d62d5180c036eeac09f80660edc7a602b369125f, \< 754ec823ee53422361da7958a8c8bf3275426912; \>= d00d4470bf8c4282617a3a10e76b20a9c7e4cffa, \< 89ecda492d0a37fd00aaffc4151f1f44c26d93ac; \>= e48b211c4c59062cb6dd6c2c37c51a7cc235a464, \< a852c82eda4991e21610837aaa160965be71f5cc; \>= 6a2fa13312e51a621f652d522d7e2df7066330b6, \< b04d86fff66b15c07505d226431f808c15b1703c (cvelist)
- 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 (cvelist)

## Mitigation

- Upgrade Linux to 6.12.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56661. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56661.md
Affected: Linux >= 4e69457f9dfae67435f3ccf29008768eae860415, < d1d4dfb189a115734bff81c411bc58d9e348db7d; >= 650ee9a22d7a2de8999fac2d45983597a0c22359, < a771f349c95d3397636861a0a6462d4a7a7ecb25; >= d2a4894f238551eae178904e7f45af87577074fd, < 07b569eda6fe6a1e83be5a587abee12d1303f95e; >= d62d5180c036eeac09f8066…
Fixed in: Linux 07b569eda6fe6a1e83be5a587abee12d1303f95e, Linux 754ec823ee53422361da7958a8c8bf3275426912, Linux 89ecda492d0a37fd00aaffc4151f1f44c26d93ac, Linux 5.4.288, Linux 5.10.232, Linux 5.15.175, Linux 6.1.121, Linux 6.6.67, Linux 6.12.6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56661 being exploited?

There is no confirmed exploitation: CVE-2024-56661 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-56661?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56661?

Linux \>= 4e69457f9dfae67435f3ccf29008768eae860415, \< d1d4dfb189a115734bff81c411bc58d9e348db7d; \>= 650ee9a22d7a2de8999fac2d45983597a0c22359, \< a771f349c95d3397636861a0a6462d4a7a7ecb25; \>= d2a4894f238551eae178904e7f45af87577074fd, \< 07b569eda6fe6a1e83be5a587abee12d1303f95e; \>= d62d5180c036eeac09f80660edc7a602b369125f, \< 754ec823ee53422361da7958a8c8bf3275426912; \>= d00d4470bf8c4282617a3a10e76b20a9c7e4cffa, \< 89ecda492d0a37fd00aaffc4151f1f44c26d93ac; \>= e48b211c4c59062cb6dd6c2c37c51a7cc235a464, \< a852c82eda4991e21610837aaa160965be71f5cc; \>= 6a2fa13312e51a621f652d522d7e2df7066330b6, \< b04d86fff66b15c07505d226431f808c15b1703c; 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.

### Is there a fix for CVE-2024-56661?

Yes. Fixed in Linux 07b569eda6fe6a1e83be5a587abee12d1303f95e, Linux 754ec823ee53422361da7958a8c8bf3275426912, Linux 89ecda492d0a37fd00aaffc4151f1f44c26d93ac, Linux 5.4.288, Linux 5.10.232, Linux 5.15.175, Linux 6.1.121, Linux 6.6.67, Linux 6.12.6. Upgrade Linux to 6.12.6 or later.

### How do I check if I'm affected by CVE-2024-56661?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d1d4dfb189a115734bff81c411bc58d9e348db7d>
- patch: <https://git.kernel.org/stable/c/a771f349c95d3397636861a0a6462d4a7a7ecb25>
- patch: <https://git.kernel.org/stable/c/07b569eda6fe6a1e83be5a587abee12d1303f95e>
- patch: <https://git.kernel.org/stable/c/754ec823ee53422361da7958a8c8bf3275426912>
- patch: <https://git.kernel.org/stable/c/89ecda492d0a37fd00aaffc4151f1f44c26d93ac>
- patch: <https://git.kernel.org/stable/c/a852c82eda4991e21610837aaa160965be71f5cc>
- patch: <https://git.kernel.org/stable/c/b04d86fff66b15c07505d226431f808c15b1703c>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56661>

HTML: <https://flawdb.com/CVE-2024-56661> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56661>
