#1153442 connman: CVE-2026-115863: stack buffer overflow in get_domains() via DHCPv6 DOMAIN_LIST

Package:
src:connman
Source:
src:connman
Submitter:
Sumit Verma
Date:
2026-11-08 19:29:02 UTC
Severity:
normal
Tags:
#1153442#5
Date:
2026-11-08 15:39:58 UTC
From:
To:
Hi,

CVE-2026-115863 has no Debian bug yet, so I am filing this one so that the
fix does not get lost.

get_domains() in gdhcp/client.c copies a fixed NS_MAXDNAME bytes from the
DHCPv6 DOMAIN_LIST option into a stack buffer, regardless of the option
length, and then walks the labels with no bound. It is reached from a
DHCPv6 reply, and connmand runs as root. Per the CVE description, an
on-link attacker can trigger it without authentication.

The function is the same in 2.0-2 (sid), 1.44-3 (trixie) and 1.41-3
(bookworm). Upstream HEAD 9e46e4a0, the latest commit I could fetch, does
not change it.

Andrei Miu posted a fix to the connman list on 2026-10-23 (the thread is
linked from the tracker entry). The only reply so far is an unrelated form
letter, and it has not been applied upstream. I have attached that patch
unchanged.

What I checked:

- The patch applies to all three versions, with line offsets only on 1.44-3
and 1.41-3.
- I extracted the function before and after the patch and ran eight valid
DOMAIN_LIST values through it under ASan/UBSan, on all three versions:
single names, 63-byte labels, and lists of up to 40 names. The output was
identical before and after, with no sanitizer reports.
- From reading the patch, the copy is now bounded by the option length, the
buffer is NUL-terminated, and the label walk stops at the end of the copied
data.

What I did not test: I did not reproduce the overflow, and I did not run
malformed input through the patched code. I also did not do a full package
build or a run against a real DHCPv6 server. The function was compiled on
its own with a minimal stand-in for the GList calls.

Regards,
Sumit Verma