CVE-2021-47121Published Mar 15, 2024 · Mar 15Updated Jun 17
net: caif: fix memory leak in cfusbl_device_notify
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ad65bf68d705b445ef10b77ab50dab22be185ee · < 46403c1f80b0d3f937ff9c4f5edc63bb64bc5051| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: caif: fix memory leak in cfusbl_device_notify
In case of caif_enroll_dev() fail, allocated link_support won't be assigned to the corresponding structure. So simply free allocated pointer in case of error.
From the CVE record · Linux
The Linux kernel leaks memory in cfusbl_device_notify if caif_enroll_dev() fails, because the allocated link_support pointer is not assigned to its structure or freed. The input does not specify how an attacker could trigger the failure, whether access or user interaction is required, or any further impact.
Engineers running the Linux kernel should check their versions; affected versions are not specified.