{"id":72860,"date":"2025-11-03T15:45:12","date_gmt":"2025-11-03T12:15:12","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-40107-can-hi311x-fix-null-pointer-dereference-when-resuming-from-sleep-before-interface-was-enabled\/"},"modified":"2025-11-03T15:45:12","modified_gmt":"2025-11-03T12:15:12","slug":"cve-2025-40107-can-hi311x-fix-null-pointer-dereference-when-resuming-from-sleep-before-interface-was-enabled","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-40107-can-hi311x-fix-null-pointer-dereference-when-resuming-from-sleep-before-interface-was-enabled\/","title":{"rendered":"CVE-2025-40107 &#8211; can: hi311x: fix null pointer dereference when resuming from sleep before interface was enabled"},"content":{"rendered":"<p>CVE ID : CVE-2025-40107<\/p>\n<p>Published :  Nov. 3, 2025, 12:15 p.m. | 1\u00a0hour, 12\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>can: hi311x: fix null pointer dereference when resuming from sleep before interface was enabled<\/p>\n<p>This issue is similar to the vulnerability in the `mcp251x` driver,<br \/>\nwhich was fixed in commit 03c427147b2d (&#8220;can: mcp251x: fix resume from<br \/>\nsleep before interface was brought up&#8221;).<\/p>\n<p>In the `hi311x` driver, when the device resumes from sleep, the driver<br \/>\nschedules `priv-&gt;restart_work`. However, if the network interface was<br \/>\nnot previously enabled, the `priv-&gt;wq` (workqueue) is not allocated and<br \/>\ninitialized, leading to a null pointer dereference.<\/p>\n<p>To fix this, we move the allocation and initialization of the workqueue<br \/>\nfrom the `hi3110_open` function to the `hi3110_can_probe` function.<br \/>\nThis ensures that the workqueue is properly initialized before it is<br \/>\nused during device resume. And added logic to destroy the workqueue<br \/>\nin the error handling paths of `hi3110_can_probe` and in the<br \/>\n`hi3110_can_remove` function to prevent resource leaks.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-40107 Published : Nov. 3, 2025, 12:15 p.m. | 1\u00a0hour, 12\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: can: hi311x: fix null pointer dereference when resuming from sleep before interface was enabled This issue is similar to the vulnerability in the `mcp251x` driver, which was fixed &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-72860","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/72860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=72860"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/72860\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=72860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=72860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=72860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}