AZL-118442: CVE-2026-143265 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nfconntracksip: fix OOB read in ctsipparsetransport()
ctsipparsetransport() compares the value of the "transport=" header parameter against "TCP"/"UDP" with strncasecmp(..., 3), but it never checks that the parsed value is at least 3 bytes long.
ctsipparseparam() returns matchlen = end - start, where end is the next ';' or, when there is no ';', the end of the payload buffer (limit = dptr + datalen). If the "transport=" value is only 1 or 2 bytes long and runs exactly to the end of the payload (e.g. a REGISTER request whose Contact header ends in ";transport=T" with no trailing CRLF), matchlen is less than 3 while strncasecmp() still reads up to 3 bytes, reading 1-2 bytes past the end of the linearized skb data.
Add a matchlen check before the comparison, mirroring the sdpmediatype() pattern a few lines below, so short values cannot reach strncasecmp().
The bug was found by LLM-assisted manual review of the SIP helper's parsers and confirmed with a userspace ASan harness built from the verbatim parser functions, which reports a heap-buffer-overflow read of size 2 in strncasecmp() called from ctsipparsetransport().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel netfilter nf_conntrack_sip, check that matchlen is at least 3 before comparing the transport value with strncasecmp(..., 3).
Event History
Frequently Asked Questions
What traffic is required to trigger the out-of-bounds read?
The SIP conntrack helper must parse a transport= parameter whose value is only one or two bytes long and ends exactly at the end of the packet payload. An example is a Contact header ending in ;transport=T with no trailing CRLF.
What condition makes the short transport value unsafe?
The parser passes the value to a three-byte case-insensitive comparison against TCP or UDP without first verifying that the parsed value is at least three bytes long. This can read one or two bytes beyond the linearized skb data.