7.8
HIGH CVSS 3.1
CVE-2021-46966
ACPI: custom_method: fix potential use-after-free issue
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.

INFO

Published Date :

Feb. 27, 2024, 7:04 p.m.

Last Modified :

Dec. 6, 2024, 5:55 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2021-46966 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
This vulnerability can be fixed by updating the Linux kernel.
  • Update the Linux kernel to a patched version.
  • Reboot the system after the update.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-46966.

URL Resource
https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394 Patch
https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203 Patch
https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b Patch
https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be Patch
https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23 Patch
https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17 Patch
https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234 Patch
https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa Patch
https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b Patch
https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394 Patch
https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203 Patch
https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b Patch
https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be Patch
https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23 Patch
https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17 Patch
https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234 Patch
https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa Patch
https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b Patch
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-46966 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-46966 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-46966 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-46966 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Dec. 06, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE NIST CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.4.195 up to (excluding) 4.4.269 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.9.195 up to (excluding) 4.9.269 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.14.147 up to (excluding) 4.14.233 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.19.77 up to (excluding) 4.19.191 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.4 up to (excluding) 5.4.118 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.36 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.11.20 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.12 up to (excluding) 5.12.3
    Changed Reference Type https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394 No Types Assigned https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394 Patch
    Changed Reference Type https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394 No Types Assigned https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394 Patch
    Changed Reference Type https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203 No Types Assigned https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203 Patch
    Changed Reference Type https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203 No Types Assigned https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203 Patch
    Changed Reference Type https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b No Types Assigned https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b Patch
    Changed Reference Type https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b No Types Assigned https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b Patch
    Changed Reference Type https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be No Types Assigned https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be Patch
    Changed Reference Type https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be No Types Assigned https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be Patch
    Changed Reference Type https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23 No Types Assigned https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23 Patch
    Changed Reference Type https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23 No Types Assigned https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23 Patch
    Changed Reference Type https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17 No Types Assigned https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17 Patch
    Changed Reference Type https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17 No Types Assigned https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17 Patch
    Changed Reference Type https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234 No Types Assigned https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234 Patch
    Changed Reference Type https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234 No Types Assigned https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234 Patch
    Changed Reference Type https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa No Types Assigned https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa Patch
    Changed Reference Type https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa No Types Assigned https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa Patch
    Changed Reference Type https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b No Types Assigned https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b Patch
    Changed Reference Type https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b No Types Assigned https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b Patch
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394
    Added Reference https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203
    Added Reference https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b
    Added Reference https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be
    Added Reference https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23
    Added Reference https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17
    Added Reference https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234
    Added Reference https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa
    Added Reference https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 28, 2024

    Action Type Old Value New Value
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Feb. 27, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference Linux https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234 [No types assigned]
    Added Reference Linux https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact