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.
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46966.json"
[
{
"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"
}
]
}
]