CVE-2021-46966

HighCVSS 7.8/10Last modified Jun 17, 2026

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 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= 4bda2b79a9d04c8ba31681c66e95877dbb433416, < 1d53ca5d131074c925ce38361fb0376d3bf7e394; >= 5c12dadcbef8cd55ef1f5dac799bfcbb7ea7db1d, < 8b04d57f30caf76649d0567551589af9a66ca9be; >= 35b88a10535edcf62d3e6b7893a8cd506ff98a24, < 90575d1d9311b753cf1718f4ce9061ddda7dfd23; >= e4467fb6ef547aa352dc03397f9474ec84eced5b, < a5b26a2e362f572d87e9fd35435680e557052a17; >= 03d1571d9513369c17e6848476763ebbd10ec2cb, < 72814a94c38a33239793f7622cec6ace1e540c4b; >= 03d1571d9513369c17e6848476763ebbd10ec2cb, < 62dc2440ebb552aa0d7f635e1697e077d9d21203; >= 03d1571d9513369c17e6848476763ebbd10ec2cb, < f16737caf41fc06cfe6e49048becb09657074d4b; >= 03d1571d9513369c17e6848476763ebbd10ec2cb, < b7a5baaae212a686ceb812c32fceed79c03c0234; >= 03d1571d9513369c17e6848476763ebbd10ec2cb, < e483bb9a991bdae29a0caa4b3a6d002c968f94aa; 70424999fbf1f160ade111cb9baab51776e0f9c2; 06cd4a06eb596a888239fb8ceb6ea15677cab396; >= 4.4.195, < 4.4.269; >= 4.9.195, < 4.9.269; >= 4.14.147, < 4.14.233; >= 4.19.77, < 4.19.191; >= 5.2.19, < 5.3; >= 5.3.4, < 5.4
LinuxLinux5.4

References

Timeline

Published
Feb 27, 2024
Last modified
Jun 17, 2026
NVD status
Analyzed

Related CVEs from 2021

CVE-2021-469675.5In the Linux kernel, the following vulnerability has been resolved: vhost-vdpa: fix vm_flags for virtqueue doorbell mapping The virtqueue CVE-2021-469685.5In the Linux kernel, the following vulnerability has been resolved: s390/zcrypt: fix zcard and zqueue hot-unplug memleak Tests with kvm anCVE-2021-469697.8In the Linux kernel, the following vulnerability has been resolved: bus: mhi: core: Fix invalid error returning in mhi_queue mhi_queue retCVE-2021-469705.5In the Linux kernel, the following vulnerability has been resolved: bus: mhi: pci_generic: Remove WQ_MEM_RECLAIM flag from state workqueue CVE-2021-469713.3In the Linux kernel, the following vulnerability has been resolved: perf/core: Fix unconditional security_locked_down() call Currently, thCVE-2021-469725.5In the Linux kernel, the following vulnerability has been resolved: ovl: fix leaked dentry Since commit 6815f479ca90 ("ovl: use only upperCVE-2021-469737.8In the Linux kernel, the following vulnerability has been resolved: net: qrtr: Avoid potential use after free in MHI send It is possible tCVE-2021-469745.5In the Linux kernel, the following vulnerability has been resolved: bpf: Fix masking negation logic upon negative dst register The negatioCVE-2021-469765.5In the Linux kernel, the following vulnerability has been resolved: drm/i915: Fix crash in auto_retire The retire logic uses the 2 lower bCVE-2021-469775.5In the Linux kernel, the following vulnerability has been resolved: KVM: VMX: Disable preemption when probing user return MSRs Disable preCVE-2021-469787.8In the Linux kernel, the following vulnerability has been resolved: KVM: nVMX: Always make an attempt to map eVMCS after migration When enCVE-2021-469795.5In the Linux kernel, the following vulnerability has been resolved: iio: core: fix ioctl handlers removal Currently ioctl handlers are rem
CVE-2021-46966: High severity, CVSS 7.8 | Vulnix