kernel/resource: fix kfree() of bootmem memory again
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
kernel/resource: fix kfree() of bootmem memory again
Since commit ebff7d8f270d ("mem hotunplug: fix kfree() of bootmem memory"), we could get a resource allocated during boot via alloc_resource(). And it's required to release the resource using free_resource(). Howerver, many people use kfree directly which will result in kernel BUG. In order to fix this without fixing every call site, just leak a couple of bytes in such corner case.
From the CVE record · Linux
A resource allocated during boot may be freed with kfree() instead of free_resource(), triggering a kernel BUG. The input does not specify how an attacker could reach this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.