CVE-2021-47122: net: caif: fix memory leak in caif_device_notify
In the Linux kernel, the following vulnerability has been resolved:
net: caif: fix memory leak in caifdevicenotify
In case of caifenrolldev() fail, allocated linksupport won't be assigned to the corresponding structure. So simply free allocated pointer in case of error
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.27-1 - Compensating control
In net: caif: caif_device_notify, free the allocated link_support pointer when caif_enroll_dev() fails.
Event History
Frequently Asked Questions
What is the severity of CVE-2021-47122?
CVE-2021-47122 is classified as a medium severity vulnerability.
How do I fix CVE-2021-47122?
To fix CVE-2021-47122, update your Linux kernel to a version later than those affected, specifically above 5.13-rc4.
What is the impact of CVE-2021-47122?
The impact of CVE-2021-47122 is a potential memory leak in the Linux kernel within the CAIF subsystem.
Which versions of Linux are affected by CVE-2021-47122?
CVE-2021-47122 affects multiple versions of the Linux kernel, specifically from 3.3 up to 5.13-rc4.
What component of the Linux kernel is affected by CVE-2021-47122?
CVE-2021-47122 affects the CAIF (Carrier Aggregation on Internet First) subsystem within the Linux kernel.