{"id":"CVE-2026-43116","aliases":["CVE-2026-43116"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: ctnetlink: ensure safe access to master conntrack","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: ctnetlink: ensure safe access to master conntrack\n\nHolding reference on the expectation is not sufficient, the master\nconntrack object can just go away, making exp->master invalid.\n\nTo access exp->master safely:\n\n- Grab the nf_conntrack_expect_lock, this gets serialized with\n  clean_from_lists() which also holds this lock when the master\n  conntrack goes away.\n\n- Hold reference on master conntrack via nf_conntrack_find_get().\n  Not so easy since the master tuple to look up for the master conntrack\n  is not available in the existing problematic paths.\n\nThis patch goes for extending the nf_conntrack_expect_lock section\nto address this issue for simplicity, in the cases that are described\nbelow this is just slightly extending the lock section.\n\nThe add expectation command already holds a reference to the master\nconntrack from ctnetlink_create_expect().\n\nHowever, the delete expectation command needs to grab the spinlock\nbefore looking up for the expectation. Expand the existing spinlock\nsection to address this to cover the expectation lookup. Note that,\nthe nf_ct_expect_iterate_net() calls already grabs the spinlock while\niterating over the expectation table, which is correct.\n\nThe get expectation command needs to grab the spinlock to ensure master\nconntrack does not go away. This also expands the existing spinlock\nsection to cover the expectation lookup too. I needed to move the\nnetlink skb allocation out of the spinlock to keep it GFP_KERNEL.\n\nFor the expectation events, the IPEXP_DESTROY event is already delivered\nunder the spinlock, just move the delivery of IPEXP_NEW under the\nspinlock too because the master conntrack event cache is reached through\nexp->master.\n\nWhile at it, add lockdep notations to help identify what codepaths need\nto grab the spinlock.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: ctnetlink: ensure safe access to master conntrack\n\nHolding reference on the expectation is not sufficient, the master\nconntrack object can just go away, making exp->master invalid.\n\nTo access exp->master safely:\n\n- Grab the nf_conntrack_expect_lock, this gets serialized with\n  clean_from_lists() which also holds this lock when the master\n  conntrack goes away.\n\n- Hold reference on master conntrack via nf_conntrack_find_get().\n  Not so easy since the master tuple to look up for the master conntrack\n  is not available in the existing problematic paths.\n\nThis patch goes for extending the nf_conntrack_expect_lock section\nto address this issue for simplicity, in the cases that are described\nbelow this is just slightly extending the lock section.\n\nThe add expectation command already holds a reference to the master\nconntrack from ctnetlink_create_expect().\n\nHowever, the delete expectation command needs to grab the spinlock\nbefore looking up for the expectation. Expand the existing spinlock\nsection to address this to cover the expectation lookup. Note that,\nthe nf_ct_expect_iterate_net() calls already grabs the spinlock while\niterating over the expectation table, which is correct.\n\nThe get expectation command needs to grab the spinlock to ensure master\nconntrack does not go away. This also expands the existing spinlock\nsection to cover the expectation lookup too. I needed to move the\nnetlink skb allocation out of the spinlock to keep it GFP_KERNEL.\n\nFor the expectation events, the IPEXP_DESTROY event is already delivered\nunder the spinlock, just move the delivery of IPEXP_NEW under the\nspinlock too because the master conntrack event cache is reached through\nexp->master.\n\nWhile at it, add lockdep notations to help identify what codepaths need\nto grab the spinlock.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnetfilter: ctnetlink: asegurar acceso seguro a conntrack maestro\n\nMantener una referencia sobre la expectativa no es suficiente, el objeto conntrack maestro puede simplemente desaparecer, haciendo que exp  ->  master sea inválido.\n\nPara acceder a exp  ->  master de forma segura:\n\n- Adquirir el nf_conntrack_expect_lock, esto se serializa con clean_from_lists() que también mantiene este bloqueo cuando el conntrack maestro desaparece.\n\n- Mantener una referencia sobre el conntrack maestro a través de nf_conntrack_find_get(). No es tan fácil ya que la tupla maestra para buscar el conntrack maestro no está disponible en las rutas problemáticas existentes.\n\nEste parche opta por extender la sección nf_conntrack_expect_lock para abordar este problema por simplicidad; en los casos que se describen a continuación, esto solo extiende ligeramente la sección de bloqueo.\n\nEl comando de añadir expectativa ya mantiene una referencia al conntrack maestro desde ctnetlink_create_expect().\n\nSin embargo, el comando de eliminar expectativa necesita adquirir el spinlock antes de buscar la expectativa. Expandir la sección de spinlock existente para abordar esto y cubrir la búsqueda de la expectativa. Tenga en cuenta que las llamadas a nf_ct_expect_iterate_net() ya adquieren el spinlock mientras iteran sobre la tabla de expectativas, lo cual es correcto.\n\nEl comando de obtener expectativa necesita adquirir el spinlock para asegurar que el conntrack maestro no desaparezca. Esto también expande la sección de spinlock existente para cubrir también la búsqueda de la expectativa. Necesité mover la asignación de netlink skb fuera del spinlock para mantenerla GFP_KERNEL.\n\nPara los eventos de expectativa, el evento IPEXP_DESTROY ya se entrega bajo el spinlock; simplemente mueva la entrega de IPEXP_NEW también bajo el spinlock porque la caché de eventos del conntrack maestro se alcanza a través de exp  ->  master.\n\nYa que estamos, añada anotaciones de lockdep para ayudar a identificar qué rutas de código necesitan adquirir el spinlock.","source":"nvd"}],"published":"2026-05-06T07:40:41.185Z","modified":"2026-11-11T21:10:00.200Z","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-362"],"affected":[{"ranges":[{"type":"git","introduced":"c1d10adb4a521de5760112853f42aaeefcec96eb","fixed":"9e1196d27ef496f404c76f7a9d03761142d991c4","status":"affected"},{"type":"git","introduced":"c1d10adb4a521de5760112853f42aaeefcec96eb","fixed":"5e1c1d22268ae710c238342c8030c21daf298168","status":"affected"},{"type":"git","introduced":"c1d10adb4a521de5760112853f42aaeefcec96eb","fixed":"d52fa1fa7440676b8c238037a050ab008c22737f","status":"affected"},{"type":"git","introduced":"c1d10adb4a521de5760112853f42aaeefcec96eb","fixed":"f338ced0473849c9f6ed0b77ca99f1aab5826787","status":"affected"},{"type":"git","introduced":"c1d10adb4a521de5760112853f42aaeefcec96eb","fixed":"497f99b26fffdc5635706d1b4811f1ed8ee21a5b","status":"affected"},{"type":"git","introduced":"c1d10adb4a521de5760112853f42aaeefcec96eb","fixed":"bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5","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.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.16","status":"unaffected"},{"type":"semver","introduced":"6.1.176","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.143","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.94","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","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":"2.6.16","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"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/9e1196d27ef496f404c76f7a9d03761142d991c4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e1c1d22268ae710c238342c8030c21daf298168","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d52fa1fa7440676b8c238037a050ab008c22737f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f338ced0473849c9f6ed0b77ca99f1aab5826787","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/497f99b26fffdc5635706d1b4811f1ed8ee21a5b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bffcaad9afdfe45d7fc777397d3b83c1e3ebffe5","tags":["patch"],"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"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:14:47.387Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43116","url":"https://www.cve.org/CVERecord?id=CVE-2026-43116","licence":"CVE Terms of Use","modified":"2026-11-10T12:46:35.383Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43116","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43116","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.682Z","epss":{"score":0.0013,"percentile":0.02876,"date":"2026-12-01T12:00:22.000Z"}}