# CVE-2022-49024: can: m_can: pci: add missing m_can_class_free_dev() in probe/remove methods

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-02)
- Published: 2024-10-21T20:06:30.544Z
- Modified: 2026-06-17T05:16:52.607Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In 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.

(As written by CVE List.)

## Affected

- Linux Linux: from cab7ffc0324f053c8fb56c821cdd63dc0383270d before ea8dc27bb044e19868155e500ce397007be98656; from cab7ffc0324f053c8fb56c821cdd63dc0383270d before 0bbb88651ef6b7fbb1bf75ec7ba69add632e834b; from cab7ffc0324f053c8fb56c821cdd63dc0383270d before 1eca1d4cc21b6d0fc5f9a390339804c0afce9439; 5.11 (not affected: before 5.11; from 5.15.82 up to 5.15.*; from 6.0.12 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.11 before 5.15.82; from 5.16 before 6.0.12; 6.1

## References

- <https://git.kernel.org/stable/c/ea8dc27bb044e19868155e500ce397007be98656> (patch)
- <https://git.kernel.org/stable/c/0bbb88651ef6b7fbb1bf75ec7ba69add632e834b> (patch)
- <https://git.kernel.org/stable/c/1eca1d4cc21b6d0fc5f9a390339804c0afce9439> (patch)

## Sources

- CVE List: [CVE-2022-49024](https://www.cve.org/CVERecord?id=CVE-2022-49024), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49024](https://nvd.nist.gov/vuln/detail/CVE-2022-49024), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49024 · Whole record: https://cve.day/CVE-2022-49024.json · Rebuilt by cve.day 2026-11-25T22:58:20.038Z
