CVE-2025-40107 Details
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 in commit 03c427147b2d ("can: mcp251x: fix resume from sleep before interface was brought up"). In the `hi311x` driver, when the device resumes from sleep, the driver schedules `priv->restart_work`. However, if the network interface was not previously enabled, the `priv->wq` (workqueue) is not allocated and initialized, leading to a null pointer dereference. To fix this, we move the allocation and initialization of the workqueue from the `hi3110_open` function to the `hi3110_can_probe` function. This ensures that the workqueue is properly initialized before it is used during device resume. And added logic to destroy the workqueue in the error handling paths of `hi3110_can_probe` and in the `hi3110_can_remove` function to prevent resource leaks.
A null pointer dereference vulnerability has been identified in the Linux kernel hi311x CAN driver. This issue occurs when the device resumes from sleep before the network interface is enabled. The driver attempts to schedule a restart work, but if the interface is not active, the associated workqueue is not initialized, leading to a null pointer dereference. This vulnerability mirrors a previously addressed issue in the mcp251x driver.
The vulnerability has been fixed by changing the workqueue initialization process. The workqueue is now allocated and set up in the hi3110_can_probe function, ensuring it is ready before the device resume action. This update is included in the latest Linux kernel releases.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1d2ef21f02baff0c109ad78b9e835fb4acb14533 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/6b696808472197b77b888f50bc789a3bae077743 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/d1fc4c041459e2d4856c1b2501486ba4f0cbf96b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e93af787187e585933570563c643337fa731584a | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/fd00cf38fd437c979f0e5905e3ebdfc3f55a4b96 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 3, 2025 | New CVE Received | kernel.org |
Volerion