7.8high
can: sja1000: fix use after free in ems_pcmcia_add_card()
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: can: sja1000: fix use after free in ems_pcmcia_add_card() If the last channel is not available then "dev" is freed. Fortunately, we can just use "pdev->irq" instead. Also we should check if at least one channel was set up.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from fd734c6f25aea4b2b44b045e489aec67b388577e before cbd86110546f7f730a1f5d7de56c944a336c15c4, from fd734c6f25aea4b2b44b045e489aec67b388577e before 1dd5b819f7e406dc15bbc7670596ff25261aaa2a, from fd734c6f25aea4b2b44b045e489aec67b388577e before c8718026ba287168ff9ad0ccc4f9a413062cba36, from fd734c6f25aea4b2b44b045e489aec67b388577e before ccf070183e4655824936c0f96c4a2bcca93419aa, from fd734c6f25aea4b2b44b045e489aec67b388577e before 1a295fea90e1acbe80c6d4940f5ff856edcd6bec, from fd734c6f25aea4b2b44b045e489aec67b388577e before 923f4dc5df679f678e121c20bf2fd70f7bf3e288, from fd734c6f25aea4b2b44b045e489aec67b388577e before 474f9a8534f5f89841240a7e978bafd6e1e039ce, from fd734c6f25aea4b2b44b045e489aec67b388577e before 3ec6ca6b1a8e64389f0212b5a1b0f6fed1909e45 and 1 more Not affected: before 3.2, from 4.4.295 up to 4.4.*, from 4.9.293 up to 4.9.*, from 4.14.258 up to 4.14.*, from 4.19.221 up to 4.19.*, from 5.4.165 up to 5.4.* | CVE List |
| linux linux_kernel | from 3.2 before 4.4.295, from 4.5 before 4.9.293, from 4.10 before 4.14.258, from 4.15 before 4.19.221, from 4.20 before 5.4.165, from 5.5 before 5.10.85, from 5.11 before 5.15.8 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: can: sja1000: fix use after free in ems_pcmcia_add_card() If the last channel is not available then "dev" is freed. Fortunately, we can just use "pdev->irq" instead. Also we should check if at least one channel was set up.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: can: sja1000: arreglar el use after free en ems_pcmcia_add_card() Si el último canal no está disponible entonces se libera "dev". Afortunadamente, podemos usar "pdev->irq" en su lugar. También debemos comprobar si se configuró al menos un canal.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47521 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47521 changed 2026-06-17 | Public domain |