KernelScan.io

HIGH

netfilter SIP Truncation

CVE-2026-23457

CVSS 8.6 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

KernelScan AI8.0HIGH

01

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack_sip: fix Content-Length u32 truncation in sip_help_tcp() sip_help_tcp() parses the SIP Content-Length header with simple_strtoul(), which returns unsigned long, but stores the result in unsigned int clen. On 64-bit systems, values exceeding UINT_MAX are silently truncated before computing the SIP message boundary. For example, Content-Length 4294967328 (2^32 + 32) is truncated to 32, causing the parser to miscalculate where the current message ends. The loop then treats trailing data in the TCP segment as a second SIP message and processes it through the SDP parser. Fix this by changing clen to unsigned long to match the return type of simple_strtoul(), and reject Content-Length values that exceed the remaining TCP payload length.

02

Engine v0.2.0

Risk summary

Attackers can send SIP packets with malformed Content-Length headers exceeding 2^32 to cause integer truncation in the netfilter SIP connection tracker. This leads to parser confusion where trailing TCP data is misinterpreted as additional SIP messages, potentially causing denial of service or incorrect packet processing on systems with SIP connection tracking enabled.

Affectednet/netfilter/nf_conntrack_sip.c (netfilter)

Vulnerability analysis

The vulnerability occurs in sip_help_tcp() where simple_strtoul() returns unsigned long but the result is stored in unsigned int clen. On 64-bit systems, Content-Length values above UINT_MAX are silently truncated, causing the parser to miscalculate SIP message boundaries. The fix changes clen to unsigned long and adds validation to reject Content-Length values exceeding the remaining TCP payload. This affects any system processing SIP over TCP with netfilter connection tracking enabled.

03

BranchFixed inPatch commit
5.105.10.253ed81b6a70124
5.155.15.203cd1b7403ec83
6.16.1.167b75209debb9a
6.126.12.7875fcaee5170e
6.186.18.20865dba58958c
6.196.19.10d4f17256544c
6.66.6.130528b4509c9df
mainline7.0fbce58e719a1