{"id":"CVE-2025-40149","title":"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 c…","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 c…","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-416"],"vendor":"linux","product":"linux_kernel","affected":["linux_kernel >= 4.18, < 5.15.199","linux_kernel >= 5.16, < 6.1.161","linux_kernel >= 6.2, < 6.6.121","linux_kernel >= 6.7, < 6.12.66","linux_kernel >= 6.13, < 6.17.3"],"patched":["linux_kernel 6.17.3"],"published":"2025-11-12","updated":"2026-10-15","sourceUpdated":"2026-10-15T02:18:06.117","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-40149","references":[{"url":"https://git.kernel.org/stable/c/13159c7125636371543a82cb7bbae00ab36730cc","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/2b1bef126bbb8d0da51491357559126d567c1dee","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c65f27b9c3be2269918e1cbad6d8884741f835c5","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e37ca0092ddace60833790b4ad7a390408fb1be9","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f09cd209359a23f88d4f3fa3d2379d057027e53c","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/feb474ddbf26b51f462ae2e60a12013bdcfc5407","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-40149.json"},{"url":"https://access.redhat.com/security/cve/CVE-2025-40149"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2414466"},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40149"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40149"},{"url":"https://lore.kernel.org/linux-cve-announce/2025111257-CVE-2025-40149-2c48@gregkh/T"},{"url":"https://access.redhat.com/errata/RHSA-2026:64767"},{"url":"https://access.redhat.com/errata/RHSA-2026:67471"}],"tags":["nvd","csaf","vex","red-hat","cve.org","score-dispute"],"epss":0.00172,"epssPercentile":0.06562,"scores":{"nvd":7.8,"vendor":5,"cna":7.8},"ingestedAt":"2026-09-08T15:33:26.996Z","ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:57:20.902495Z"},"slug":"CVE-2025-40149","body":"## Overview\n\nIn 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.\n\n## Affected\n\n- `linux_kernel >= 4.18, < 5.15.199`\n- `linux_kernel >= 5.16, < 6.1.161`\n- `linux_kernel >= 6.2, < 6.6.121`\n- `linux_kernel >= 6.7, < 6.12.66`\n- `linux_kernel >= 6.13, < 6.17.3`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `linux_kernel 6.17.3`\n\n## Vendor advisories\n\n- **RHSA-2026:64767** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream EUS (v. 10.0), Red Hat Enterprise Linux BaseOS EUS (v. 10.0), Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0), Red Hat Enterprise Linux Real Time for NFV EUS (v. 10.0), Red Hat Enterprise Linux Real Time EUS (v. 10.0) · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:64767)\n- **RHSA-2026:67471** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10), Red Hat Enterprise Linux Real Time for NFV (v. 10), Red Hat Enterprise Linux Real Time (v. 10) · released 2026-09-15 · [advisory](https://access.redhat.com/errata/RHSA-2026:67471)\n- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · updated 2026-09-15 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-40149.json)","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[{"seq":221567,"id":"CVE-2025-40149","ts":1792035267628,"field":"cvss","old":"5","new":"7.8"},{"seq":221566,"id":"CVE-2025-40149","ts":1792035267628,"field":"severity","old":"medium","new":"high"},{"seq":203899,"id":"CVE-2025-40149","ts":1789490215977,"field":"cvss","old":"7.8","new":"5"},{"seq":203898,"id":"CVE-2025-40149","ts":1789490215977,"field":"severity","old":"high","new":"medium"}]}