# CVE-2024-26741: dccp/tcp: Unhash sk from ehash for tb2 alloc failure after check\_estalblished().

> 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, NVD) `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.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2024-04-03T17:00:26.276Z
- **Modified:** 2026-06-17T07:18:13.497Z

## Who should check

- Anyone running Linux \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 729bc77af438a6e67914c97f6f3d3af8f72c0131; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 334a8348b2df26526f3298848ad6864285592caf; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< f8c4a6b850882bc47aaa864b720c7a2ee3102f39; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f
- Anyone running Linux 6.1

## Description

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

dccp/tcp: Unhash sk from ehash for tb2 alloc failure after check\_estalblished().

syzkaller reported a warning \[0\] in inet\_csk\_destroy\_sock() with no
repro.

  WARN\_ON(inet\_sk(sk)-\>inet\_num && !inet\_csk(sk)-\>icsk\_bind\_hash);

However, the syzkaller's log hinted that connect() failed just before
the warning due to FAULT\_INJECTION.  \[1\]

When connect() is called for an unbound socket, we search for an
available ephemeral port.  If a bhash bucket exists for the port, we
call \_\_inet\_check\_established() or \_\_inet6\_check\_established() to check
if the bucket is reusable.

If reusable, we add the socket into ehash and set inet\_sk(sk)-\>inet\_num.

Later, we look up the corresponding bhash2 bucket and try to allocate
it if it does not exist.

Although it rarely occurs in real use, if the allocation fails, we must
revert the changes by check\_established().  Otherwise, an unconnected
socket could illegally occupy an ehash entry.

Note that we do not put tw back into ehash because sk might have
already responded to a packet for tw and it would be better to free
tw earlier under such memory presure.

\[0\]:
WARNING: CPU: 0 PID: 350830 at net/ipv4/inet\_connection\_sock.c:1193 inet\_csk\_destroy\_sock (net/ipv4/inet\_connection\_sock.c:1193)
Modules linked in:
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
RIP: 0010:inet\_csk\_destroy\_sock (net/ipv4/inet\_connection\_sock.c:1193)
Code: 41 5c 41 5d 41 5e e9 2d 4a 3d fd e8 28 4a 3d fd 48 89 ef e8 f0 cd 7d ff 5b 5d 41 5c 41 5d 41 5e e9 13 4a 3d fd e8 0e 4a 3d fd \<0f\> 0b e9 61 fe ff ff e8 02 4a 3d fd 4c 89 e7 be 03 00 00 00 e8 05
RSP: 0018:ffffc9000b21fd38 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000009e78 RCX: ffffffff840bae40
RDX: ffff88806e46c600 RSI: ffffffff840bb012 RDI: ffff88811755cca8
RBP: ffff88811755c880 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000009e78 R11: 0000000000000000 R12: ffff88811755c8e0
R13: ffff88811755c892 R14: ffff88811755c918 R15: 0000000000000000
FS:  00007f03e5243800(0000) GS:ffff88811ae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32f21000 CR3: 0000000112ffe001 CR4: 0000000000770ef0
PKRU: 55555554
Call Trace:
 \<TASK\>
 ? inet\_csk\_destroy\_sock (net/ipv4/inet\_connection\_sock.c:1193)
 dccp\_close (net/dccp/proto.c:1078)
 inet\_release (net/ipv4/af\_inet.c:434)
 \_\_sock\_release (net/socket.c:660)
 sock\_close (net/socket.c:1423)
 \_\_fput (fs/file\_table.c:377)
 \_\_fput\_sync (fs/file\_table.c:462)
 \_\_x64\_sys\_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539)
 do\_syscall\_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83)
 entry\_SYSCALL\_64\_after\_hwframe (arch/x86/entry/entry\_64.S:129)
RIP: 0033:0x7f03e53852bb
Code: 03 00 00 00 0f 05 48 3d 00 f0 ff ff 77 41 c3 48 83 ec 18 89 7c 24 0c e8 43 c9 f5 ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 \<48\> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 c9 f5 ff 8b 44
RSP: 002b:00000000005dfba0 EFLAGS: 00000293 ORIG\_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f03e53852bb
RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 000000000000167c
R10: 0000000008a79680 R11: 0000000000000293 R12: 00007f03e4e43000
R13: 00007f03e4e43170 R14: 00007f03e4e43178 R15: 00007f03e4e43170
 \</TASK\>

\[1\]:
FAULT\_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 0 PID: 350833 Comm: syz-executor.1 Not tainted 6.7.0-12272-g2121c43f88f5 \#9
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\_lvl (lib/dump\_stack.c:107 (discriminator 1))
 should\_fail\_ex (lib/fault-inject.c:52 lib/fault-inject.c:153)
 should\_failslab (mm/slub.c:3748)
 kmem\_cache\_alloc (mm/slub.c:3763 mm/slub.c:3842 mm/slub.c:3867)
 inet\_bind2\_bucket\_create 
---truncated---

## Affected and fixed versions

- Linux: \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 729bc77af438a6e67914c97f6f3d3af8f72c0131; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 334a8348b2df26526f3298848ad6864285592caf; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< f8c4a6b850882bc47aaa864b720c7a2ee3102f39; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-26741.md
Affected: Linux >= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, < 729bc77af438a6e67914c97f6f3d3af8f72c0131; >= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, < 334a8348b2df26526f3298848ad6864285592caf; >= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, < f8c4a6b850882bc47aaa864b720c7a2ee3102f39; >= 28044fc1d4953b07acec0da…
Fixed in: Linux 729bc77af438a6e67914c97f6f3d3af8f72c0131, Linux 334a8348b2df26526f3298848ad6864285592caf, Linux 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f

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

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

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

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

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

Linux \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 729bc77af438a6e67914c97f6f3d3af8f72c0131; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 334a8348b2df26526f3298848ad6864285592caf; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< f8c4a6b850882bc47aaa864b720c7a2ee3102f39; \>= 28044fc1d4953b07acec0da4d2fc4784c57ea6fb, \< 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f; Linux 6.1.

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

Yes. Fixed in Linux 729bc77af438a6e67914c97f6f3d3af8f72c0131, Linux 334a8348b2df26526f3298848ad6864285592caf, Linux 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f. Upgrade Linux to 66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f or later.

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

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/729bc77af438a6e67914c97f6f3d3af8f72c0131>
- patch: <https://git.kernel.org/stable/c/334a8348b2df26526f3298848ad6864285592caf>
- patch: <https://git.kernel.org/stable/c/f8c4a6b850882bc47aaa864b720c7a2ee3102f39>
- patch: <https://git.kernel.org/stable/c/66b60b0c8c4a163b022a9f0ad6769b0fd3dc662f>

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

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