Skip to content
Contents
GuidesOpenWrt

Does your OpenWrt dnsmasq package include a specific security fix?

Compare three fixed release tags with the installed dnsmasq package and binary to check whether your image includes a particular fix.

A notice may ask for dnsmasq 2.92rel2. Checking only the upstream version can miss a fix that OpenWrt backported. Record the firmware release, the upstream program version and the OpenWrt package revision. Compare them with the source used to build that image.

Read the firmware, program and package versions

ubus call system board | jsonfilter -e '@.release.description' -e '@.release.target'
dnsmasq --version | head -1
if command -v apk >/dev/null; then
    apk list --installed dnsmasq dnsmasq-full
else
    opkg list-installed | grep -E '^dnsmasq( |-)'
fi

The 25.12.6 x86/64 guest reports dnsmasq 2.93 and package dnsmasq-2.93-r1; the query shown runs locally.

At tag v24.10.6 the package definition specifies upstream version 2.90, package revision 4. At v25.12.3 it specifies 2.91, revision 2. At v25.12.6 it specifies 2.93, revision 1. These are readings at three fixed tags. Third-party builds and subsequent package updates may differ; inspect the installed package list.

Trace the specific backport and test DNS from the LAN

Identify the advisory or fix you need. Open the dnsmasq package directory for the corresponding release tag and inspect its Makefile, patches and commit history. Confirm whether the fix is present at the tag for your image. OpenWrt backported upstream fixes to 2.91 on the 25.12 branch. Seeing 2.91 neither proves that the fix is missing nor establishes that an earlier image includes a later commit. If the build history is unavailable, record the result as unverified.

If an update is required, first backup the DHCP/DNS configurations. During maintenance windows, use a supported firmware that matches both the device and version. After the update, verify the aforementioned three fields again. From a LAN client, query the gateway with a known local network name and a normal external name, and validate the IP address and response server. The localhost in the experimental screenshot only applies to the router's own machine. When DNS resolution anomalies occur, retain the logs. Restore the verified configuration via the original wired management interface. Do not mix-install packages from a different distribution on an actively running gateway.

When OpenWrt cannot install a package

Explore hardware

Comments