CVE-2026-23457
JSON

8.6high

netfilter: nf_conntrack_sip: fix Content-Length u32 truncation in sip_help_tcp()

Severity
8.6high CVSS:3.1 by Linux
Exploit likelihood
0.60% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom f5b321bd37fbec9188feb1f721ab46a5ac0b35da before ed81b6a7012485acdb9c6c80735a0b7d8e5e1873, from f5b321bd37fbec9188feb1f721ab46a5ac0b35da before cd1b7403ec835f8a0b3f1f7e68ac26af2cb1e42f, from f5b321bd37fbec9188feb1f721ab46a5ac0b35da before b75209debb9adab287b3caa982f77788c1e15027, from f5b321bd37fbec9188feb1f721ab46a5ac0b35da before 528b4509c9dfc272e2e92d811915e5211650d383, from f5b321bd37fbec9188feb1f721ab46a5ac0b35da before 75fcaee5170e7dbbee778927134ef2e9568b4659, from f5b321bd37fbec9188feb1f721ab46a5ac0b35da before 865dba58958c3a86786f89a501971ab0e3ec6ba9, from f5b321bd37fbec9188feb1f721ab46a5ac0b35da before d4f17256544cc37f6534a14a27a9dec3540c2015, from f5b321bd37fbec9188feb1f721ab46a5ac0b35da before fbce58e719a17aa215c724473fd5baaa4a8dc57c and 1 more
Not affected: before 2.6.34, from 5.10.253 up to 5.10.*, from 5.15.203 up to 5.15.*, from 6.1.167 up to 6.1.*, from 6.6.130 up to 6.6.*, from 6.12.78 up to 6.12.*
CVE List
linux linux_kernelfrom 2.6.34 before 5.10.253, from 5.11 before 5.15.203, from 5.16 before 6.1.167, from 6.2 before 6.6.130, from 6.7 before 6.12.78, from 6.13 before 6.18.20, from 6.19 before 6.19.10, 7.0NVD

Classification

CWE-190

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: netfilter: nf_conntrack_sip: corrección de la truncación u32 de Content-Length en sip_help_tcp() sip_help_tcp() analiza la cabecera SIP Content-Length con simple_strtoul(), que devuelve unsigned long, pero almacena el resultado en unsigned int clen. En sistemas de 64 bits, los valores que exceden UINT_MAX se truncan silenciosamente antes de calcular el límite del mensaje SIP. Por ejemplo, Content-Length 4294967328 (2^32 + 32) se trunca a 32, provocando que el analizador calcule erróneamente dónde termina el mensaje actual. El bucle entonces trata los datos restantes en el segmento TCP como un segundo mensaje SIP y lo procesa a través del analizador SDP. Se corrige esto cambiando clen a unsigned long para que coincida con el tipo de retorno de simple_strtoul(), y rechazando los valores de Content-Length que exceden la longitud restante de la carga útil TCP.

References

https://git.kernel.org/stable/c/ed81b6a7012485acdb9c6c80735a0b7d8e5e1873patch
https://git.kernel.org/stable/c/cd1b7403ec835f8a0b3f1f7e68ac26af2cb1e42fpatch
https://git.kernel.org/stable/c/b75209debb9adab287b3caa982f77788c1e15027patch
https://git.kernel.org/stable/c/528b4509c9dfc272e2e92d811915e5211650d383patch
https://git.kernel.org/stable/c/75fcaee5170e7dbbee778927134ef2e9568b4659patch
https://git.kernel.org/stable/c/865dba58958c3a86786f89a501971ab0e3ec6ba9patch
https://git.kernel.org/stable/c/d4f17256544cc37f6534a14a27a9dec3540c2015patch
https://git.kernel.org/stable/c/fbce58e719a17aa215c724473fd5baaa4a8dc57cpatch
https://cert-portal.siemens.com/productcert/html/ssa-082556.html
https://cert-portal.siemens.com/productcert/html/ssa-019113.html
https://cert-portal.siemens.com/productcert/html/ssa-457936.html

Sources

SourceRecordLicence
CVE ListCVE-2026-23457 changed 2026-11-10CVE Terms of Use
NVDCVE-2026-23457 changed 2026-11-10Public domain