{"id":"CVE-2026-74656","aliases":["CVE-2026-74656"],"related":[],"kind":"vulnerability","state":"published","title":"ipv4: fix use-after-free in fib_nhc_update_mtu()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv4: fix use-after-free in fib_nhc_update_mtu()\n\nfib_nhc_update_mtu() walks the nexthop exception table under RTNL, but\nRTNL does not serialize this walk with PMTU exception updates. The walk\nuses rcu_dereference_protected() with a constant true condition without\nholding fnhe_lock.\n\nThe following interleaving can therefore occur:\n\n  CPU 0                              CPU 1\n  fib_nhc_update_mtu()               update_or_create_fnhe()\n    load fnhe                          spin_lock_bh(&fnhe_lock)\n                                       fnhe_remove_oldest()\n                                         unlink fnhe\n                                         kfree_rcu(fnhe, rcu)\n    <quiescent state>\n    access fnhe after grace period\n\nKASAN reported:\n\n  BUG: KASAN: slab-use-after-free in fib_nhc_update_mtu+0x3df/0x410\n  Read of size 8 at addr ffff888107d49000 by task poc/90\n  Call Trace:\n   fib_nhc_update_mtu+0x3df/0x410\n   fib_sync_mtu+0x7a/0xd0\n   fib_netdev_event+0x229/0x3f0\n   netif_set_mtu_ext+0x33a/0x570\n   dev_set_mtu+0x88/0x120\n\nThe same walk updates fnhe_pmtu and fnhe_mtu_locked. These fields form a\npair and other writers serialize them with fnhe_lock. RCU alone prevents\nreclamation, but would still allow concurrent writers to leave a mixed\npair.\n\nWalk the table under RCU and acquire fnhe_lock only while updating each\nexception. RCU keeps the current entry alive while the short critical\nsection serializes its paired PMTU fields. This avoids holding the global\nlock while scanning all 2048 buckets for every nexthop.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipv4: fix use-after-free in fib_nhc_update_mtu()\n\nfib_nhc_update_mtu() walks the nexthop exception table under RTNL, but\nRTNL does not serialize this walk with PMTU exception updates. The walk\nuses rcu_dereference_protected() with a constant true condition without\nholding fnhe_lock.\n\nThe following interleaving can therefore occur:\n\n  CPU 0                              CPU 1\n  fib_nhc_update_mtu()               update_or_create_fnhe()\n    load fnhe                          spin_lock_bh(&fnhe_lock)\n                                       fnhe_remove_oldest()\n                                         unlink fnhe\n                                         kfree_rcu(fnhe, rcu)\n    <quiescent state>\n    access fnhe after grace period\n\nKASAN reported:\n\n  BUG: KASAN: slab-use-after-free in fib_nhc_update_mtu+0x3df/0x410\n  Read of size 8 at addr ffff888107d49000 by task poc/90\n  Call Trace:\n   fib_nhc_update_mtu+0x3df/0x410\n   fib_sync_mtu+0x7a/0xd0\n   fib_netdev_event+0x229/0x3f0\n   netif_set_mtu_ext+0x33a/0x570\n   dev_set_mtu+0x88/0x120\n\nThe same walk updates fnhe_pmtu and fnhe_mtu_locked. These fields form a\npair and other writers serialize them with fnhe_lock. RCU alone prevents\nreclamation, but would still allow concurrent writers to leave a mixed\npair.\n\nWalk the table under RCU and acquire fnhe_lock only while updating each\nexception. RCU keeps the current entry alive while the short critical\nsection serializes its paired PMTU fields. This avoids holding the global\nlock while scanning all 2048 buckets for every nexthop.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nipv4: corrección de uso después de liberación en fib_nhc_update_mtu()\n\nfib_nhc_update_mtu() recorre la tabla de excepciones del siguiente salto bajo RTNL, pero RTNL no serializa este recorrido con las actualizaciones de excepciones PMTU. El recorrido utiliza rcu_dereference_protected() con una condición verdadera constante sin mantener fnhe_lock.\n\nEl siguiente entrelazado puede, por lo tanto, ocurrir:\n\n  CPU 0                              CPU 1\n  fib_nhc_update_mtu()               update_or_create_fnhe()\n    load fnhe                          spin_lock_bh(&fnhe_lock)\n                                       fnhe_remove_oldest()\n                                         unlink fnhe\n                                         kfree_rcu(fnhe, rcu)\n    <quiescent state>\n    access fnhe after grace period\n\nKASAN informó:\n\n  BUG: KASAN: slab-uso después de liberación en fib_nhc_update_mtu+0x3df/0x410\n  Read of size 8 at addr ffff888107d49000 by task PoC/90\n  Call Trace:\n   fib_nhc_update_mtu+0x3df/0x410\n   fib_sync_mtu+0x7a/0xd0\n   fib_netdev_event+0x229/0x3f0\n   netif_set_mtu_ext+0x33a/0x570\n   dev_set_mtu+0x88/0x120\n\nEl mismo recorrido actualiza fnhe_pmtu y fnhe_mtu_locked. Estos campos forman un par y otros escritores los serializan con fnhe_lock. RCU por sí solo previene la recuperación, pero aún permitiría a escritores concurrentes dejar un par mixto.\n\nRecorrer la tabla bajo RCU y adquirir fnhe_lock solo mientras se actualiza cada excepción. RCU mantiene la entrada actual viva mientras la sección crítica corta serializa sus campos PMTU emparejados. Esto evita mantener el bloqueo global mientras se escanean todos los 2048 cubos para cada siguiente salto.","source":"nvd"}],"published":"2026-08-22T15:32:30.729Z","modified":"2026-10-16T20:17:49.840Z","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":[],"affected":[{"ranges":[{"type":"git","introduced":"af7d6cce53694a88d6a1bb60c9a239a6a5144459","fixed":"fd39e711866498ae94fcf9acf6f422a4f045b681","status":"affected"},{"type":"git","introduced":"af7d6cce53694a88d6a1bb60c9a239a6a5144459","fixed":"e1e602d6b22d5cb1641c4459c487eb18bf569e0a","status":"affected"},{"type":"git","introduced":"af7d6cce53694a88d6a1bb60c9a239a6a5144459","fixed":"e00f7d2b5f2540a3415a229c982af7a25ff6362e","status":"affected"},{"type":"git","introduced":"af7d6cce53694a88d6a1bb60c9a239a6a5144459","fixed":"dfe388da13aa784851e5ebbea90afbb099075761","status":"affected"},{"type":"git","introduced":"af7d6cce53694a88d6a1bb60c9a239a6a5144459","fixed":"5a28a4b22dde92f9d293b94236314b8d6181dc4a","status":"affected"},{"type":"git","introduced":"af7d6cce53694a88d6a1bb60c9a239a6a5144459","fixed":"63996ffc594d128ccec8fc0983f91effd2d3adc4","status":"affected"},{"type":"git","introduced":"af7d6cce53694a88d6a1bb60c9a239a6a5144459","fixed":"ed503eaad62f20cdd5122d7c3078a648a99c8f16","status":"affected"},{"type":"git","introduced":"af7d6cce53694a88d6a1bb60c9a239a6a5144459","fixed":"bc5bde9ce3cc36502839dfe98e068f7303a50982","status":"affected"},{"type":"git","version":"b427832009b97a3ee412ef643a80b15372a7754d","status":"affected"},{"type":"git","version":"2b7e4c735933be79882aba2bed9afa789e03c62f","status":"affected"},{"type":"git","version":"8d59c3a6376bbc6dd3f7303968a719ffba75a4f1","status":"affected"},{"type":"git","version":"9b4869cf385aa16f89c0f019eed4ec4e36aa441c","status":"affected"},{"type":"git","version":"ff34695ced21e2dfa04d0fa1c5f6c35011fa8117","status":"affected"},{"type":"semver","introduced":"3.16.62","fixed":"3.17","status":"affected"},{"type":"semver","introduced":"4.4.162","fixed":"4.5","status":"affected"},{"type":"semver","introduced":"4.9.134","fixed":"4.10","status":"affected"},{"type":"semver","introduced":"4.14.77","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.18.15","fixed":"4.19","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.152","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.104","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.45","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/fd39e711866498ae94fcf9acf6f422a4f045b681","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e1e602d6b22d5cb1641c4459c487eb18bf569e0a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e00f7d2b5f2540a3415a229c982af7a25ff6362e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dfe388da13aa784851e5ebbea90afbb099075761","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a28a4b22dde92f9d293b94236314b8d6181dc4a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/63996ffc594d128ccec8fc0983f91effd2d3adc4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed503eaad62f20cdd5122d7c3078a648a99c8f16","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc5bde9ce3cc36502839dfe98e068f7303a50982","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T19:13:56.950Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74656","url":"https://www.cve.org/CVERecord?id=CVE-2026-74656","licence":"CVE Terms of Use","modified":"2026-10-16T19:16:07.512Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74656","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74656","licence":"Public domain","modified":"2026-10-16T20:17:49.840Z"}],"updatedAt":"2026-11-25T22:59:34.919Z","epss":{"score":0.00126,"percentile":0.02429,"date":"2026-12-01T12:00:22.000Z"}}