Skip to content
Heist/ feed
Critical

Revert "smb: client: fix TCP timers deadlock after rmmod"

Type: advisorySource: Official CVE List1 source record

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 socke

Announced Group revision 1
Original source ↗

CVE-2025-22077

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-22077

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "906807c734ed219dcb2e7bbfde5c4168ed72a3d0",
        "lessThan": "8dbf060480236877703bff0106fc984576184d11",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "127e907e11ccd54b59bb78fc22c43ccb76c71079",
        "lessThan": "f761eeefd531e6550cd3a5c047835b4892acb00d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e9f2517a3e18a54a3943c098d2226b245d488801",
        "lessThan": "4b6f6bf1bde8d6045c389fda8d21c304dfe49384",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "e9f2517a3e18a54a3943c098d2226b245d488801",
        "lessThan": "95d2b9f693ff2a1180a23d7d59acc0c4e72f4c41",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "6.6.68",
        "lessThan": "6.6.88",
        "versionType": "semver"
      },
      {
        "status": "affected",
        "version": "6.12.7",
        "lessThan": "6.12.25",
        "versionType": "semver"
      }
    ],
    "programFiles": [
      "fs/smb/client/connect.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.13"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.13",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.88",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.25",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.14.4",
        "versionType": "semver",
        "lessThanOrEqual": "6.14.*"
      },
      {
        "status": "unaffected",
        "version": "6.15",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/smb/client/connect.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-22077

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#30459 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement