Skip to content
Heist/ feed
High

mptcp: fix NULL pointer in can_accept_new_subflow

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: mptcp: fix NULL pointer in can_accept_new_subflow When testing valkey benchmark tool with MPTCP, the kernel panics in 'mptcp_can_accept_new_subflow' because subflow_req->msk is NULL. Call trace: mptcp_can_accept_new_subflow (./net/mptcp/subflow.c:63 (discriminator 4)) (P) subflow_syn_recv_sock (./net/mptcp/subflow.c:854) tcp_check_req (./net/ipv4/tcp_minisocks.c:863) tcp_v4_rcv (./net/ipv4/tcp_ipv4.c:2268) ip_protocol_deliver_rcu (./net/ipv4/ip_input.c:207) ip_local_deliver_finish (./net/ipv4/ip_input.c:234) ip_local_deliver (./net/ipv4/ip_input.c:254) ip_rcv_finish (./net/ipv4/ip_input.c:449) ... According to the debug log, the same req received two SYN-ACK in a very short time, very likely because the client retransmits the syn ack due to multiple reasons. Even if the packets are transmitted with a relevant time interval, they can be processed by the server on different CPUs concurrently). The 'subflow_req->msk' ownership is transferred to the subflow the first, and there will be a risk of a null pointer dereference here. This patch fixes this issue by moving the 'subflow_req->msk' under the `own_req == true` conditional. Note that the !msk check in subflow_hmac_valid() can be dropped, because the same check already exists under the own_req mpj branch where the code has been moved to.

Announced Group revision 1
Original source ↗

CVE-2025-23145

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-23145

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": "9466a1ccebbe54ac57fb8a89c2b4b854826546a8",
        "lessThan": "8cf7fef1bb2ffea7792bcbf71ca00216cecc725d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9466a1ccebbe54ac57fb8a89c2b4b854826546a8",
        "lessThan": "b3088bd2a6790c8efff139d86d7a9d0b1305977b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9466a1ccebbe54ac57fb8a89c2b4b854826546a8",
        "lessThan": "855bf0aacd51fced11ea9aa0d5101ee0febaeadb",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9466a1ccebbe54ac57fb8a89c2b4b854826546a8",
        "lessThan": "7f9ae060ed64aef8f174c5f1ea513825b1be9af1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9466a1ccebbe54ac57fb8a89c2b4b854826546a8",
        "lessThan": "dc81e41a307df523072186b241fa8244fecd7803",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9466a1ccebbe54ac57fb8a89c2b4b854826546a8",
        "lessThan": "efd58a8dd9e7a709a90ee486a4247c923d27296f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9466a1ccebbe54ac57fb8a89c2b4b854826546a8",
        "lessThan": "4b2649b9717678aeb097893cc49f59311a1ecab0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9466a1ccebbe54ac57fb8a89c2b4b854826546a8",
        "lessThan": "443041deb5ef6a1289a99ed95015ec7442f141dc",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "net/mptcp/subflow.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.9"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.9",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.237",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.181",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.135",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.88",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.24",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.13.12",
        "versionType": "semver",
        "lessThanOrEqual": "6.13.*"
      },
      {
        "status": "unaffected",
        "version": "6.14.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.14.*"
      },
      {
        "status": "unaffected",
        "version": "6.15",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "net/mptcp/subflow.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-23145

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

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