~ahasenack/ubuntu/+source/dnsmasq:jammy-dnsmasq-crash-2045570

Last commit made on 2024-01-03
Get this branch:
git clone -b jammy-dnsmasq-crash-2045570 https://git.launchpad.net/~ahasenack/ubuntu/+source/dnsmasq
Only Andreas Hasenack can upload to this branch. If you are Andreas Hasenack please log in for upload directions.

Branch merges

Branch information

Name:
jammy-dnsmasq-crash-2045570
Repository:
lp:~ahasenack/ubuntu/+source/dnsmasq

Recent commits

4097355... by Andreas Hasenack

changelog

7bf8806... by Simon Kelley

Fix crash after re-reading an empty resolv.conf file.

If dnsmasq re-reads a resolv file, and it's empty, it will
retry after a delay. In the meantime, the old servers from the
resolv file have been deleted, but the servers_array doesn't
get updated, leading to dangling pointers and crashes.

Thanks to Brad Jorsch for finding and analysing this bug.

This problem was introduced in 2.86.

e23dc75... by Miriam España Acebal

changelog 2.86-1.1ubuntu0.4

8875ef8... by Miriam España Acebal

Fix confusion is server=/domain/# combined with server|address=/domain/....

The 2.86 domain matching rewrite failed to take into account the possibilty that

server=/example.com/#

could be combined with, for example

address=/example.com/1.2.3.4

resulting in the struct server datastructure for the former getting passed
to forward_query(), rapidly followed by a SEGV.

This fix makes server=/example.com/# a fully fledged member of the
priority list, which is now IPv6 addr, IPv4 addr, all zero return,
resolvconf servers, upstream servers, no-data return

Thanks to <email address hidden> for finding and characterising the bug.

715e3ca... by Ian Constantin

2.86-1.1ubuntu0.3 (patches unapplied)

Imported using git-ubuntu import.

c0f8d3f... by Lena Voytek

2.86-1.1ubuntu0.2 (patches unapplied)

Imported using git-ubuntu import.

c63da8f... by Leonidas S. Barbosa

2.86-1.1ubuntu0.1 (patches unapplied)

Imported using git-ubuntu import.

cccad04... by Michael Biebl

2.86-1.1 (patches unapplied)

Imported using git-ubuntu import.

e6a74c4... by Simon Kelley

2.86-1 (patches unapplied)

Imported using git-ubuntu import.

42c318f... by Simon Kelley

2.85-1 (patches unapplied)

Imported using git-ubuntu import.