Skip to main content
Menu
CVEs

Linux kernel use-after-free in TCP TIME_WAIT teardown

CVE-2026-143292EUVD-2026-142942GHSA-F6V2-G7PH-97GHPublished December 3, 2026, updated

7.8HighCNA
Exploited
No known exploitation
Fix
Vendor patch: 068877fbd13041f01b9c20687a82c0773158b200, 3f4e42618b5c2cbeb4e36a7b7fb1047cced39bce, 0a987038ea68d3c14ea905c817855b2e58ace158
Who is exposed
Specific setups only

Summary

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

tcp: wait for TIME_WAIT teardown before freeing per-netns ehash

inet_twsk_kill() removes a TIME_WAIT socket from the established hash before it finishes using the ehash lock, hashinfo and bind tables, and before it drops the death-row reference. A running timer can therefore unhash its socket before inet_twsk_purge() reaches it. The purge cannot synchronize with that timer, and tcp_sk_exit_batch() can free the private ehash and hashinfo while inet_twsk_kill() is still using them.

An unprivileged reproducer using user and network namespaces, a private TCP ehash and a FIN_WAIT2 timer triggers a KASAN slab-use-after-free in inet_twsk_kill(). The allocation and free stacks point to inet_pernet_hashinfo_alloc() and inet_pernet_hashinfo_free().

Wait for an RCU grace period after purging the whole batch, if one netns in the batch uses a private ehash. TIME_WAIT removal runs with bottom halves disabled, so this also waits for removers that were already invisible to the purge. Keep the wait under tcp_exit_batch_mutex, before freeing any private hashinfo.

The same window exists with the shared tcp_hashinfo. There, the hashinfo memory stays valid, but tcp_sk_exit_batch() can decrement tcp_death_row.tw_refcount from 2 to 1 before inet_twsk_kill() drops its own reference. This triggers the WARN_ON_ONCE() in tcp_sk_exit_batch(), then a refcount_t "decrement hit 0" warning from inet_twsk_kill().

Adding a grace period for the shared case would be costly on busy hosts. It is not needed: struct net is freed by a later cleanup_net(), after the synchronize_rcu() in ops_undo_list(), so inet_twsk_kill() can safely drop the last tw_refcount reference itself. Use refcount_dec_if_one() and only warn if tw_refcount is not 1 after a grace period.

[edumazet: only call synchronize_net() if one netns in the batch uses a private ehash, use refcount_dec_if_one() to avoid a false WARN with the shared ehash]

Who should check

Teams running the Linux kernel with a private per-netns TCP ehash (net.ipv4.tcp_child_ehash_entries), especially hosts letting unprivileged users create network namespaces

“a private TCP ehash and a FIN_WAIT2 timer”

git.kernel.org

What to do

  1. Check whether your setup matches what the bug needs.

    Linux kernel with a private per-netns TCP ehash in use (set via net.ipv4.tcp_child_ehash_entries)
  2. Apply the vendor's patch: 068877fbd13041f01b9c20687a82c0773158b200, 3f4e42618b5c2cbeb4e36a7b7fb1047cced39bce, 0a987038ea68d3c14ea905c817855b2e58ace158.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-143292 (tcp: wait for TIME_WAIT teardown before freeing per-netns ehash), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-143292 (entry last updated 2026-12-04):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 6.1
Vendor patches: 068877fbd13041f01b9c20687a82c0773158b200, 3f4e42618b5c2cbeb4e36a7b7fb1047cced39bce, 0a987038ea68d3c14ea905c817855b2e58ace158 (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=068877fbd13041f01b9c20687a82c0773158b200). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- Linux kernel with a private per-netns TCP ehash in use (set via net.ipv4.tcp_child_ehash_entries) (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=068877fbd13041f01b9c20687a82c0773158b200)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-143292 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-143292 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/068877fbd13041f01b9c20687a82c0773158b200
- https://git.kernel.org/stable/c/3f4e42618b5c2cbeb4e36a7b7fb1047cced39bce
- https://git.kernel.org/stable/c/0a987038ea68d3c14ea905c817855b2e58ace158
- https://git.kernel.org/stable/c/647b81ddefc6364290e67bf33c89d54971f8995e
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=068877fbd13041f01b9c20687a82c0773158b200
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-143292
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-143292"}.

Affected versions

cve.now Index

33Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure5/25Specific setups only
  • Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
  • Severity7.8/10CVSS 7.8
  • No patch0/5No signal

What would change the score

  • Would score about 83 if added to CISA KEV
  • Would score about 78 if CISA's SSVC rates exploitation active
  • Would score about 43 if CISA's SSVC rates it automatable

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated
  4. Posted on X by cve.now

Evidence 6

Questions about CVE-2026-143292

Is CVE-2026-143292 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

The bug is a use-after-free of the per-netns hashinfo in inet_twsk_kill(), which the advisory says can give a local unprivileged user host kernel privilege escalation through memory corruption and control-flow primitives. The fix makes the kernel wait for TIME_WAIT teardown before freeing the per-netns ehash.

Source: git.kernel.org, cve.org

Which versions are affected by CVE-2026-143292?

Linux: version 6.1.

Source: cve.now feed data

Am I affected, and how do I check?

Affected setups are Linux kernels with a private per-netns TCP ehash in use, set via net.ipv4.tcp_child_ehash_entries. To check a system, look at the value of that sysctl, for example with sysctl net.ipv4.tcp_child_ehash_entries. No affected version range is named in the checked facts.

Source: git.kernel.org, cve.org

How do I fix CVE-2026-143292?

Apply the patches named for this vulnerability: 068877fbd13041f01b9c20687a82c0773158b200, 3f4e42618b5c2cbeb4e36a7b7fb1047cced39bce and 0a987038ea68d3c14ea905c817855b2e58ace158. No fixed kernel version is named in the checked facts.

Source: git.kernel.org, cve.org

No corrections so far. Something wrong on this page? Report an error.