{"id":"CVE-2025-40139","aliases":["CVE-2025-40139"],"related":[],"kind":"vulnerability","state":"published","title":"smc: Use __sk_dst_get() and dst_dev_rcu() in in smc_clc_prfx_set().","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsmc: Usar __sk_dst_get() y dst_dev_rcu() en smc_clc_prfx_set().\n\nsmc_clc_prfx_set() es llamada durante connect() y no bajo RCU ni RTNL.\n\nUsar sk_dst_get(sk)->dev podría desencadenar UAF.\n\nUsemos __sk_dst_get() y dev_dst_rcu() bajo rcu_read_lock() después de kernel_getsockname().\n\nNótese que el valor devuelto de smc_clc_prfx_set() no es usado en la función llamadora.\n\nAprovechando la ocasión, cambiamos el primer argumento de smc_clc_prfx_set[46]_rcu() para no tocar dst allí.","source":"nvd"}],"published":"2025-11-12T10:23:24.216Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a046d57da19f812216f393e7c535f5858f793ac3","fixed":"5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde","status":"affected"},{"type":"git","introduced":"a046d57da19f812216f393e7c535f5858f793ac3","fixed":"80d1fd39f4e37d836655e9f7ffccaf78925049bf","status":"affected"},{"type":"git","introduced":"a046d57da19f812216f393e7c535f5858f793ac3","fixed":"956c57daba55cf9ed25d9f2512883b8a1a927599","status":"affected"},{"type":"git","introduced":"a046d57da19f812216f393e7c535f5858f793ac3","fixed":"0736993bfe5c7a9c744ae3fac62d769dfdae54e1","status":"affected"},{"type":"git","introduced":"a046d57da19f812216f393e7c535f5858f793ac3","fixed":"935d783e5de9b64587f3adb25641dd8385e64ddb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.11","status":"unaffected"},{"type":"semver","introduced":"6.1.187","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.156","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.108","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5a2fccc4b32c13ddde3676f9e15e1a9baa7d6fde","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80d1fd39f4e37d836655e9f7ffccaf78925049bf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/956c57daba55cf9ed25d9f2512883b8a1a927599","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0736993bfe5c7a9c744ae3fac62d769dfdae54e1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/935d783e5de9b64587f3adb25641dd8385e64ddb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:57:12.990Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40139","url":"https://www.cve.org/CVERecord?id=CVE-2025-40139","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:38.627Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40139","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40139","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.552Z","epss":{"score":0.00165,"percentile":0.06006,"date":"2026-12-01T12:00:22.000Z"}}