CVE & CISA-KEV Catalog

CVE-2025-22077

CRITICAL
9.8
CVSS v3
NVD

Description

In the Linux kernel, the following vulnerability has been resolved: Revert "smb: client: fix TCP timers deadlock after rmmod" This reverts commit e9f2517a3e18a54a3943c098d2226b245d488801. Commit e9f2517a3e18 ("smb: client: fix TCP timers deadlock after rmmod") is intended to fix a null-ptr-deref in LOCKDEP, which is mentioned as CVE-2024-54680, but is actually did not fix anything; The issue can be reproduced on top of it. [0] Also, it reverted the change by commit ef7134c7fc48 ("smb: client: Fix use-after-free of network namespace.") and introduced a real issue by reviving the kernel TCP socket. When a reconnect happens for a CIFS connection, the socket state transitions to FIN_WAIT_1. Then, inet_csk_clear_xmit_timers_sync() in tcp_close() stops all timers for the socket. If an incoming FIN packet is lost, the socket will stay at FIN_WAIT_1 forever, and such sockets could be leaked up to net.ipv4.tcp_max_orphans. Usually, FIN can be retransmitted by the peer, but if the peer aborts the connection, the issue comes into reality. I warned about this privately by pointing out the exact report [1], but the bogus fix was finally merged. So, we should not stop the timers to finally kill the connection on our side in that case, meaning we must not use a kernel socket for TCP whose sk->sk_net_refcnt is 0. The kernel socket does not have a reference to its netns to make it possible to tear down netns without cleaning up every resource in it. For example, tunnel devices use a UDP socket internally, but we can destroy netns without removing such devices and let it complete during exit. Otherwise, netns would be leaked when the last application died. However, this is problematic for TCP sockets because TCP has timers to close the connection gracefully even after the socket is close()d. The lifetime of the socket and its netns is different from the lifetime of the underlying connection. If the socket user does not maintain the netns lifetime, the timer could be fired after the socket is close()d and its netns is freed up, resulting in use-after-free. Actually, we have seen so many similar issues and converted such sockets to have a reference to netns. That's why I converted the CIFS client socket to have a reference to netns (sk->sk_net_refcnt == 1), which is somehow mentioned as out-of-scope of CIFS and technically wrong in e9f2517a3e18, but **is in-scope and right fix**. Regarding the LOCKDEP issue, we can prevent the module unload by bumping the module refcount when switching the LOCKDDEP key in sock_lock_init_class_and_name(). [2] For a while, let's revert the bogus fix. Note that now we can use sk_net_refcnt_upgrade() for the socket conversion, but I'll do so later separately to make backport easy.

How to fix

Remediation Available
bpftoolAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
bpftool-debuginfoAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-develAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-headersAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-libbpfAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-libbpf-debuginfoAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-libbpf-develAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-libbpf-staticAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-livepatch-6.12.25-32.101Amazon
Fixed in:0:1.0-0.amzn2023
Fixed in:0:1.0-0.amzn2023
kernel-modules-extra-commonAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-toolsAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-tools-debuginfoAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel-tools-develAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel6.12Amazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel6.12-debuginfoAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
kernel6.12-debuginfo-common-aarch64Amazon
Fixed in:0:6.12.25-32.101.amzn2023
kernel6.12-debuginfo-common-x86_64Amazon
Fixed in:0:6.12.25-32.101.amzn2023
kernel6.12-modules-extraAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
perf6.12Amazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
perf6.12-debuginfoAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
python3-perf6.12Amazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
python3-perf6.12-debuginfoAmazon
Fixed in:0:6.12.25-32.101.amzn2023
Fixed in:0:6.12.25-32.101.amzn2023
linuxDebian
Fixed in:6.12.25-1CVE-2025-22077
Fixed in:6.12.25-1CVE-2025-22077

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.37%probability of exploitation in 30 days
30thpercentile

Low risk: more likely to be exploited than 30% of all known CVEs.

References

Related Vulnerabilities

Other CWE-667 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2019-10072High7.573%-Fix
CVE-2002-1850High7.517%-Fix
CVE-2009-2699High7.514%-Fix
CVE-2004-0174High7.512%--
CVE-2009-4272High7.511%--
CVE-2020-24606High8.65.2%-Fix

Common questions

How do I fix CVE-2025-22077?

Published advisories record a fix for 23 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2025-22077 being actively exploited?

Not that we know of. CVE-2025-22077 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.37% is the estimated probability that it will be exploited in the next 30 days. That is higher than 30% of all scored CVEs.

How severe is CVE-2025-22077?

CVE-2025-22077 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2025-22077 affect?

Published advisories record a fix for bpftool (Amazon), bpftool-debuginfo (Amazon), kernel-devel (Amazon), kernel-headers (Amazon), and 19 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2025-22077
CVE-2025-22077 severity badge

Markdown

[![CVE-2025-22077](https://tridentstack.com/cve/badge/CVE-2025-22077.svg)](https://tridentstack.com/cve/CVE-2025-22077)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-22077"><img src="https://tridentstack.com/cve/badge/CVE-2025-22077.svg" alt="CVE-2025-22077"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-07-30.