# CVE-2024-26864: tcp: Fix refcnt handling in \_\_inet\_hash\_connect().

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.87% (percentile 56, 2026-11-26)
- **CWE:** CWE-200
- **Published:** 2024-04-17T10:27:26.884Z
- **Modified:** 2026-08-05T11:27:52.447Z

## Who should check

- Anyone running Linux \>= 729bc77af438a6e67914c97f6f3d3af8f72c0131, \< 86d9b040421bbd26425f5a3edc226f57ecdecbfe; \>= 334a8348b2df26526f3298848ad6864285592caf, \< 856baaa100cd288d3685eedae9a129c996e7e755; \>= f8c4a6b850882bc47aaa864b720c7a2ee3102f39, \< 1b20e61d36f490319d3fbdedd410155232ab5190; \>= 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f, \< ad105cde6b261b8b05ec872fe7d1987417d7fe5a; \>= 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f, \< 04d9d1fc428ac9f581d55118d67e0cb546701feb; \>= 6.1.80, \< 6.1.83; \>= 6.6.19, \< 6.6.23; \>= 6.7.7, \< 6.7.11
- Anyone running Linux 6.8

## Description

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

tcp: Fix refcnt handling in \_\_inet\_hash\_connect().

syzbot reported a warning in sk\_nulls\_del\_node\_init\_rcu().

The commit 66b60b0c8c4a ("dccp/tcp: Unhash sk from ehash for tb2 alloc
failure after check\_estalblished().") tried to fix an issue that an
unconnected socket occupies an ehash entry when bhash2 allocation fails.

In such a case, we need to revert changes done by check\_established(),
which does not hold refcnt when inserting socket into ehash.

So, to revert the change, we need to \_\_sk\_nulls\_add\_node\_rcu() instead
of sk\_nulls\_add\_node\_rcu().

Otherwise, sock\_put() will cause refcnt underflow and leak the socket.

\[0\]:
WARNING: CPU: 0 PID: 23948 at include/net/sock.h:799 sk\_nulls\_del\_node\_init\_rcu+0x166/0x1a0 include/net/sock.h:799
Modules linked in:
CPU: 0 PID: 23948 Comm: syz-executor.2 Not tainted 6.8.0-rc6-syzkaller-00159-gc055fc00c07b \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:sk\_nulls\_del\_node\_init\_rcu+0x166/0x1a0 include/net/sock.h:799
Code: e8 7f 71 c6 f7 83 fb 02 7c 25 e8 35 6d c6 f7 4d 85 f6 0f 95 c0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 1b 6d c6 f7 90 \<0f\> 0b 90 eb b2 e8 10 6d c6 f7 4c 89 e7 be 04 00 00 00 e8 63 e7 d2
RSP: 0018:ffffc900032d7848 EFLAGS: 00010246
RAX: ffffffff89cd0035 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc90004de1000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: 1ffff1100439ac26 R08: ffffffff89ccffe3 R09: 1ffff1100439ac28
R10: dffffc0000000000 R11: ffffed100439ac29 R12: ffff888021cd6140
R13: dffffc0000000000 R14: ffff88802a9bf5c0 R15: ffff888021cd6130
FS:  00007f3b823f16c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3b823f0ff8 CR3: 000000004674a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 \_\_inet\_hash\_connect+0x140f/0x20b0 net/ipv4/inet\_hashtables.c:1139
 dccp\_v6\_connect+0xcb9/0x1480 net/dccp/ipv6.c:956
 \_\_inet\_stream\_connect+0x262/0xf30 net/ipv4/af\_inet.c:678
 inet\_stream\_connect+0x65/0xa0 net/ipv4/af\_inet.c:749
 \_\_sys\_connect\_file net/socket.c:2048 \[inline\]
 \_\_sys\_connect+0x2df/0x310 net/socket.c:2065
 \_\_do\_sys\_connect net/socket.c:2075 \[inline\]
 \_\_se\_sys\_connect net/socket.c:2072 \[inline\]
 \_\_x64\_sys\_connect+0x7a/0x90 net/socket.c:2072
 do\_syscall\_64+0xf9/0x240
 entry\_SYSCALL\_64\_after\_hwframe+0x6f/0x77
RIP: 0033:0x7f3b8167dda9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3b823f10c8 EFLAGS: 00000246 ORIG\_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f3b817abf80 RCX: 00007f3b8167dda9
RDX: 000000000000001c RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00007f3b823f1120 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 000000000000000b R14: 00007f3b817abf80 R15: 00007ffd3beb57b8
 \</TASK\>

## Affected and fixed versions

- Linux: \>= 729bc77af438a6e67914c97f6f3d3af8f72c0131, \< 86d9b040421bbd26425f5a3edc226f57ecdecbfe; \>= 334a8348b2df26526f3298848ad6864285592caf, \< 856baaa100cd288d3685eedae9a129c996e7e755; \>= f8c4a6b850882bc47aaa864b720c7a2ee3102f39, \< 1b20e61d36f490319d3fbdedd410155232ab5190; \>= 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f, \< ad105cde6b261b8b05ec872fe7d1987417d7fe5a; \>= 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f, \< 04d9d1fc428ac9f581d55118d67e0cb546701feb; \>= 6.1.80, \< 6.1.83; \>= 6.6.19, \< 6.6.23; \>= 6.7.7, \< 6.7.11 (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- Upgrade Linux to 6.7.11 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-26864. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26864.md
Affected: Linux >= 729bc77af438a6e67914c97f6f3d3af8f72c0131, < 86d9b040421bbd26425f5a3edc226f57ecdecbfe; >= 334a8348b2df26526f3298848ad6864285592caf, < 856baaa100cd288d3685eedae9a129c996e7e755; >= f8c4a6b850882bc47aaa864b720c7a2ee3102f39, < 1b20e61d36f490319d3fbdedd410155232ab5190; >= 66b60b0c8c4a163b022a9f0…
Fixed in: Linux 86d9b040421bbd26425f5a3edc226f57ecdecbfe, Linux 856baaa100cd288d3685eedae9a129c996e7e755, Linux 1b20e61d36f490319d3fbdedd410155232ab5190, Linux 04d9d1fc428ac9f581d55118d67e0cb546701feb, Linux 6.1.83, Linux 6.6.23, Linux 6.7.11

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-26864 being exploited?

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

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

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

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

Linux \>= 729bc77af438a6e67914c97f6f3d3af8f72c0131, \< 86d9b040421bbd26425f5a3edc226f57ecdecbfe; \>= 334a8348b2df26526f3298848ad6864285592caf, \< 856baaa100cd288d3685eedae9a129c996e7e755; \>= f8c4a6b850882bc47aaa864b720c7a2ee3102f39, \< 1b20e61d36f490319d3fbdedd410155232ab5190; \>= 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f, \< ad105cde6b261b8b05ec872fe7d1987417d7fe5a; \>= 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f, \< 04d9d1fc428ac9f581d55118d67e0cb546701feb; \>= 6.1.80, \< 6.1.83; \>= 6.6.19, \< 6.6.23; \>= 6.7.7, \< 6.7.11; Linux 6.8.

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

Yes. Fixed in Linux 86d9b040421bbd26425f5a3edc226f57ecdecbfe, Linux 856baaa100cd288d3685eedae9a129c996e7e755, Linux 1b20e61d36f490319d3fbdedd410155232ab5190, Linux 04d9d1fc428ac9f581d55118d67e0cb546701feb, Linux 6.1.83, Linux 6.6.23, Linux 6.7.11. Upgrade Linux to 6.7.11 or later.

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

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/86d9b040421bbd26425f5a3edc226f57ecdecbfe>
- patch: <https://git.kernel.org/stable/c/856baaa100cd288d3685eedae9a129c996e7e755>
- patch: <https://git.kernel.org/stable/c/1b20e61d36f490319d3fbdedd410155232ab5190>
- patch: <https://git.kernel.org/stable/c/ad105cde6b261b8b05ec872fe7d1987417d7fe5a>
- patch: <https://git.kernel.org/stable/c/04d9d1fc428ac9f581d55118d67e0cb546701feb>

## 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-26864>

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