kernel/resource: fix kfree() of bootmem memory again (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.27 % · percentile 18 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-401 — Missing Release of Memory after Effective Lifetime
References
- https://git.kernel.org/stable/c/3379a60f6bb4afcd9c456e340ac525ae649d3ce7
- https://git.kernel.org/stable/c/a9e88c2618d228d7a4e7e515cf30dc0d0d813f27
- https://git.kernel.org/stable/c/d7faa04a44a0c37ac3d222fa8e0bdcbfcee9c0c8
- https://git.kernel.org/stable/c/ab86020070999e758ce2e60c4348f20bf7ddba56
- https://git.kernel.org/stable/c/0cbcc92917c5de80f15c24d033566539ad696892
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2022-55036
- GCVE · GCVE-0-2022-49190
CERT-FR advisories
- CERTFR-2025-AVI-0529 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0463 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 3.10 < 5.15.33cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.16 < 5.16.19cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.17 < 5.17.2
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected ebff7d8f270d045338d9f4796014f4db429a17f9 < 3379a60f6bb4afcd9c456e340ac525ae649d3ce7 ; affected ebff7d8f270d045338d9f4796014f4db429a17f9 < a9e88c2618d228d7a4e7e515cf30dc0d0d813f27 ; affected ebff7d8f270d045338d9f4796014f4db429a17f9 < d7faa04a44a0c37ac3d222fa8e0bdcbfcee9c0c8 ; affected ebff7d8f270d045338d9f4796014f4db429a17f9 < ab86020070999e758ce2e60c4348f20bf7ddba56 ; affected ebff7d8f270d045338d9f4796014f4db429a17f9 < 0cbcc92917c5de80f15c24d033566539ad696892 |
| Linux · Linux | affected 3.10 ; unaffected 0 < 3.10 ; unaffected 5.10.237 ≤ 5.10.* ; unaffected 5.15.33 ≤ 5.15.* ; unaffected 5.16.19 ≤ 5.16.* ; unaffected 5.17.2 ≤ 5.17.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |