VDB

CVE-2021-46966

CVE-2021-46966 PUBLISHED

ACPI: custom_method: fix potential use-after-free issue

Reported by linux · Published February 27, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxf16737caf41fc06cfe6e49048becb09657074d4b, e483bb9a991bdae29a0caa4b3a6d002c968f94aa, b7a5baaae212a686ceb812c32fceed79c03c0234, 90575d1d9311b753cf1718f4ce9061ddda7dfd23, 8b04d57f30caf76649d0567551589af9a66ca9be, 72814a94c38a33239793f7622cec6ace1e540c4b, 62dc2440ebb552aa0d7f635e1697e077d9d21203, 5.4, 5.3, 4.19.191, 4.14.233, 4.9.269, 4.4.269, 1d53ca5d131074c925ce38361fb0376d3bf7e394

Affected products

VendorProductVersions
LinuxLinux4bda2b79a9d04c8ba31681c66e95877dbb433416, 5c12dadcbef8cd55ef1f5dac799bfcbb7ea7db1d, 35b88a10535edcf62d3e6b7893a8cd506ff98a24
LinuxLinux5.4, 0, 4.4.269
LinuxLinux5.3.4, 5.10.36, 5.13
linuxlinux_kernel4.9.195, 4.14.147, 4.19.77

Timeline

  • Feb 27, 2024 CVE Published
  • Feb 28, 2024 EPSS Score (30 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (12 in total, the first dated here)
  • Mar 30, 2026 Security Advisory (20 in total, the first dated here)
  • Jul 13, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-46966
vulnetix vdb fixes CVE-2021-46966

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-46966/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›