Linux · Linux Kernel · CVE-2021-32606
**Name of the Vulnerable Software and Affected Versions**
Linux kernel versions 5.11 through 5.12.2
**Description**
The issue is related to the `isotp setsockopt` function in the `net/can/isotp.c` component of the Linux kernel, which involves the use of memory after it has been freed. This can allow an attacker to access confidential data, compromise its integrity, and cause a denial of service. The vulnerability can also be exploited for privilege escalation to root by leveraging the use-after-free, affecting the Linux kernel versions 5.11 through 5.12.2. Earlier versions that lack CAN ISOTP SF BROADCAST support are not affected.
**Recommendations**
For Linux kernel versions 5.11 through 5.12.2, update to a version that includes the fix for the `isotp setsockopt` use-after-free issue.
As a temporary workaround, consider restricting access to the `isotp setsockopt` function in the `net/can/isotp.c` component until a patch is available.