{"id":"CVE-2026-43374","aliases":["CVE-2026-43374"],"related":[],"kind":"vulnerability","state":"published","title":"net: nexthop: fix percpu use-after-free in remove_nh_grp_entry","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: nexthop: fix percpu use-after-free in remove_nh_grp_entry\n\nWhen removing a nexthop from a group, remove_nh_grp_entry() publishes\nthe new group via rcu_assign_pointer() then immediately frees the\nremoved entry's percpu stats with free_percpu(). However, the\nsynchronize_net() grace period in the caller remove_nexthop_from_groups()\nruns after the free. RCU readers that entered before the publish still\nsee the old group and can dereference the freed stats via\nnh_grp_entry_stats_inc() -> get_cpu_ptr(nhge->stats), causing a\nuse-after-free on percpu memory.\n\nFix by deferring the free_percpu() until after synchronize_net() in the\ncaller. Removed entries are chained via nh_list onto a local deferred\nfree list. After the grace period completes and all RCU readers have\nfinished, the percpu stats are safely freed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: nexthop: fix percpu use-after-free in remove_nh_grp_entry\n\nWhen removing a nexthop from a group, remove_nh_grp_entry() publishes\nthe new group via rcu_assign_pointer() then immediately frees the\nremoved entry's percpu stats with free_percpu(). However, the\nsynchronize_net() grace period in the caller remove_nexthop_from_groups()\nruns after the free. RCU readers that entered before the publish still\nsee the old group and can dereference the freed stats via\nnh_grp_entry_stats_inc() -> get_cpu_ptr(nhge->stats), causing a\nuse-after-free on percpu memory.\n\nFix by deferring the free_percpu() until after synchronize_net() in the\ncaller. Removed entries are chained via nh_list onto a local deferred\nfree list. After the grace period completes and all RCU readers have\nfinished, the percpu stats are safely freed.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: nexthop: corregir uso después de liberación percpu en remove_nh_grp_entry\n\nAl eliminar un nexthop de un grupo, remove_nh_grp_entry() publica el nuevo grupo a través de rcu_assign_pointer() y luego libera inmediatamente las estadísticas percpu de la entrada eliminada con free_percpu(). Sin embargo, el período de gracia de synchronize_net() en la función llamadora remove_nexthop_from_groups() se ejecuta después de la liberación. Los lectores RCU que entraron antes de la publicación todavía ven el grupo antiguo y pueden desreferenciar las estadísticas liberadas a través de nh_grp_entry_stats_inc()   ->   get_cpu_ptr(nhge  ->  stats), causando un uso después de liberación en memoria percpu.\n\nSolución: aplazar el free_percpu() hasta después de synchronize_net() en la función llamadora. Las entradas eliminadas se encadenan a través de nh_list a una lista local de liberación diferida. Después de que el período de gracia se complete y todos los lectores RCU hayan terminado, las estadísticas percpu se liberan de forma segura.","source":"nvd"}],"published":"2026-05-08T14:21:24.537Z","modified":"2026-11-11T20:10:00.273Z","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"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"f4676ea74b8549cd88dbfe2a592ce4530039e61f","fixed":"abf4feaee6405f1441929c6ebe7a250f2cd170a7","status":"affected"},{"type":"git","introduced":"f4676ea74b8549cd88dbfe2a592ce4530039e61f","fixed":"ab5ebab9664214ba41a7633cb4e72f128204f924","status":"affected"},{"type":"git","introduced":"f4676ea74b8549cd88dbfe2a592ce4530039e61f","fixed":"9e08ad731862b22a87cc55f752e16d66cdc9e231","status":"affected"},{"type":"git","introduced":"f4676ea74b8549cd88dbfe2a592ce4530039e61f","fixed":"b2662e7593e94ae09b1cf7ee5f09160a3612bcb2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.78","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.19","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.9","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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":"6.9","fixed":"6.12.78"},{"status":"affected","introduced":"6.13","fixed":"6.18.19"},{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"6.9"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/abf4feaee6405f1441929c6ebe7a250f2cd170a7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ab5ebab9664214ba41a7633cb4e72f128204f924","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9e08ad731862b22a87cc55f752e16d66cdc9e231","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2662e7593e94ae09b1cf7ee5f09160a3612bcb2","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:16:55.959Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43374","url":"https://www.cve.org/CVERecord?id=CVE-2026-43374","licence":"CVE Terms of Use","modified":"2026-10-19T19:16:28.049Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43374","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43374","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.035Z","epss":{"score":0.00159,"percentile":0.05274,"date":"2026-12-02T12:00:21.000Z"}}