{"id":"CVE-2026-31681","aliases":["CVE-2026-31681"],"related":[],"kind":"vulnerability","state":"published","title":"netfilter: xt_multiport: validate range encoding in checkentry","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: xt_multiport: validate range encoding in checkentry\n\nports_match_v1() treats any non-zero pflags entry as the start of a\nport range and unconditionally consumes the next ports[] element as\nthe range end.\n\nThe checkentry path currently validates protocol, flags and count, but\nit does not validate the range encoding itself. As a result, malformed\nrules can mark the last slot as a range start or place two range starts\nback to back, leaving ports_match_v1() to step past the last valid\nports[] element while interpreting the rule.\n\nReject malformed multiport v1 rules in checkentry by validating that\neach range start has a following element and that the following element\nis not itself marked as another range start.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: xt_multiport: validate range encoding in checkentry\n\nports_match_v1() treats any non-zero pflags entry as the start of a\nport range and unconditionally consumes the next ports[] element as\nthe range end.\n\nThe checkentry path currently validates protocol, flags and count, but\nit does not validate the range encoding itself. As a result, malformed\nrules can mark the last slot as a range start or place two range starts\nback to back, leaving ports_match_v1() to step past the last valid\nports[] element while interpreting the rule.\n\nReject malformed multiport v1 rules in checkentry by validating that\neach range start has a following element and that the following element\nis not itself marked as another range start.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnetfilter: xt_multiport: validar la codificación de rango en checkentry\n\nports_match_v1() trata cualquier entrada pflags distinta de cero como el inicio de un rango de puertos y consume incondicionalmente el siguiente elemento ports[] como el final del rango.\n\nLa ruta checkentry actualmente valida el protocolo, los flags y el conteo, pero no valida la codificación de rango en sí misma. Como resultado, las reglas malformadas pueden marcar la última ranura como un inicio de rango o colocar dos inicios de rango consecutivos, lo que hace que ports_match_v1() pase por alto el último elemento ports[] válido mientras interpreta la regla.\n\nRechazar reglas multiport v1 malformadas en checkentry validando que cada inicio de rango tiene un elemento siguiente y que el elemento siguiente no está marcado a su vez como otro inicio de rango.","source":"nvd"}],"published":"2026-04-25T08:46:57.995Z","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":"a89ecb6a2ef732d04058d87801e2b6bd7e5c7089","fixed":"8c5bf8f5b478f569191c4a7982de7cd5f5f73c1a","status":"affected"},{"type":"git","introduced":"a89ecb6a2ef732d04058d87801e2b6bd7e5c7089","fixed":"c9749f6232c845e31c21d4cc72200211df15d8a2","status":"affected"},{"type":"git","introduced":"a89ecb6a2ef732d04058d87801e2b6bd7e5c7089","fixed":"b67d638cbee9975c765feb45c126e96ed11ec802","status":"affected"},{"type":"git","introduced":"a89ecb6a2ef732d04058d87801e2b6bd7e5c7089","fixed":"36bf0d98e180a7c384c8d8a59b0d2d4b80e5eb16","status":"affected"},{"type":"git","introduced":"a89ecb6a2ef732d04058d87801e2b6bd7e5c7089","fixed":"aec14808271f2bf2b656de6ff12dfe73c5fd3b67","status":"affected"},{"type":"git","introduced":"a89ecb6a2ef732d04058d87801e2b6bd7e5c7089","fixed":"8368ce8eb01f0b91111d814703696e780d0ef12f","status":"affected"},{"type":"git","introduced":"a89ecb6a2ef732d04058d87801e2b6bd7e5c7089","fixed":"1e4baa853f1cc4227e04f52d6860524707cfb294","status":"affected"},{"type":"git","introduced":"a89ecb6a2ef732d04058d87801e2b6bd7e5c7089","fixed":"ff64c5bfef12461df8450e0f50bb693b5269c720","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.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.17","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","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.17","fixed":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","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"},{"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/8c5bf8f5b478f569191c4a7982de7cd5f5f73c1a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9749f6232c845e31c21d4cc72200211df15d8a2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b67d638cbee9975c765feb45c126e96ed11ec802","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/36bf0d98e180a7c384c8d8a59b0d2d4b80e5eb16","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aec14808271f2bf2b656de6ff12dfe73c5fd3b67","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8368ce8eb01f0b91111d814703696e780d0ef12f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1e4baa853f1cc4227e04f52d6860524707cfb294","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff64c5bfef12461df8450e0f50bb693b5269c720","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":"partial","date":"2026-11-06T15:24:10.438Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31681","url":"https://www.cve.org/CVERecord?id=CVE-2026-31681","licence":"CVE Terms of Use","modified":"2026-11-10T12:45:30.259Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31681","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31681","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.593Z","epss":{"score":0.00175,"percentile":0.07254,"date":"2026-12-01T12:00:22.000Z"}}