{"id":"CVE-2022-49190","summary":"kernel/resource: fix kfree() of bootmem memory again","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nkernel/resource: fix kfree() of bootmem memory again\n\nSince commit ebff7d8f270d (\"mem hotunplug: fix kfree() of bootmem\nmemory\"), we could get a resource allocated during boot via\nalloc_resource().  And it's required to release the resource using\nfree_resource().  Howerver, many people use kfree directly which will\nresult in kernel BUG.  In order to fix this without fixing every call\nsite, just leak a couple of bytes in such corner case.","modified":"2026-03-20T12:22:15.003726Z","published":"2025-02-26T01:55:37.629Z","related":["SUSE-SU-2025:01983-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49190.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0cbcc92917c5de80f15c24d033566539ad696892"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3379a60f6bb4afcd9c456e340ac525ae649d3ce7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a9e88c2618d228d7a4e7e515cf30dc0d0d813f27"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab86020070999e758ce2e60c4348f20bf7ddba56"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d7faa04a44a0c37ac3d222fa8e0bdcbfcee9c0c8"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49190.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49190"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ebff7d8f270d045338d9f4796014f4db429a17f9"},{"fixed":"3379a60f6bb4afcd9c456e340ac525ae649d3ce7"},{"fixed":"a9e88c2618d228d7a4e7e515cf30dc0d0d813f27"},{"fixed":"d7faa04a44a0c37ac3d222fa8e0bdcbfcee9c0c8"},{"fixed":"ab86020070999e758ce2e60c4348f20bf7ddba56"},{"fixed":"0cbcc92917c5de80f15c24d033566539ad696892"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49190.json"}}],"schema_version":"1.7.5"}