Description
In ConnMan through 1.44, parse_rr in dnsproxy.c has a memcpy length that depends on an RR RDLENGTH value, i.e., *rdlen=ntohs(rr->rdlen) and memcpy(response+offset,*end,*rdlen) without a check for whether the sum of *end and *rdlen exceeds max. Consequently, *rdlen may be larger than the amount of remaining packet data in the current state of parsing. Values of stack memory locations may be sent over the network in a response.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ConnMan | ConnMan | ≤ 1.44 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | connman | 1.44-3 | — |
| Debian 13 | connman | 1.44-3 | — |
| Debian 12 | connman | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | connman | No fix yet | — |
| Ubuntu 26.04 LTS | connman | No fix yet | — |
| Ubuntu 25.10 | connman | No fix yet | — |
| Ubuntu 24.04 LTS | connman | No fix yet | — |
| Ubuntu 22.04 LTS | connman | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | connman | No fix yet | — |
| Ubuntu Pro 18.04 LTS | connman | No fix yet | — |
| Ubuntu Pro 16.04 LTS | connman | No fix yet | — |
References
- https://web.git.kernel.org/pub/scm/network/connman/connman.git/tree/src/dnsproxy.c?h=1.44#n1001
- https://web.git.kernel.org/pub/scm/network/connman/connman.git/tree/src/dnsproxy.c?h=1.44#n988
- https://lapis-sawfish-be3.notion.site/0-day-Comman-memory-Leak-190dc00d01d080688472d322c93c4340
- https://web.archive.org/web/20250410130356/https://lapis-sawfish-be3.notion.site/0-day-Comman-memory-Leak-190dc00d01d080688472d322c93c4340