{"id":"CVE-2025-39827","aliases":["CVE-2025-39827"],"related":[],"kind":"vulnerability","state":"published","title":"net: rose: include node references in rose_neigh refcount","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rose: include node references in rose_neigh refcount\n\nCurrent implementation maintains two separate reference counting\nmechanisms: the 'count' field in struct rose_neigh tracks references from\nrose_node structures, while the 'use' field (now refcount_t) tracks\nreferences from rose_sock.\n\nThis patch merges these two reference counting systems using 'use' field\nfor proper reference management. Specifically, this patch adds incrementing\nand decrementing of rose_neigh->use when rose_neigh->count is incremented\nor decremented.\n\nThis patch also modifies rose_rt_free(), rose_rt_device_down() and\nrose_clear_route() to properly release references to rose_neigh objects\nbefore freeing a rose_node through rose_remove_node().\n\nThese changes ensure rose_neigh structures are properly freed only when\nall references, including those from rose_node structures, are released.\nAs a result, this resolves a slab-use-after-free issue reported by Syzbot.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rose: include node references in rose_neigh refcount\n\nCurrent implementation maintains two separate reference counting\nmechanisms: the 'count' field in struct rose_neigh tracks references from\nrose_node structures, while the 'use' field (now refcount_t) tracks\nreferences from rose_sock.\n\nThis patch merges these two reference counting systems using 'use' field\nfor proper reference management. Specifically, this patch adds incrementing\nand decrementing of rose_neigh->use when rose_neigh->count is incremented\nor decremented.\n\nThis patch also modifies rose_rt_free(), rose_rt_device_down() and\nrose_clear_route() to properly release references to rose_neigh objects\nbefore freeing a rose_node through rose_remove_node().\n\nThese changes ensure rose_neigh structures are properly freed only when\nall references, including those from rose_node structures, are released.\nAs a result, this resolves a slab-use-after-free issue reported by Syzbot.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: rose: incluir referencias de nodo en el recuento de referencias de rose_neigh\n\nLa implementación actual mantiene dos mecanismos de recuento de referencias separados: el campo 'count' en la estructura rose_neigh rastrea las referencias de las estructuras rose_node, mientras que el campo 'use' (ahora refcount_t) rastrea las referencias de rose_sock.\n\nEste parche fusiona estos dos sistemas de recuento de referencias utilizando el campo 'use' para una gestión adecuada de las referencias. Específicamente, este parche añade el incremento y decremento de rose_neigh->use cuando rose_neigh->count es incrementado o decrementado.\n\nEste parche también modifica rose_rt_free(), rose_rt_device_down() y rose_clear_route() para liberar correctamente las referencias a los objetos rose_neigh antes de liberar un rose_node a través de rose_remove_node().\n\nEstos cambios aseguran que las estructuras rose_neigh sean liberadas correctamente solo cuando todas las referencias, incluidas las de las estructuras rose_node, sean liberadas. Como resultado, esto resuelve un problema de slab-uso después de liberación reportado por Syzbot.","source":"nvd"}],"published":"2025-09-16T13:00:25.555Z","modified":"2026-11-10T13:17:51.570Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"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":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"4cce478c3e82a5fc788d72adb2f4c4e983997639","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"9c547c8eee9d1cf6e744611d688b9f725cf9a115","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"d7563b456ed44151e1a82091d96f60166daea89b","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"384210cceb1873a4c8218b27ba0745444436b728","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"da9c9c877597170b929a6121a68dcd3dd9a80f45","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"6.1.150","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.104","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.45","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.5","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","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":"2.6.12.1","fixed":"6.1.150"},{"status":"affected","introduced":"6.2","fixed":"6.6.104"},{"status":"affected","introduced":"6.7","fixed":"6.12.45"},{"status":"affected","introduced":"6.13","fixed":"6.16.5"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"2.6.12"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"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/4cce478c3e82a5fc788d72adb2f4c4e983997639","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c547c8eee9d1cf6e744611d688b9f725cf9a115","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7563b456ed44151e1a82091d96f60166daea89b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/384210cceb1873a4c8218b27ba0745444436b728","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da9c9c877597170b929a6121a68dcd3dd9a80f45","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39827","url":"https://www.cve.org/CVERecord?id=CVE-2025-39827","licence":"CVE Terms of Use","modified":"2026-11-10T12:37:08.725Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39827","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39827","licence":"Public domain","modified":"2026-11-10T13:17:51.570Z"}],"updatedAt":"2026-11-25T22:59:04.732Z","epss":{"score":0.00235,"percentile":0.15527,"date":"2026-12-01T12:00:22.000Z"}}