{"id":"CVE-2025-40185","aliases":["CVE-2025-40185"],"related":[],"kind":"vulnerability","state":"published","title":"ice: ice_adapter: release xa entry on adapter allocation failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: ice_adapter: release xa entry on adapter allocation failure\n\nWhen ice_adapter_new() fails, the reserved XArray entry created by\nxa_insert() is not released. This causes subsequent insertions at\nthe same index to return -EBUSY, potentially leading to\nNULL pointer dereferences.\n\nReorder the operations as suggested by Przemek Kitszel:\n1. Check if adapter already exists (xa_load)\n2. Reserve the XArray slot (xa_reserve)\n3. Allocate the adapter (ice_adapter_new)\n4. Store the adapter (xa_store)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: ice_adapter: release xa entry on adapter allocation failure\n\nWhen ice_adapter_new() fails, the reserved XArray entry created by\nxa_insert() is not released. This causes subsequent insertions at\nthe same index to return -EBUSY, potentially leading to\nNULL pointer dereferences.\n\nReorder the operations as suggested by Przemek Kitszel:\n1. Check if adapter already exists (xa_load)\n2. Reserve the XArray slot (xa_reserve)\n3. Allocate the adapter (ice_adapter_new)\n4. Store the adapter (xa_store)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nice: ice_adapter: liberar entrada xa en caso de fallo en la asignación del adaptador\n\nCuando ice_adapter_new() falla, la entrada XArray reservada creada por xa_insert() no es liberada. Esto provoca que inserciones posteriores en el mismo índice devuelvan -EBUSY, lo que podría llevar a desreferencias de puntero NULL.\n\nReordenar las operaciones según lo sugerido por Przemek Kitszel:\n1. Comprobar si el adaptador ya existe (xa_load)\n2. Reservar la ranura XArray (xa_reserve)\n3. Asignar el adaptador (ice_adapter_new)\n4. Almacenar el adaptador (xa_store)","source":"nvd"}],"published":"2025-11-12T21:56:28.561Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","fixed":"7b9269de9815fc34d93dab90bd5169bacbe78e70","status":"affected"},{"type":"git","introduced":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","fixed":"794abb265de3e792167fe3ea0440c064c722bb84","status":"affected"},{"type":"git","introduced":"0f0023c649c7bc50543fbe6e1801eb6357b8bd63","fixed":"2db687f3469dbc5c59bc53d55acafd75d530b497","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.54","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.4","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7b9269de9815fc34d93dab90bd5169bacbe78e70","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/794abb265de3e792167fe3ea0440c064c722bb84","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2db687f3469dbc5c59bc53d55acafd75d530b497","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40185","url":"https://www.cve.org/CVERecord?id=CVE-2025-40185","licence":"CVE Terms of Use","modified":"2026-05-11T21:44:24.259Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40185","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40185","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:07.591Z","epss":{"score":0.00213,"percentile":0.12352,"date":"2026-12-01T12:00:22.000Z"}}