{
  "id": "CVE-2025-40139",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40139",
  "published_at": "2025-11-12T10:23:24.216Z",
  "title": "smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().\n\nsmc_clc_prfx_set() is called during connect() and not under RCU\nnor RTNL.\n\nUsing sk_dst_get(sk)-\u003edev could trigger UAF.\n\nLet's use __sk_dst_get() and dev_dst_rcu() under rcu_read_lock()\nafter kernel_getsockname().\n\nNote that the returned value of smc_clc_prfx_set() is not used\nin the caller.\n\nWhile at it, we change the 1st arg of smc_clc_prfx_set[46]_rcu()\nnot to touch dst there.",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= a046d57da19f812216f393e7c535f5858f793ac3, \u003c 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde",
          "\u003e= a046d57da19f812216f393e7c535f5858f793ac3, \u003c 80d1fd39f4e37d836655e9f7ffccaf78925049bf",
          "\u003e= a046d57da19f812216f393e7c535f5858f793ac3, \u003c 956c57daba55cf9ed25d9f2512883b8a1a927599",
          "\u003e= a046d57da19f812216f393e7c535f5858f793ac3, \u003c 0736993bfe5c7a9c744ae3fac62d769dfdae54e1",
          "\u003e= a046d57da19f812216f393e7c535f5858f793ac3, \u003c 935d783e5de9b64587f3adb25641dd8385e64ddb"
        ],
        "fixed_in": [
          "5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde",
          "80d1fd39f4e37d836655e9f7ffccaf78925049bf",
          "956c57daba55cf9ed25d9f2512883b8a1a927599",
          "0736993bfe5c7a9c744ae3fac62d769dfdae54e1",
          "935d783e5de9b64587f3adb25641dd8385e64ddb"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.11"
        ],
        "fixed_in": [
          "0",
          "6.1.187",
          "6.6.156",
          "6.12.108",
          "6.17.3",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde or 80d1fd39f4e37d836655e9f7ffccaf78925049bf or 956c57daba55cf9ed25d9f2512883b8a1a927599 or 0736993bfe5c7a9c744ae3fac62d769dfdae54e1 or 935d783e5de9b64587f3adb25641dd8385e64ddb or later.",
      "Upgrade Linux to 0 or 6.1.187 or 6.6.156 or 6.12.108 or 6.17.3 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
