# CVE-2026-52986: netfilter: nf_conntrack_sip: don't use simple_strtoul

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-06-24T16:29:00.752Z
- Modified: 2026-11-10T13:19:21.453Z
- Weaknesses: CWE-125, CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nf_conntrack_sip: don't use simple_strtoul

Replace unsafe port parsing in epaddr_len(), ct_sip_parse_header_uri(),
and ct_sip_parse_request() with a new sip_parse_port() helper that
validates each digit against the buffer limit, eliminating the use of
simple_strtoul() which assumes NUL-terminated strings.

The previous code dereferenced pointers without bounds checks after
sip_parse_addr() and relied on simple_strtoul() on non-NUL-terminated
skb data. A port that reaches the buffer limit without a trailing
character is also rejected as malformed.

Also get rid of all simple_strtoul() usage in conntrack, prefer a
stricter version instead.  There are intentional changes:

- Bail out if number is > UINT_MAX and indicate a failure, same for
  too long sequences.
  While we do accept 05535 as port 5535, we will not accept e.g.
  'sip:10.0.0.1:005060'.  While its syntactically valid under RFC 3261,
  we should restrict this to not waste cycles when presented with
  malformed packets with 64k '0' characters.

- Force base 10 in ct_sip_parse_numerical_param(). This is used to fetch
  'expire=' and 'rports='; both are expected to use base-10.

- In nf_nat_sip.c, only accept the parsed value if its within the 1k-64k
  range.

- epaddr_len now returns 0 if the port is invalid, as it already does
  for invalid ip addresses.  This is intentional. nf_conntrack_sip
  performs lots of guesswork to find the right parts of the message
  to parse.  Being stricter could break existing setups.
  Connection tracking helpers are designed to allow traffic to
  pass, not to block it.

Based on an earlier patch from Jenny Guanni Qu <qguanni@gmail.com>.

(As written by CVE List.)

## Affected

- Linux Linux: from 05e3ced297fe755093140e7487e292fb7603316e before 8cd0358379570003659186706e077929d6930c40; from 05e3ced297fe755093140e7487e292fb7603316e before 9c6afcb1c3cbb2c0da65b8515ac14d7273872f84; from 05e3ced297fe755093140e7487e292fb7603316e before b3264c977e79d8a25778d4fd11520f00fea1329c; from 05e3ced297fe755093140e7487e292fb7603316e before ea2ecd29b8f4433e52607192ca91084f95787ca0; from 05e3ced297fe755093140e7487e292fb7603316e before 9f69c323ae0ab517e595c2cc74e0ae0d9d085611; from 05e3ced297fe755093140e7487e292fb7603316e before 7df9863bf538a626e8a684e59cb2c43eac0ef3c8; from 05e3ced297fe755093140e7487e292fb7603316e before 523762e3b6933fff81f01dfa3c60c0774044cdab; from 05e3ced297fe755093140e7487e292fb7603316e before 8cf6809cddcbe301aedfc6b51bcd4944d45795f6; 2.6.26 (not affected: before 2.6.26; from 5.10.258 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.141 up to 6.6.*; from 6.12.91 up to 6.12.*; from 6.18.33 up to 6.18.*; from 7.0.10 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 2.6.26 before 5.10.258; from 5.11 before 5.15.209; from 5.16 before 6.1.175; from 6.2 before 6.6.141; from 6.7 before 6.12.91; from 6.13 before 6.18.33; from 6.19 before 7.0.10; 7.1

## References

- <https://git.kernel.org/stable/c/8cd0358379570003659186706e077929d6930c40> (patch)
- <https://git.kernel.org/stable/c/9c6afcb1c3cbb2c0da65b8515ac14d7273872f84> (patch)
- <https://git.kernel.org/stable/c/b3264c977e79d8a25778d4fd11520f00fea1329c> (patch)
- <https://git.kernel.org/stable/c/ea2ecd29b8f4433e52607192ca91084f95787ca0> (patch)
- <https://git.kernel.org/stable/c/9f69c323ae0ab517e595c2cc74e0ae0d9d085611> (patch)
- <https://git.kernel.org/stable/c/7df9863bf538a626e8a684e59cb2c43eac0ef3c8> (patch)
- <https://git.kernel.org/stable/c/523762e3b6933fff81f01dfa3c60c0774044cdab> (patch)
- <https://git.kernel.org/stable/c/8cf6809cddcbe301aedfc6b51bcd4944d45795f6> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2026-52986](https://www.cve.org/CVERecord?id=CVE-2026-52986), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-52986](https://nvd.nist.gov/vuln/detail/CVE-2026-52986), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-52986 · Whole record: https://cve.day/CVE-2026-52986.json · Rebuilt by cve.day 2026-11-25T22:59:25.642Z
