CVE-2021-47521Published May 24, 2024 · May 24Updated Jun 17
can: sja1000: fix use after free in ems_pcmcia_add_card()
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fd734c6f25aea4b2b44b045e489aec67b388577e · < 923f4dc5df679f678e121c20bf2fd70f7bf3e288| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s CAN sja1000 driver has a use-after-free in ems_pcmcia_add_card() when the last channel is unavailable and the device has been freed. The input does not specify how an attacker could trigger it or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the CAN sja1000 driver should check their deployments; affected versions are not specified.