CVE-2021-46966
Last modified
CVE-2021-46966 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: ACPI: custom_method: fix potential use-after-free issue In cm_write(), buf is always freed when reaching the end of the function. If the requested count is less than table.length, the allocated buffer will be freed but subsequent calls to cm_write() will still try to access it. Remove the unconditional kfree(buf) at the end of the function and set the buf to NULL in the -EINVAL error path to match the rest of function.. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: ACPI: custom_method: fix potential use-after-free issue In cm_write(), buf is always freed when reaching the end of the function. If the requested count is less than table.length, the allocated buffer will be freed but subsequent calls to cm_write() will still try to access it. Remove the unconditional kfree(buf) at the end of the function and set the buf to NULL in the -EINVAL error path to match the rest of function.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 4.4.195, < 4.4.269 |
| Linux | Linux Kernel | >= 4.9.195, < 4.9.269 |
| Linux | Linux Kernel | >= 4.14.147, < 4.14.233 |
| Linux | Linux Kernel | >= 4.19.77, < 4.19.191 |
| Linux | Linux Kernel | >= 5.4, < 5.4.118 |
| Linux | Linux Kernel | >= 5.5, < 5.10.36 |
| Linux | Linux Kernel | >= 5.11, < 5.11.20 |
| Linux | Linux Kernel | >= 5.12, < 5.12.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-46966?
How severe is CVE-2021-46966?
How do I fix CVE-2021-46966?
Are you affected by CVE-2021-46966?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
