{"id":"CVE-2026-80995","published":"2026-09-11T19:42:50Z","modified":"2026-10-19T08:46:19Z","title":"net: mctp: hold a reference to the route device in mctp_route_lookup()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: mctp: hold a reference to the route device in mctp_route_lookup()\n\nmctp_route_lookup() uses rt->dev without holding a reference on it.\nmctp_route_lookup_single() returns the route under RCU only, so the\nroute's device can be torn down concurrently: mctp_dev_put() drops the\nlast reference and synchronously kfree()s mdev->addrs.  mctp_dev_saddr()\nthen reads rt->dev->addrs[0], giving a use-after-free reachable by an\nunprivileged local AF_MCTP user on the receive/forwarding path (no\nCAP_NET_RAW required):\n\n  BUG: KASAN: slab-use-after-free in mctp_route_lookup\n  Read of size 1 at addr ... by task mctp_uaf/...\n   mctp_route_lookup\n   mctp_pkttype_receive\n  Freed by task ...:\n   kfree\n   mctp_dev_put\n   mctp_dev_notify\n\nIn the same window mctp_dst_from_route() -> mctp_dev_hold() also\nincrements a refcount that has already reached zero\n(\"refcount_t: addition on 0 ... mctp_dev_hold\").\n\nThis reintroduces the use-after-free class of CVE-2023-3439: the source\naddress lookup was moved ahead of the point where the destination takes\nits device reference.\n\nTake a reference with refcount_inc_not_zero() before touching rt->dev,\nskip a device that is already dead, and drop the reference once the\ndestination has taken its own.","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.05696,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/cc561f8af25586300c2f9d285babb163b866b293","tags":[]},{"url":"https://git.kernel.org/stable/c/408da1df18116c971c3392e21e50586688cd3fbf","tags":[]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":1.14},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 22cb45afd221b9e4f2a1dcc74a8ff645b7293aa1, < cc561f8af25586300c2f9d285babb163b866b293",">= 22cb45afd221b9e4f2a1dcc74a8ff645b7293aa1, < 408da1df18116c971c3392e21e50586688cd3fbf"]},{"vendor":"Linux","product":"Linux","versions":["7.1"]}],"euvd":{"id":"EUVD-2026-76318","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-linux-cve-2023-3439","parents":[{"from":"CVE-2023-3439","to":"CVE-2026-80995","relation":"regression","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"regression","quote":"This reintroduces the use-after-free class of CVE-2023-3439: the source address lookup was moved ahead of the point where the destination takes its device reference.","from":"CVE.org","in":"CVE-2026-80995"}]}]}}