{"id":"CVE-2025-40149","published":"2025-11-12T10:23:27Z","modified":"2026-11-10T12:37:41Z","title":"tls: Use __sk_dst_get() and dst_dev_rcu() in get_netdev_for_sock().","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","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.00172,"percentile":0.06793,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/2b1bef126bbb8d0da51491357559126d567c1dee","tags":[]},{"url":"https://git.kernel.org/stable/c/e37ca0092ddace60833790b4ad7a390408fb1be9","tags":[]},{"url":"https://git.kernel.org/stable/c/13159c7125636371543a82cb7bbae00ab36730cc","tags":[]},{"url":"https://git.kernel.org/stable/c/f09cd209359a23f88d4f3fa3d2379d057027e53c","tags":[]},{"url":"https://git.kernel.org/stable/c/feb474ddbf26b51f462ae2e60a12013bdcfc5407","tags":[]},{"url":"https://git.kernel.org/stable/c/c65f27b9c3be2269918e1cbad6d8884741f835c5","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.36},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= e8f69799810c32dd40c6724d829eccc70baad07f, < 2b1bef126bbb8d0da51491357559126d567c1dee",">= e8f69799810c32dd40c6724d829eccc70baad07f, < e37ca0092ddace60833790b4ad7a390408fb1be9",">= e8f69799810c32dd40c6724d829eccc70baad07f, < 13159c7125636371543a82cb7bbae00ab36730cc",">= e8f69799810c32dd40c6724d829eccc70baad07f, < f09cd209359a23f88d4f3fa3d2379d057027e53c",">= e8f69799810c32dd40c6724d829eccc70baad07f, < feb474ddbf26b51f462ae2e60a12013bdcfc5407",">= e8f69799810c32dd40c6724d829eccc70baad07f, < c65f27b9c3be2269918e1cbad6d8884741f835c5"]},{"vendor":"Linux","product":"Linux","versions":["4.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:57:20.902495Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-124934","exploited":false,"provenance":"source"}}