{"id":"CVE-2025-38212","aliases":["CVE-2025-38212"],"related":[],"kind":"vulnerability","state":"published","title":"ipc: fix to protect IPCS lookups using RCU","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nipc: fix to protect IPCS lookups using RCU\n\nsyzbot reported that it discovered a use-after-free vulnerability, [0]\n\n[0]: https://lore.kernel.org/all/67af13f8.050a0220.21dd3.0038.GAE@google.com/\n\nidr_for_each() is protected by rwsem, but this is not enough.  If it is\nnot protected by RCU read-critical region, when idr_for_each() calls\nradix_tree_node_free() through call_rcu() to free the radix_tree_node\nstructure, the node will be freed immediately, and when reading the next\nnode in radix_tree_for_each_slot(), the already freed memory may be read.\n\nTherefore, we need to add code to make sure that idr_for_each() is\nprotected within the RCU read-critical region when we call it in\nshm_destroy_orphaned().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipc: fix to protect IPCS lookups using RCU\n\nsyzbot reported that it discovered a use-after-free vulnerability, [0]\n\n[0]: https://lore.kernel.org/all/67af13f8.050a0220.21dd3.0038.GAE@google.com/\n\nidr_for_each() is protected by rwsem, but this is not enough.  If it is\nnot protected by RCU read-critical region, when idr_for_each() calls\nradix_tree_node_free() through call_rcu() to free the radix_tree_node\nstructure, the node will be freed immediately, and when reading the next\nnode in radix_tree_for_each_slot(), the already freed memory may be read.\n\nTherefore, we need to add code to make sure that idr_for_each() is\nprotected within the RCU read-critical region when we call it in\nshm_destroy_orphaned().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ipc: corrección para proteger las búsquedas IPCS mediante RCU. syzbot informó del descubrimiento de una vulnerabilidad de use-after-free, [0] [0]: https://lore.kernel.org/all/67af13f8.050a0220.21dd3.0038.GAE@google.com/ idr_for_each() está protegido por rwsem, pero esto no es suficiente. Si no está protegido por la región crítica de lectura de RCU, cuando idr_for_each() llama a radix_tree_node_free() mediante call_rcu() para liberar la estructura radix_tree_node, el nodo se liberará inmediatamente y, al leer el siguiente nodo en radix_tree_for_each_slot(), se podrá leer la memoria ya liberada. Por lo tanto, necesitamos agregar código para asegurarnos de que idr_for_each() esté protegido dentro de la región crítica de lectura de RCU cuando lo llamamos en shm_destroy_orphaned().","source":"nvd"}],"published":"2025-07-04T13:37:30.957Z","modified":"2026-10-15T22:18:35.450Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"b34a6b1da371ed8af1221459a18c67970f7e3d53","fixed":"5f1e1573bf103303944fd7225559de5d8297539c","status":"affected"},{"type":"git","introduced":"b34a6b1da371ed8af1221459a18c67970f7e3d53","fixed":"b968ba8bfd9f90914957bbbd815413bf6a98eca7","status":"affected"},{"type":"git","introduced":"b34a6b1da371ed8af1221459a18c67970f7e3d53","fixed":"74bc813d11c30e28fc5261dc877cca662ccfac68","status":"affected"},{"type":"git","introduced":"b34a6b1da371ed8af1221459a18c67970f7e3d53","fixed":"78297d53d3878d43c1d627d20cd09f611fa4b91d","status":"affected"},{"type":"git","introduced":"b34a6b1da371ed8af1221459a18c67970f7e3d53","fixed":"5180561afff8e0f029073c8c8117c95c6512d1f9","status":"affected"},{"type":"git","introduced":"b34a6b1da371ed8af1221459a18c67970f7e3d53","fixed":"68c173ea138b66d7dd1fd980c9bc578a18e11884","status":"affected"},{"type":"git","introduced":"b34a6b1da371ed8af1221459a18c67970f7e3d53","fixed":"b0b6bf90ce2699a574b3683e22c44d0dcdd7a057","status":"affected"},{"type":"git","introduced":"b34a6b1da371ed8af1221459a18c67970f7e3d53","fixed":"d66adabe91803ef34a8b90613c81267b5ded1472","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.1","status":"unaffected"},{"type":"semver","introduced":"5.4.295","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.239","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.186","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.142","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.95","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.35","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.4","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","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":"3.1","fixed":"5.4.295"},{"status":"affected","introduced":"5.5","fixed":"5.10.239"},{"status":"affected","introduced":"5.11","fixed":"5.15.186"},{"status":"affected","introduced":"5.16","fixed":"6.1.142"},{"status":"affected","introduced":"6.2","fixed":"6.6.95"},{"status":"affected","introduced":"6.7","fixed":"6.12.35"},{"status":"affected","introduced":"6.13","fixed":"6.15.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5f1e1573bf103303944fd7225559de5d8297539c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b968ba8bfd9f90914957bbbd815413bf6a98eca7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/74bc813d11c30e28fc5261dc877cca662ccfac68","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/78297d53d3878d43c1d627d20cd09f611fa4b91d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5180561afff8e0f029073c8c8117c95c6512d1f9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68c173ea138b66d7dd1fd980c9bc578a18e11884","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0b6bf90ce2699a574b3683e22c44d0dcdd7a057","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d66adabe91803ef34a8b90613c81267b5ded1472","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:48:35.362Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38212","url":"https://www.cve.org/CVERecord?id=CVE-2025-38212","licence":"CVE Terms of Use","modified":"2026-10-15T21:52:11.622Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38212","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38212","licence":"Public domain","modified":"2026-10-15T22:18:35.450Z"}],"updatedAt":"2026-11-25T22:59:00.646Z","epss":{"score":0.00212,"percentile":0.12156,"date":"2026-12-01T12:00:22.000Z"}}