Junglewise Threat Intelligence

CVE-2025-40317: Linux Kernel NULL pointer dereference in SLIMbus regmap initialization

CVE-2025-40317 · Severity: high · CVSS 7.8 · Published 2025-12-08

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability was identified in the Linux kernel's SLIMbus regmap component, which manages communication between the operating system and hardware components like audio codecs. An error in how the system initializes this communication channel can lead to a kernel crash (paging request failure) during operations such as audio playback. This could allow a local user to cause a system crash or potentially gain unauthorized access to system memory, impacting overall system stability and security.

Technical details

A vulnerability exists in the Linux kernel's regmap SLIMbus implementation due to an incorrect bus_context pointer being passed during initialization in __devm_regmap_init_slimbus() and __regmap_init_slimbus(). The root cause is the use of an incorrect pointer argument (passing the address of the pointer instead of the pointer itself), which leads to an invalid memory access ('Unable to handle kernel paging request') when the regmap bus performs read/write operations. A local attacker could trigger this via standard system calls (e.g., ioctl for audio playback) to cause a Denial of Service (kernel panic) or potentially exploit the resulting memory corruption for privilege escalation. The issue has been resolved by correcting the bus_context argument to point to the slim_device structure.

Affected products

  • Linux Linux Kernel 4.16 to 6.12.y

Timeline

  • 2025-10-22: patched: Initial patch authored by Alexey Klimov
  • 2025-12-08: advisory: NVD advisory published

References

Related threats