ゆるテックノート

How to check Linux security updates

After reading about an NGINX vulnerability, you might find that your version looks older than the fixed release announced by the developers. On Linux, where you installed the software from determines which advisory and package version apply.

A backport can keep the original version number

Distributions such as Debian sometimes take a fix from a newer upstream release and apply it to the version they already ship. This is called backporting. It limits changes in a stable release. The original version number can stay the same while the distribution changes the package revision. Debian security FAQ

The distribution takes an upstream fix, applies it to the release it already ships, and publishes an updated package.
With a backport, the distribution rebuilds the package with the fix applied to its existing release.

Compare fixed versions for the same CVE

For the NGINX built-in resolver issue CVE-2026-123634, the upstream fixed releases differ from the fixed packages shipped by Debian and Ubuntu. The table shows examples of versions that addressed this CVE. Use the advisory for the release you run. NGINX, Debian, and Ubuntu

Distributor and release Example fixed version
NGINX upstream 1.30.7 and 1.31.9
Debian trixie 1.26.3-3+deb13u11
Ubuntu 24.04 LTS 1.24.0-2ubuntu7.20

Check the installation source and package version

First, identify the OS and its release. Then check the installation configuration or deployment records to find out where NGINX came from. Examples include the distribution repository, the upstream repository, a container image, or a manual build. If several copies are installed, check the one actually running the service.

Display the package version on Debian or Ubuntu

Run dpkg-query -l nginx to show the status and version of the nginx package known to dpkg. An i in the second position of the package row means the package is installed. Compare the full Version value with the fixed package in the advisory for the same distributor and OS release. If your installation uses a different package name, query that name. For a container, check the image publisher and its tag or digest. dpkg-query manual Compare APT, DNF, and pacman commands

Check which version is running after the update

After updating through your distributor, check its advisory or your operating procedure for any required service restart. A process can continue running the old program loaded before the update. For a regular kernel update, boot into the new kernel and use uname -r to verify the running release. Debian security FAQ