CVE-2021-46966

Source
https://cve.org/CVERecord?id=CVE-2021-46966
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46966.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-46966
Downstream
Related
Published
2024-02-27T19:04:07Z
Modified
2026-03-15T22:42:42Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git /

Affected ranges

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46966.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "4.4.195"
            },
            {
                "fixed": "4.4.269"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "4.9.195"
            },
            {
                "fixed": "4.9.269"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "4.14.147"
            },
            {
                "fixed": "4.14.233"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "4.19.77"
            },
            {
                "fixed": "4.19.191"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.4"
            },
            {
                "fixed": "5.4.118"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.5"
            },
            {
                "fixed": "5.10.36"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.11"
            },
            {
                "fixed": "5.11.20"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "5.12"
            },
            {
                "fixed": "5.12.3"
            }
        ]
    }
]