{"id":"CVE-2025-38665","published":"2025-08-22T16:02:57Z","modified":"2026-11-05T21:12:51Z","title":"can: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncan: netlink: can_changelink(): fix NULL pointer deref of struct can_priv::do_set_mode\n\nAndrei Lalaev reported a NULL pointer deref when a CAN device is\nrestarted from Bus Off and the driver does not implement the struct\ncan_priv::do_set_mode callback.\n\nThere are 2 code path that call struct can_priv::do_set_mode:\n- directly by a manual restart from the user space, via\n  can_changelink()\n- delayed automatic restart after bus off (deactivated by default)\n\nTo prevent the NULL pointer deference, refuse a manual restart or\nconfigure the automatic restart delay in can_changelink() and report\nthe error via extack to user space.\n\nAs an additional safety measure let can_restart() return an error if\ncan_priv::do_set_mode is not set instead of dereferencing it\nunchecked.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00176,"percentile":0.07163,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6bbcf37c5114926c99a1d1e6993a5b35689d2599","tags":[]},{"url":"https://git.kernel.org/stable/c/cf81a60a973358dea163f6b14062f17831ceb894","tags":[]},{"url":"https://git.kernel.org/stable/c/0ca816a96fdcf32644c80cbe7a82c7b6ce6ddda5","tags":[]},{"url":"https://git.kernel.org/stable/c/6acceb46180f9e160d4f0c56fcaf39ba562822ae","tags":[]},{"url":"https://git.kernel.org/stable/c/c1f3f9797c1f44a762e6f5f72520b2e520537b52","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]}],"priority":{"score":1.4,"factors":[{"name":"EPSS percentile","points":1.43}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 39549eef3587f1c1e8c65c88a2400d10fd30ea17, < 6bbcf37c5114926c99a1d1e6993a5b35689d2599",">= 39549eef3587f1c1e8c65c88a2400d10fd30ea17, < cf81a60a973358dea163f6b14062f17831ceb894",">= 39549eef3587f1c1e8c65c88a2400d10fd30ea17, < 0ca816a96fdcf32644c80cbe7a82c7b6ce6ddda5",">= 39549eef3587f1c1e8c65c88a2400d10fd30ea17, < 6acceb46180f9e160d4f0c56fcaf39ba562822ae",">= 39549eef3587f1c1e8c65c88a2400d10fd30ea17, < c1f3f9797c1f44a762e6f5f72520b2e520537b52"]},{"vendor":"Linux","product":"Linux","versions":["2.6.31"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T21:06:10.332419Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-25536","exploited":false,"provenance":"source"}}