{"id":"CVE-2026-31680","aliases":["CVE-2026-31680"],"related":[],"kind":"vulnerability","state":"published","title":"net: ipv6: flowlabel: defer exclusive option free until RCU teardown","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ipv6: flowlabel: defer exclusive option free until RCU teardown\n\n`ip6fl_seq_show()` walks the global flowlabel hash under the seq-file\nRCU read-side lock and prints `fl->opt->opt_nflen` when an option block\nis present.\n\nExclusive flowlabels currently free `fl->opt` as soon as `fl->users`\ndrops to zero in `fl_release()`. However, the surrounding\n`struct ip6_flowlabel` remains visible in the global hash table until\nlater garbage collection removes it and `fl_free_rcu()` finally tears it\ndown.\n\nA concurrent `/proc/net/ip6_flowlabel` reader can therefore race that\nearly `kfree()` and dereference freed option state, triggering a crash\nin `ip6fl_seq_show()`.\n\nFix this by keeping `fl->opt` alive until `fl_free_rcu()`. That matches\nthe lifetime already required for the enclosing flowlabel while readers\ncan still reach it under RCU.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ipv6: flowlabel: defer exclusive option free until RCU teardown\n\n`ip6fl_seq_show()` walks the global flowlabel hash under the seq-file\nRCU read-side lock and prints `fl->opt->opt_nflen` when an option block\nis present.\n\nExclusive flowlabels currently free `fl->opt` as soon as `fl->users`\ndrops to zero in `fl_release()`. However, the surrounding\n`struct ip6_flowlabel` remains visible in the global hash table until\nlater garbage collection removes it and `fl_free_rcu()` finally tears it\ndown.\n\nA concurrent `/proc/net/ip6_flowlabel` reader can therefore race that\nearly `kfree()` and dereference freed option state, triggering a crash\nin `ip6fl_seq_show()`.\n\nFix this by keeping `fl->opt` alive until `fl_free_rcu()`. That matches\nthe lifetime already required for the enclosing flowlabel while readers\ncan still reach it under RCU.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: ipv6: flowlabel: aplazar la liberación de la opción exclusiva hasta el desmontaje de RCU\n\n’ip6fl_seq_show()’ recorre el hash global de flowlabel bajo el bloqueo de lectura de RCU del archivo seq e imprime ’fl  ->  opt  ->  opt_nflen’ cuando un bloque de opción está presente.\n\nLos flowlabels exclusivos actualmente liberan ’fl  ->  opt’ tan pronto como ’fl  ->  users’ cae a cero en ’fl_release()’. Sin embargo, la ’struct ip6_flowlabel’ circundante permanece visible en la tabla hash global hasta que una recolección de basura posterior la elimine y ’fl_free_rcu()’ finalmente la desmonte.\n\nUn lector concurrente de ’/proc/ net/ip6_flowlabel’ puede, por lo tanto, competir con esa ’kfree()’ temprana y desreferenciar el estado de opción liberado, lo que provoca un fallo en ’ip6fl_seq_show()’.\n\nSoluciona esto manteniendo ’fl  ->  opt’ vivo hasta ’fl_free_rcu()’. Eso coincide con la vida útil ya requerida para el flowlabel que lo contiene mientras los lectores aún pueden acceder a él bajo RCU.","source":"nvd"}],"published":"2026-04-25T08:46:56.807Z","modified":"2026-11-11T23:10:00.263Z","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":"d3aedd5ebd4b0b925b0bcda548066803e1318499","fixed":"4b6798024f7b2d535f3db1002c760143cdbd1bd3","status":"affected"},{"type":"git","introduced":"d3aedd5ebd4b0b925b0bcda548066803e1318499","fixed":"3c54b66c83fb8fcbde8e6a7bf90b65856e39f827","status":"affected"},{"type":"git","introduced":"d3aedd5ebd4b0b925b0bcda548066803e1318499","fixed":"5a6b15f861b7c1304949e3350d23490a5fe429fd","status":"affected"},{"type":"git","introduced":"d3aedd5ebd4b0b925b0bcda548066803e1318499","fixed":"6c7fbdb8ffde6413640de7cfbd7c976c353e89f8","status":"affected"},{"type":"git","introduced":"d3aedd5ebd4b0b925b0bcda548066803e1318499","fixed":"8027964931785cb73d520ac70a342a3dc16c249b","status":"affected"},{"type":"git","introduced":"d3aedd5ebd4b0b925b0bcda548066803e1318499","fixed":"414726b69921fe6355ae453f5b35e68dd078342a","status":"affected"},{"type":"git","introduced":"d3aedd5ebd4b0b925b0bcda548066803e1318499","fixed":"572ce62778519a7d4d1c15f55dd2e45a474133c4","status":"affected"},{"type":"git","introduced":"d3aedd5ebd4b0b925b0bcda548066803e1318499","fixed":"9ca562bb8e66978b53028fa32b1a190708e6a091","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9","status":"unaffected"},{"type":"semver","introduced":"5.10.253","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.203","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.168","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","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":"3.9","fixed":"5.10.253"},{"status":"affected","introduced":"5.11","fixed":"5.15.203"},{"status":"affected","introduced":"5.16","fixed":"6.1.168"},{"status":"affected","introduced":"6.2","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"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/4b6798024f7b2d535f3db1002c760143cdbd1bd3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3c54b66c83fb8fcbde8e6a7bf90b65856e39f827","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a6b15f861b7c1304949e3350d23490a5fe429fd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6c7fbdb8ffde6413640de7cfbd7c976c353e89f8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8027964931785cb73d520ac70a342a3dc16c249b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/414726b69921fe6355ae453f5b35e68dd078342a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/572ce62778519a7d4d1c15f55dd2e45a474133c4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9ca562bb8e66978b53028fa32b1a190708e6a091","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.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","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:12:23.036Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31680","url":"https://www.cve.org/CVERecord?id=CVE-2026-31680","licence":"CVE Terms of Use","modified":"2026-11-10T12:45:28.460Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31680","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31680","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.592Z","epss":{"score":0.0017,"percentile":0.06683,"date":"2026-12-01T12:00:22.000Z"}}