{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-46966","id":"CVE-2021-46966","title":"ACPI: custom_method: fix potential use-after-free issue","description":"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","descriptionLong":"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.","published":"2024-02-27T18:47:03.631Z","updated":"2026-06-17T04:16:00.870Z","reserved":"2024-02-27T18:42:55.943Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4bda2b79a9d04c8ba31681c66e95877dbb433416","lessThan":"1d53ca5d131074c925ce38361fb0376d3bf7e394","status":"affected","versionType":"git"},{"version":"5c12dadcbef8cd55ef1f5dac799bfcbb7ea7db1d","lessThan":"8b04d57f30caf76649d0567551589af9a66ca9be","status":"affected","versionType":"git"},{"version":"35b88a10535edcf62d3e6b7893a8cd506ff98a24","lessThan":"90575d1d9311b753cf1718f4ce9061ddda7dfd23","status":"affected","versionType":"git"},{"version":"e4467fb6ef547aa352dc03397f9474ec84eced5b","lessThan":"a5b26a2e362f572d87e9fd35435680e557052a17","status":"affected","versionType":"git"},{"version":"03d1571d9513369c17e6848476763ebbd10ec2cb","lessThan":"72814a94c38a33239793f7622cec6ace1e540c4b","status":"affected","versionType":"git"},{"version":"03d1571d9513369c17e6848476763ebbd10ec2cb","lessThan":"62dc2440ebb552aa0d7f635e1697e077d9d21203","status":"affected","versionType":"git"},{"version":"03d1571d9513369c17e6848476763ebbd10ec2cb","lessThan":"f16737caf41fc06cfe6e49048becb09657074d4b","status":"affected","versionType":"git"},{"version":"03d1571d9513369c17e6848476763ebbd10ec2cb","lessThan":"b7a5baaae212a686ceb812c32fceed79c03c0234","status":"affected","versionType":"git"},{"version":"03d1571d9513369c17e6848476763ebbd10ec2cb","lessThan":"e483bb9a991bdae29a0caa4b3a6d002c968f94aa","status":"affected","versionType":"git"},{"version":"70424999fbf1f160ade111cb9baab51776e0f9c2","status":"affected","versionType":"git"},{"version":"06cd4a06eb596a888239fb8ceb6ea15677cab396","status":"affected","versionType":"git"},{"version":"4.4.195","lessThan":"4.4.269","status":"affected","versionType":"semver"},{"version":"4.9.195","lessThan":"4.9.269","status":"affected","versionType":"semver"},{"version":"4.14.147","lessThan":"4.14.233","status":"affected","versionType":"semver"},{"version":"4.19.77","lessThan":"4.19.191","status":"affected","versionType":"semver"},{"version":"5.2.19","lessThan":"5.3","status":"affected","versionType":"semver"},{"version":"5.3.4","lessThan":"5.4","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.4","status":"affected"},{"version":"0","lessThan":"5.4","status":"unaffected","versionType":"semver"},{"version":"4.4.269","lessThanOrEqual":"4.4.*","status":"unaffected","versionType":"semver"},{"version":"4.9.269","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.233","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.191","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.118","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.36","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.11.20","lessThanOrEqual":"5.11.*","status":"unaffected","versionType":"semver"},{"version":"5.12.3","lessThanOrEqual":"5.12.*","status":"unaffected","versionType":"semver"},{"version":"5.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/1d53ca5d131074c925ce38361fb0376d3bf7e394","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/8b04d57f30caf76649d0567551589af9a66ca9be","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/90575d1d9311b753cf1718f4ce9061ddda7dfd23","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/a5b26a2e362f572d87e9fd35435680e557052a17","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/72814a94c38a33239793f7622cec6ace1e540c4b","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/62dc2440ebb552aa0d7f635e1697e077d9d21203","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/f16737caf41fc06cfe6e49048becb09657074d4b","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/b7a5baaae212a686ceb812c32fceed79c03c0234","tags":["x_transferred","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/e483bb9a991bdae29a0caa4b3a6d002c968f94aa","tags":["x_transferred","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0023,"epssPercentile":0.14041,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-46966","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46966","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-46966","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-46966","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}