{"id":"CVE-2025-40149","aliases":["CVE-2025-40149"],"related":[],"kind":"vulnerability","state":"published","title":"tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().\n\nget_netdev_for_sock() is called during setsockopt(),\nso not under RCU.\n\nUsing sk_dst_get(sk)->dev could trigger UAF.\n\nLet's use __sk_dst_get() and dst_dev_rcu().\n\nNote that the only ->ndo_sk_get_lower_dev() user is\nbond_sk_get_lower_dev(), which uses RCU.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().\n\nget_netdev_for_sock() is called during setsockopt(),\nso not under RCU.\n\nUsing sk_dst_get(sk)->dev could trigger UAF.\n\nLet's use __sk_dst_get() and dst_dev_rcu().\n\nNote that the only ->ndo_sk_get_lower_dev() user is\nbond_sk_get_lower_dev(), which uses RCU.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ntls: Usar __sk_dst_get() y dst_dev_rcu() en get_netdev_for_sock().\n\nget_netdev_for_sock() es llamada durante setsockopt(), por lo tanto, no bajo RCU.\n\nUsar sk_dst_get(sk)->dev podría desencadenar UAF.\n\nUsemos __sk_dst_get() y dst_dev_rcu().\n\nNótese que el único usuario de ->ndo_sk_get_lower_dev() es bond_sk_get_lower_dev(), el cual usa RCU.","source":"nvd"}],"published":"2025-11-12T10:23:27.122Z","modified":"2026-11-10T13:17:55.067Z","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"},{"scorer":"NVD","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":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"e8f69799810c32dd40c6724d829eccc70baad07f","fixed":"2b1bef126bbb8d0da51491357559126d567c1dee","status":"affected"},{"type":"git","introduced":"e8f69799810c32dd40c6724d829eccc70baad07f","fixed":"e37ca0092ddace60833790b4ad7a390408fb1be9","status":"affected"},{"type":"git","introduced":"e8f69799810c32dd40c6724d829eccc70baad07f","fixed":"13159c7125636371543a82cb7bbae00ab36730cc","status":"affected"},{"type":"git","introduced":"e8f69799810c32dd40c6724d829eccc70baad07f","fixed":"f09cd209359a23f88d4f3fa3d2379d057027e53c","status":"affected"},{"type":"git","introduced":"e8f69799810c32dd40c6724d829eccc70baad07f","fixed":"feb474ddbf26b51f462ae2e60a12013bdcfc5407","status":"affected"},{"type":"git","introduced":"e8f69799810c32dd40c6724d829eccc70baad07f","fixed":"c65f27b9c3be2269918e1cbad6d8884741f835c5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.18","status":"unaffected"},{"type":"semver","introduced":"5.15.199","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.161","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.121","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.66","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"},{"ranges":[{"status":"affected","introduced":"4.18","fixed":"5.15.199"},{"status":"affected","introduced":"5.16","fixed":"6.1.161"},{"status":"affected","introduced":"6.2","fixed":"6.6.121"},{"status":"affected","introduced":"6.7","fixed":"6.12.66"},{"status":"affected","introduced":"6.13","fixed":"6.17.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2b1bef126bbb8d0da51491357559126d567c1dee","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e37ca0092ddace60833790b4ad7a390408fb1be9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13159c7125636371543a82cb7bbae00ab36730cc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f09cd209359a23f88d4f3fa3d2379d057027e53c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/feb474ddbf26b51f462ae2e60a12013bdcfc5407","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c65f27b9c3be2269918e1cbad6d8884741f835c5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:57:20.902Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40149","url":"https://www.cve.org/CVERecord?id=CVE-2025-40149","licence":"CVE Terms of Use","modified":"2026-11-10T12:37:41.180Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40149","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40149","licence":"Public domain","modified":"2026-11-10T13:17:55.067Z"}],"updatedAt":"2026-11-25T22:59:07.555Z","epss":{"score":0.00233,"percentile":0.08525,"date":"2026-11-30T12:00:22.000Z"}}