{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-46966","published":"2024-02-27T19:04:07.127000Z","last_modified":"2026-06-17T04:16:00.870000Z","status":"Analyzed","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-416"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.4.195","version_end_excluding":"4.4.269"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.9.195","version_end_excluding":"4.9.269"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.14.147","version_end_excluding":"4.14.233"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.19.77","version_end_excluding":"4.19.191"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.4","version_end_excluding":"5.4.118"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.36"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.11.20"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.12","version_end_excluding":"5.12.3"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.0023,"percentile":0.08215,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2021-46966/","html_en":"/en/cve/CVE-2021-46966/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-46966","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-46966"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nACPI: custom_method: fix potential use-after-free issue\n\nIn cm_write(), buf is always freed when reaching the end of the\nfunction.  If the requested count is less than table.length, the\nallocated buffer will be freed but subsequent calls to cm_write() will\nstill try to access it.\n\nRemove the unconditional kfree(buf) at the end of the function and\nset the buf to NULL in the -EINVAL error path to match the rest of\nfunction.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b","tags":["Patch"]}]}}