Skip to main content

Linux Kernel CVE-2024-26864

HIGH
Information Exposure (CWE-200)
2024-04-17 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local unprivileged shell
  2. Delivery
    Open DCCP or TCP socket
  3. Exploit
    Call connect() syscall to trigger ehash insertion
  4. Execution
    Engineer bhash2 slab allocation failure under memory pressure
  5. Persist
    sock_put() underflows refcnt on socket object
  6. Impact
    Exploit use-after-free kernel object for privilege escalation to root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a local user account with permission to call the connect() system call on a TCP or DCCP socket, which is granted to unprivileged users by default on Linux. The specific triggering condition is a bhash2 (bound socket hash 2) memory allocation failure occurring within __inet_hash_connect() immediately after check_established() has inserted the socket into ehash - this requires engineering memory pressure sufficient to cause kernel slab allocation failure at that exact point, limiting reliable exploitation. The DCCP protocol path (dccp_v6_connect) is confirmed by the syzbot call trace. Systems that restrict unprivileged socket creation via seccomp, network namespaces, or LSM deny-rules, or systems running with strict memory overcommit controls, significantly reduce exploitability. Remote exploitation is not possible - the vulnerability is entirely local and requires an existing user session.

Impact

CVSS 3.1 score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects local exploitation by a low-privileged user, consistent with the syzbot trace showing the bug is triggered via the standard connect() syscall without elevated rights. The H/H/H impact is justified by the kernel use-after-free potential that refcnt underflow enables, which on Linux can be weaponized for ring-0 privilege escalation. However, EPSS at 0.76% (51st percentile) indicates low real-world exploitation probability, and the vulnerability is absent from CISA KEV, suggesting it has not been operationalized by threat actors. The CWE-200 (Information Disclosure) tag is almost certainly incorrect for this memory safety bug - actual impact aligns with memory corruption and potential privilege escalation rather than data leakage. The AC:L assignment in the provided CVSS may overstate exploitability: triggering the vulnerable bhash2 allocation failure path reliably requires engineering specific memory pressure conditions, suggesting AC:H is more accurate for real exploitation scenarios. The net risk profile is: locally exploitable, meaningful kernel impact if exploited, but low probability of in-the-wild exploitation given the complexity of the triggering condition.

Exploit ScenarioDerived

A local unprivileged attacker with shell access opens a DCCP or TCP socket and calls connect(), targeting the __inet_hash_connect() code path under conditions that cause bhash2 memory allocation to fail - achievable by exhausting kernel slab memory. The resulting refcnt underflow frees the socket object while it remains referenced in the hash table, producing a use-after-free condition that a skilled kernel exploit developer could leverage to overwrite kernel function pointers or escalate privileges to root. No public proof-of-concept exploit exists at time of analysis; the syzbot reproducer confirms the crash but is a fuzzing harness rather than a weaponized exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Aug 04, 2026

Reference count underflow in Linux kernel's __inet_hash_connect() corrupts socket lifecycle state, potentially enabling local privilege escalation via use-after-free. The bug was introduced by a prior fix (commit 66b60b0c8c4a) in the TCP/DCCP networking stack: when bhash2 allocation fails after check_established(), the error-revert path calls sk_nulls_add_node_rcu() - which bumps refcnt - instead of __sk_nulls_add_node_rcu(), so the subsequent sock_put() underflows the counter, leaking the socket object. No public exploit exists and this is not in CISA KEV, but the local CVSS 7.8 (H/H/H impact) reflects the kernel memory corruption potential arising from the refcnt mismanagement, confirmed by syzbot on kernel 6.8.0-rc6.

Earlier versions of this analysis (2)
v2 Aug 04, 2026 - 13:18 cvss changed CVSS 7.8

Reference count underflow in the Linux kernel's TCP socket connection code (__inet_hash_connect()) can be triggered locally by a low-privileged user when bhash2 allocation fails during connection setup, corrupting kernel memory through a leaked socket object. Affected kernels include versions up to at least 6.8.0-rc6, confirmed via syzbot reproduction on that exact build. No public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV; EPSS is 0.76% (51st percentile), though reachability via an unprivileged connect() syscall makes this a credible local privilege escalation path on unpatched systems.

v1 Aug 04, 2026 - 13:18 cvss changed CVSS 7.8

Reference count underflow in the Linux kernel's TCP socket hash connect path (__inet_hash_connect()) allows a local low-privileged attacker to trigger socket memory leaks and potential use-after-free conditions. The flaw stems from a faulty correction introduced in commit 66b60b0c8c4a: when bhash2 allocation fails after check_established() has already inserted a socket into the ehash table without incrementing its reference count, the rollback path incorrectly calls sock_put(), driving the refcount below zero. Syzbot confirmed this via a kernel warning in sk_nulls_del_node_init_rcu(). No public exploit code exists and CISA KEV does not list this vulnerability; EPSS probability stands at 0.76% (51st percentile), consistent with a low-exploitation-likelihood kernel bug.

RemediationAI

Apply the upstream kernel stable patches: 04d9d1fc428ac9f581d55118d67e0cb546701feb, 1b20e61d36f490319d3gbdedd410155232ab5190, 856baaa100cd288d3685eedae9a129c996e7e755, 86d9b040421bbd26425f5a3edc226f57ecdecbfe, and ad105cde6b261b8b05ec872fe7d1987417d7fe5a, all accessible at https://git.kernel.org/stable/c/. Linux distribution vendors are expected to backport these fixes; check vendor-specific kernel security channels for patched package versions. No configuration option exists to disable the affected code path without eliminating TCP/DCCP networking, so patching is the only definitive fix. As a compensating control where patching is delayed, restrict local user access using seccomp profiles or LSM policies (AppArmor/SELinux) to deny the connect() syscall for untrusted workloads - this prevents triggering the vulnerable code path but may break legitimate socket use in constrained environments.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in net/ipv4/inet_hashtables.c within __inet_hash_connect(), which manages TCP and DCCP socket insertion into the kernel's established hash table (ehash) during connection setup. The function check_established() inserts a socket into ehash without holding an additional reference count. A prior fix (commit 66b60b0c8c4a) added an ehash revert path for bhash2 allocation failures, but incorrectly used sk_nulls_add_node_rcu() - which increments refcnt - rather than __sk_nulls_add_node_rcu() which does not. When sock_put() is called to release the spuriously incremented reference, the counter underflows, producing a dangling socket pointer. Affected products are Linux kernel versions across multiple stable branches per CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*. The NVD CWE tag is CWE-200 (Information Disclosure), which appears misclassified - the root cause is a reference counting error (structurally closer to CWE-911) with memory safety consequences that go beyond disclosure.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

AC:H reflects the requirement to engineer a bhash2 memory allocation failure at a specific code point; all other metrics align with local low-privilege kernel memory corruption.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

6
Analysis Updated
Aug 04, 2026 - 13:19 vuln.today
v3 - CVSS changed
Analysis Updated
Aug 04, 2026 - 13:18 vuln.today
v2 - CVSS changed
Analysis Updated
Aug 04, 2026 - 13:18 vuln.today
v1 - CVSS changed
Severity Changed
Aug 04, 2026 - 11:23 NVD
MEDIUM HIGH
CVSS changed
Aug 04, 2026 - 11:23 NVD
5.9 (MEDIUM) 7.8 (HIGH)
CVE Published
Apr 17, 2024 - 11:15 cve.org
MEDIUM 5.9

DescriptionCVE.org

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>

Executive ViewAI

Why It Matters

A kernel memory corruption vulnerability in Linux systems (CVE-2024-26864, CVSS 7.8) permits unauthorized privilege escalation from limited local accounts to full system access. Organizations operating shared infrastructure, development systems, or multi-tenant environments face heightened risk; attackers with local access can compromise system integrity and access protected data. Vendor patch is available and requires immediate deployment.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 49% exploitable
Prevalence
Ubiquitous
Linux kernel underlies the vast majority of servers, cloud infrastructure, and embedded systems globally.
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy