can: m_can: pci: add missing m_can_class_free_dev() in probe/remove methods
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.826.0.126.1In the Linux kernel, the following vulnerability has been resolved:
can: m_can: pci: add missing m_can_class_free_dev() in probe/remove methods
In m_can_pci_remove() and error handling path of m_can_pci_probe(), m_can_class_free_dev() should be called to free resource allocated by m_can_class_allocate_dev(), otherwise there will be memleak.
From the CVE record · Linux
The Linux kernel's m_can PCI driver does not free a resource when device probing fails or the driver is removed, causing a memory leak. The input does not establish whether an attacker can trigger these paths or specify any network, authentication, or user-interaction conditions.
Engineers running the Linux kernel with the m_can PCI driver should check their kernel version; affected versions are not specified.