{"id":"CVE-2025-40139","published":"2025-11-12T10:23:24Z","modified":"2026-10-15T22:02:38Z","title":"smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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)->dev 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00165,"percentile":0.05853,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde","tags":[]},{"url":"https://git.kernel.org/stable/c/80d1fd39f4e37d836655e9f7ffccaf78925049bf","tags":[]},{"url":"https://git.kernel.org/stable/c/956c57daba55cf9ed25d9f2512883b8a1a927599","tags":[]},{"url":"https://git.kernel.org/stable/c/0736993bfe5c7a9c744ae3fac62d769dfdae54e1","tags":[]},{"url":"https://git.kernel.org/stable/c/935d783e5de9b64587f3adb25641dd8385e64ddb","tags":[]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":1.17},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a046d57da19f812216f393e7c535f5858f793ac3, < 5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde",">= a046d57da19f812216f393e7c535f5858f793ac3, < 80d1fd39f4e37d836655e9f7ffccaf78925049bf",">= a046d57da19f812216f393e7c535f5858f793ac3, < 956c57daba55cf9ed25d9f2512883b8a1a927599",">= a046d57da19f812216f393e7c535f5858f793ac3, < 0736993bfe5c7a9c744ae3fac62d769dfdae54e1",">= a046d57da19f812216f393e7c535f5858f793ac3, < 935d783e5de9b64587f3adb25641dd8385e64ddb"]},{"vendor":"Linux","product":"Linux","versions":["4.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:57:12.990602Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-124944","exploited":false,"provenance":"source"}}