{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-52986: netfilter: nf_conntrack_sip: don't use simple_strtoul","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-52986","status":"final","version":"1","initial_release_date":"2026-06-24T16:29:00.752Z","current_release_date":"2026-06-28T06:37:38.888Z","revision_history":[{"date":"2026-06-24T16:29:00.752Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_conntrack_sip: don't use simple_strtoul\n\nReplace unsafe port parsing in epaddr_len(), ct_sip_parse_header_uri(),\nand ct_sip_parse_request() with a new sip_parse_port() helper that\nvalidates each digit against the buffer limit, eliminating the use of\nsimple_strtoul() which assumes NUL-terminated strings.\n\nThe previous code dereferenced pointers without bounds checks after\nsip_parse_addr() and relied on simple_strtoul() on non-NUL-terminated\nskb data. A port that reaches the buffer limit without a trailing\ncharacter is also rejected as malformed.\n\nAlso get rid of all simple_strtoul() usage in conntrack, prefer a\nstricter version instead.  There are intentional changes:\n\n- Bail out if number is > UINT_MAX and indicate a failure, same for\n  too long sequences.\n  While we do accept 05535 as port 5535, we will not accept e.g.\n  'sip:10.0.0.1:005060'.  While its syntactically valid under RFC 3261,\n  we should restrict this to not waste cycles when presented with\n  malformed packets with 64k '0' characters.\n\n- Force base 10 in ct_sip_parse_numerical_param(). This is used to fetch\n  'expire=' and 'rports='; both are expected to use base-10.\n\n- In nf_nat_sip.c, only accept the parsed value if its within the 1k-64k\n  range.\n\n- epaddr_len now returns 0 if the port is invalid, as it already does\n  for invalid ip addresses.  This is intentional. nf_conntrack_sip\n  performs lots of guesswork to find the right parts of the message\n  to parse.  Being stricter could break existing setups.\n  Connection tracking helpers are designed to allow traffic to\n  pass, not to block it.\n\nBased on an earlier patch from Jenny Guanni Qu <qguanni@gmail.com>.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-52986 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-52986"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-52986"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/8cd0358379570003659186706e077929d6930c40"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/9c6afcb1c3cbb2c0da65b8515ac14d7273872f84"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/b3264c977e79d8a25778d4fd11520f00fea1329c"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/ea2ecd29b8f4433e52607192ca91084f95787ca0"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/9f69c323ae0ab517e595c2cc74e0ae0d9d085611"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/7df9863bf538a626e8a684e59cb2c43eac0ef3c8"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/523762e3b6933fff81f01dfa3c60c0774044cdab"},{"category":"external","summary":"git.kernel.org","url":"https://git.kernel.org/stable/c/8cf6809cddcbe301aedfc6b51bcd4944d45795f6"}]},"product_tree":{"branches":[{"category":"vendor","name":"Linux","branches":[{"category":"product_name","name":"Linux","branches":[{"category":"product_version_range","name":">=05e3ced297fe755093140e7487e292fb7603316e <8cd0358379570003659186706e077929d6930c40","product":{"name":"Linux Linux >=05e3ced297fe755093140e7487e292fb7603316e <8cd0358379570003659186706e077929d6930c40","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=05e3ced297fe755093140e7487e292fb7603316e <9c6afcb1c3cbb2c0da65b8515ac14d7273872f84","product":{"name":"Linux Linux >=05e3ced297fe755093140e7487e292fb7603316e <9c6afcb1c3cbb2c0da65b8515ac14d7273872f84","product_id":"CSAFPID-2","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=05e3ced297fe755093140e7487e292fb7603316e <b3264c977e79d8a25778d4fd11520f00fea1329c","product":{"name":"Linux Linux >=05e3ced297fe755093140e7487e292fb7603316e <b3264c977e79d8a25778d4fd11520f00fea1329c","product_id":"CSAFPID-3","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=05e3ced297fe755093140e7487e292fb7603316e <ea2ecd29b8f4433e52607192ca91084f95787ca0","product":{"name":"Linux Linux >=05e3ced297fe755093140e7487e292fb7603316e <ea2ecd29b8f4433e52607192ca91084f95787ca0","product_id":"CSAFPID-4","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=05e3ced297fe755093140e7487e292fb7603316e <9f69c323ae0ab517e595c2cc74e0ae0d9d085611","product":{"name":"Linux Linux >=05e3ced297fe755093140e7487e292fb7603316e <9f69c323ae0ab517e595c2cc74e0ae0d9d085611","product_id":"CSAFPID-5","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=05e3ced297fe755093140e7487e292fb7603316e <7df9863bf538a626e8a684e59cb2c43eac0ef3c8","product":{"name":"Linux Linux >=05e3ced297fe755093140e7487e292fb7603316e <7df9863bf538a626e8a684e59cb2c43eac0ef3c8","product_id":"CSAFPID-6","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=05e3ced297fe755093140e7487e292fb7603316e <523762e3b6933fff81f01dfa3c60c0774044cdab","product":{"name":"Linux Linux >=05e3ced297fe755093140e7487e292fb7603316e <523762e3b6933fff81f01dfa3c60c0774044cdab","product_id":"CSAFPID-7","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}},{"category":"product_version_range","name":">=05e3ced297fe755093140e7487e292fb7603316e <8cf6809cddcbe301aedfc6b51bcd4944d45795f6","product":{"name":"Linux Linux >=05e3ced297fe755093140e7487e292fb7603316e <8cf6809cddcbe301aedfc6b51bcd4944d45795f6","product_id":"CSAFPID-8","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:*:*:*:*:*:*:*:*"}}}]}]},{"category":"vendor","name":"Linux","branches":[{"category":"product_name","name":"Linux","branches":[{"category":"product_version","name":"2.6.26","product":{"name":"Linux Linux 2.6.26","product_id":"CSAFPID-9","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"0","product":{"name":"Linux Linux 0","product_id":"CSAFPID-10","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"5.10.258","product":{"name":"Linux Linux 5.10.258","product_id":"CSAFPID-11","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"5.15.209","product":{"name":"Linux Linux 5.15.209","product_id":"CSAFPID-12","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.1.175","product":{"name":"Linux Linux 6.1.175","product_id":"CSAFPID-13","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.6.141","product":{"name":"Linux Linux 6.6.141","product_id":"CSAFPID-14","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.12.91","product":{"name":"Linux Linux 6.12.91","product_id":"CSAFPID-15","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"6.18.33","product":{"name":"Linux Linux 6.18.33","product_id":"CSAFPID-16","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"7.0.10","product":{"name":"Linux Linux 7.0.10","product_id":"CSAFPID-17","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}},{"category":"product_version","name":"7.1","product":{"name":"Linux Linux 7.1","product_id":"CSAFPID-18","product_identification_helper":{"cpe":"cpe:2.3:a:linux:linux:2.6.26:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-52986","title":"netfilter: nf_conntrack_sip: don't use simple_strtoul","notes":[{"category":"description","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfilter: nf_conntrack_sip: don't use simple_strtoul\n\nReplace unsafe port parsing in epaddr_len(), ct_sip_parse_header_uri(),\nand ct_sip_parse_request() with a new sip_parse_port() helper that\nvalidates each digit against the buffer limit, eliminating the use of\nsimple_strtoul() which assumes NUL-terminated strings.\n\nThe previous code dereferenced pointers without bounds checks after\nsip_parse_addr() and relied on simple_strtoul() on non-NUL-terminated\nskb data. A port that reaches the buffer limit without a trailing\ncharacter is also rejected as malformed.\n\nAlso get rid of all simple_strtoul() usage in conntrack, prefer a\nstricter version instead.  There are intentional changes:\n\n- Bail out if number is > UINT_MAX and indicate a failure, same for\n  too long sequences.\n  While we do accept 05535 as port 5535, we will not accept e.g.\n  'sip:10.0.0.1:005060'.  While its syntactically valid under RFC 3261,\n  we should restrict this to not waste cycles when presented with\n  malformed packets with 64k '0' characters.\n\n- Force base 10 in ct_sip_parse_numerical_param(). This is used to fetch\n  'expire=' and 'rports='; both are expected to use base-10.\n\n- In nf_nat_sip.c, only accept the parsed value if its within the 1k-64k\n  range.\n\n- epaddr_len now returns 0 if the port is invalid, as it already does\n  for invalid ip addresses.  This is intentional. nf_conntrack_sip\n  performs lots of guesswork to find the right parts of the message\n  to parse.  Being stricter could break existing setups.\n  Connection tracking helpers are designed to allow traffic to\n  pass, not to block it.\n\nBased on an earlier patch from Jenny Guanni Qu <qguanni@gmail.com>.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9"],"fixed":["CSAFPID-10","CSAFPID-11","CSAFPID-12","CSAFPID-13","CSAFPID-14","CSAFPID-15","CSAFPID-16","CSAFPID-17","CSAFPID-18"]},"scores":[{"cvss_v3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"products":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9"]}],"remediations":[{"category":"vendor_fix","details":"Update to a fixed version: 0, 5.10.258, 5.15.209, 523762e3b6933fff81f01dfa3c60c0774044cdab, 6.1.175, 6.6.141, 6.12.91, 6.18.33, 7.0.10, 7.1, 7df9863bf538a626e8a684e59cb2c43eac0ef3c8, 8cd0358379570003659186706e077929d6930c40, 8cf6809cddcbe301aedfc6b51bcd4944d45795f6, 9c6afcb1c3cbb2c0da65b8515ac14d7273872f84, 9f69c323ae0ab517e595c2cc74e0ae0d9d085611, b3264c977e79d8a25778d4fd11520f00fea1329c, ea2ecd29b8f4433e52607192ca91084f95787ca0.","product_ids":["CSAFPID-1","CSAFPID-2","CSAFPID-3","CSAFPID-4","CSAFPID-5","CSAFPID-6","CSAFPID-7","CSAFPID-8","CSAFPID-9"]}]}]}