{"id":"CVE-2026-31495","aliases":["CVE-2026-31495"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: ctnetlink: use netlink policy range checks","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: ctnetlink: use netlink policy range checks\n\nReplace manual range and mask validations with netlink policy\nannotations in ctnetlink code paths, so that the netlink core rejects\ninvalid values early and can generate extack errors.\n\n- CTA_PROTOINFO_TCP_STATE: reject values > TCP_CONNTRACK_SYN_SENT2 at\n  policy level, removing the manual >= TCP_CONNTRACK_MAX check.\n- CTA_PROTOINFO_TCP_WSCALE_ORIGINAL/REPLY: reject values > TCP_MAX_WSCALE\n  (14). The normal TCP option parsing path already clamps to this value,\n  but the ctnetlink path accepted 0-255, causing undefined behavior when\n  used as a u32 shift count.\n- CTA_FILTER_ORIG_FLAGS/REPLY_FLAGS: use NLA_POLICY_MASK with\n  CTA_FILTER_F_ALL, removing the manual mask checks.\n- CTA_EXPECT_FLAGS: use NLA_POLICY_MASK with NF_CT_EXPECT_MASK, adding\n  a new mask define grouping all valid expect flags.\n\nExtracted from a broader nf-next patch by Florian Westphal, scoped to\nctnetlink for the fixes tree.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: ctnetlink: use netlink policy range checks\n\nReplace manual range and mask validations with netlink policy\nannotations in ctnetlink code paths, so that the netlink core rejects\ninvalid values early and can generate extack errors.\n\n- CTA_PROTOINFO_TCP_STATE: reject values > TCP_CONNTRACK_SYN_SENT2 at\n  policy level, removing the manual >= TCP_CONNTRACK_MAX check.\n- CTA_PROTOINFO_TCP_WSCALE_ORIGINAL/REPLY: reject values > TCP_MAX_WSCALE\n  (14). The normal TCP option parsing path already clamps to this value,\n  but the ctnetlink path accepted 0-255, causing undefined behavior when\n  used as a u32 shift count.\n- CTA_FILTER_ORIG_FLAGS/REPLY_FLAGS: use NLA_POLICY_MASK with\n  CTA_FILTER_F_ALL, removing the manual mask checks.\n- CTA_EXPECT_FLAGS: use NLA_POLICY_MASK with NF_CT_EXPECT_MASK, adding\n  a new mask define grouping all valid expect flags.\n\nExtracted from a broader nf-next patch by Florian Westphal, scoped to\nctnetlink for the fixes tree.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnetfilter: ctnetlink: utilizar comprobaciones de rango de política de netlink\n\nReemplazar las validaciones manuales de rango y máscara con anotaciones de política de netlink en las rutas de código de ctnetlink, para que el núcleo de netlink rechace los valores no válidos tempranamente y pueda generar errores extack.\n\n- CTA_PROTOINFO_TCP_STATE: rechazar valores > TCP_CONNTRACK_SYN_SENT2 a nivel de política, eliminando la comprobación manual >= TCP_CONNTRACK_MAX.\n- CTA_PROTOINFO_TCP_WSCALE_ORIGINAL/REPLY: rechazar valores > TCP_MAX_WSCALE (14). La ruta normal de análisis de opciones TCP ya se ajusta a este valor, pero la ruta de ctnetlink aceptaba 0-255, causando un comportamiento indefinido cuando se usaba como un contador de desplazamiento u32.\n- CTA_FILTER_ORIG_FLAGS/REPLY_FLAGS: usar NLA_POLICY_MASK con CTA_FILTER_F_ALL, eliminando las comprobaciones manuales de máscara.\n- CTA_EXPECT_FLAGS: usar NLA_POLICY_MASK con NF_CT_EXPECT_MASK, añadiendo una nueva definición de máscara que agrupa todas las banderas de expectación válidas.\n\nExtraído de un parche nf-next más amplio por Florian Westphal, delimitado a ctnetlink para el árbol de correcciones.","source":"nvd"}],"published":"2026-04-22T13:54:17.591Z","modified":"2026-11-11T23:10:00.263Z","severity":{"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"},"severities":[{"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":"c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4","fixed":"435b576cd2faa75154777868f8cbb73bf71644d3","status":"affected"},{"type":"git","introduced":"c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4","fixed":"2ef71307c86a9f866d6e28f1a0c06e2e9d794474","status":"affected"},{"type":"git","introduced":"c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4","fixed":"4f7d25f3f0786402ba48ff7d13b6241d77d975f5","status":"affected"},{"type":"git","introduced":"c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4","fixed":"fcec5ce2d73a41668b24e3f18c803541602a59f6","status":"affected"},{"type":"git","introduced":"c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4","fixed":"675c913b940488a84effdeeac5a1cfb657b59804","status":"affected"},{"type":"git","introduced":"c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4","fixed":"c6cb41eaae875501eaaa487b8db6539feb092292","status":"affected"},{"type":"git","introduced":"c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4","fixed":"45c33e79ae705b7af97e3117672b6cd258dd0b1b","status":"affected"},{"type":"git","introduced":"c8e2078cfe414a99cf6f2f2f1d78c7e75392e9d4","fixed":"8f15b5071b4548b0aafc03b366eb45c9c6566704","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.22","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.22","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.131","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","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.22.1","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.131"},{"status":"affected","introduced":"6.7","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"2.6.22"},{"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"},{"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/435b576cd2faa75154777868f8cbb73bf71644d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ef71307c86a9f866d6e28f1a0c06e2e9d794474","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f7d25f3f0786402ba48ff7d13b6241d77d975f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fcec5ce2d73a41668b24e3f18c803541602a59f6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/675c913b940488a84effdeeac5a1cfb657b59804","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c6cb41eaae875501eaaa487b8db6539feb092292","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45c33e79ae705b7af97e3117672b6cd258dd0b1b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8f15b5071b4548b0aafc03b366eb45c9c6566704","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":"partial","date":"2026-11-05T21:35:22.554Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31495","url":"https://www.cve.org/CVERecord?id=CVE-2026-31495","licence":"CVE Terms of Use","modified":"2026-11-10T12:44:37.122Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31495","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31495","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.293Z","epss":{"score":0.00177,"percentile":0.0431,"date":"2026-11-30T12:00:22.000Z"}}