CVE-2026-52986
Received Received - Intake
BaseFortify

Publication date: 2026-06-24

Last updated on: 2026-06-24

Assigner: kernel.org

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 <[email protected]>.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-24
Last Modified
2026-06-24
Generated
2026-06-25
AI Q&A
2026-06-24
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
linux_kernel linux_kernel *
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel's netfilter component relates to unsafe port parsing in the nf_conntrack_sip module. The original code used the function simple_strtoul() to parse ports from SIP messages, which assumed NUL-terminated strings and did not perform proper bounds checking. This could lead to dereferencing pointers beyond buffer limits.

The fix replaces simple_strtoul() with a new helper function, sip_parse_port(), which validates each digit against the buffer limit to prevent reading beyond the buffer. It also enforces stricter rules on port values, rejecting malformed or excessively long port sequences, and ensures ports are within valid ranges.

Impact Analysis

This vulnerability could allow malformed SIP packets with improperly parsed port numbers to cause unexpected behavior in the Linux kernel's connection tracking system. Because the original code did not properly check buffer boundaries, it might lead to memory corruption or incorrect parsing, potentially affecting network traffic handling.

However, the connection tracking helpers are designed to allow traffic to pass rather than block it, so the impact is more about potential instability or incorrect processing rather than outright denial of service or security bypass.

Mitigation Strategies

The vulnerability has been resolved by replacing unsafe port parsing functions in the Linux kernel's netfilter nf_conntrack_sip module with safer parsing methods that validate input more strictly.

To mitigate this vulnerability immediately, you should update your Linux kernel to a version that includes this fix, as the patch changes internal parsing logic to prevent unsafe operations.

Since the vulnerability relates to kernel code, applying the official kernel update or patch from your Linux distribution vendor is the recommended step.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-52986. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart