{"id":"CVE-2026-22991","aliases":["CVE-2026-22991"],"related":[],"kind":"vulnerability","state":"published","title":"libceph: make free_choose_arg_map() resilient to partial allocation","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: make free_choose_arg_map() resilient to partial allocation\n\nfree_choose_arg_map() may dereference a NULL pointer if its caller fails\nafter a partial allocation.\n\nFor example, in decode_choose_args(), if allocation of arg_map->args\nfails, execution jumps to the fail label and free_choose_arg_map() is\ncalled. Since arg_map->size is updated to a non-zero value before memory\nallocation, free_choose_arg_map() will iterate over arg_map->args and\ndereference a NULL pointer.\n\nTo prevent this potential NULL pointer dereference and make\nfree_choose_arg_map() more resilient, add checks for pointers before\niterating.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: make free_choose_arg_map() resilient to partial allocation\n\nfree_choose_arg_map() may dereference a NULL pointer if its caller fails\nafter a partial allocation.\n\nFor example, in decode_choose_args(), if allocation of arg_map->args\nfails, execution jumps to the fail label and free_choose_arg_map() is\ncalled. Since arg_map->size is updated to a non-zero value before memory\nallocation, free_choose_arg_map() will iterate over arg_map->args and\ndereference a NULL pointer.\n\nTo prevent this potential NULL pointer dereference and make\nfree_choose_arg_map() more resilient, add checks for pointers before\niterating.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nlibceph: hacer free_choose_arg_map() resistente a la asignación parcial\n\nfree_choose_arg_map() puede desreferenciar un puntero NULL si su llamador falla después de una asignación parcial.\n\nPor ejemplo, en decode_choose_args(), si la asignación de arg_map-&gt;args falla, la ejecución salta a la etiqueta fail y se llama a free_choose_arg_map(). Dado que arg_map-&gt;size se actualiza a un valor distinto de cero antes de la asignación de memoria, free_choose_arg_map() iterará sobre arg_map-&gt;args y desreferenciará un puntero NULL.\n\nPara evitar esta potencial desreferencia de puntero NULL y hacer free_choose_arg_map() más resistente, añadir comprobaciones para los punteros antes de iterar.","source":"nvd"}],"published":"2026-01-23T15:24:12.191Z","modified":"2026-10-19T19:17:30.783Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"5cf9c4a9959b6273675310d14a834ef14fbca37c","fixed":"9b3730dabcf3764bfe3ff07caf55e641a0b45234","status":"affected"},{"type":"git","introduced":"5cf9c4a9959b6273675310d14a834ef14fbca37c","fixed":"851241d3f78a5505224dc21c03d8692f530256b4","status":"affected"},{"type":"git","introduced":"5cf9c4a9959b6273675310d14a834ef14fbca37c","fixed":"ec1850f663da64842614c86b20fe734be070c2ba","status":"affected"},{"type":"git","introduced":"5cf9c4a9959b6273675310d14a834ef14fbca37c","fixed":"8081faaf089db5280c3be820948469f7c58ef8dd","status":"affected"},{"type":"git","introduced":"5cf9c4a9959b6273675310d14a834ef14fbca37c","fixed":"c4c2152a858c0ce4d2bff6ca8c1d5b0ef9f2cbdf","status":"affected"},{"type":"git","introduced":"5cf9c4a9959b6273675310d14a834ef14fbca37c","fixed":"f21c3fdb96833aac2f533506899fe38c19cf49d5","status":"affected"},{"type":"git","introduced":"5cf9c4a9959b6273675310d14a834ef14fbca37c","fixed":"e3fe30e57649c551757a02e1cad073c47e1e075e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.13","status":"unaffected"},{"type":"semver","introduced":"5.10.248","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.198","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.161","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.121","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.66","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.6","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.13","fixed":"5.10.248"},{"status":"affected","introduced":"5.11","fixed":"5.15.198"},{"status":"affected","introduced":"5.16","fixed":"6.1.161"},{"status":"affected","introduced":"6.2","fixed":"6.6.121"},{"status":"affected","introduced":"6.7","fixed":"6.12.66"},{"status":"affected","introduced":"6.13","fixed":"6.18.6"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9b3730dabcf3764bfe3ff07caf55e641a0b45234","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/851241d3f78a5505224dc21c03d8692f530256b4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec1850f663da64842614c86b20fe734be070c2ba","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8081faaf089db5280c3be820948469f7c58ef8dd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4c2152a858c0ce4d2bff6ca8c1d5b0ef9f2cbdf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f21c3fdb96833aac2f533506899fe38c19cf49d5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3fe30e57649c551757a02e1cad073c47e1e075e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-16T20:35:31.087Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-22991","url":"https://www.cve.org/CVERecord?id=CVE-2026-22991","licence":"CVE Terms of Use","modified":"2026-10-19T18:25:26.442Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-22991","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22991","licence":"Public domain","modified":"2026-10-19T19:17:30.783Z"}],"updatedAt":"2026-11-25T22:59:13.144Z","epss":{"score":0.00467,"percentile":0.42128,"date":"2026-12-01T12:00:22.000Z"}}