5.5medium
kernel/resource: fix kfree() of bootmem memory again
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.28% (higher than 13% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from ebff7d8f270d045338d9f4796014f4db429a17f9 before 3379a60f6bb4afcd9c456e340ac525ae649d3ce7, from ebff7d8f270d045338d9f4796014f4db429a17f9 before a9e88c2618d228d7a4e7e515cf30dc0d0d813f27, from ebff7d8f270d045338d9f4796014f4db429a17f9 before d7faa04a44a0c37ac3d222fa8e0bdcbfcee9c0c8, from ebff7d8f270d045338d9f4796014f4db429a17f9 before ab86020070999e758ce2e60c4348f20bf7ddba56, from ebff7d8f270d045338d9f4796014f4db429a17f9 before 0cbcc92917c5de80f15c24d033566539ad696892, 3.10 Not affected: before 3.10, from 5.10.237 up to 5.10.*, from 5.15.33 up to 5.15.*, from 5.16.19 up to 5.16.*, from 5.17.2 up to 5.17.*, from 5.18 up to * | CVE List |
| linux linux_kernel | from 3.10 before 5.15.33, from 5.16 before 5.16.19, from 5.17 before 5.17.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: kernel/resource: fix kfree() of bootmem memory again Desde el commit ebff7d8f270d ("mem hotunplug: fix kfree() of bootmem memory"), podríamos obtener un recurso asignado durante el arranque a través de alloc_resource(). Y es necesario liberar el recurso utilizando free_resource(). Sin embargo, muchas personas utilizan kfree directamente, lo que dará como resultado un ERROR del kernel. Para solucionar esto sin reparar cada sitio de llamada, simplemente filtre un par de bytes en ese caso especial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49190 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2022-49190 changed 2026-11-05 | Public domain |