nginx Security Update on Ubuntu 24.04: Check You Are Patched

On this pagePatch and verify in seven steps
  1. Patch and verify in seven steps
  2. Is your nginx patched? The 2-minute check
  3. Why nginx -v cannot tell you the patch level
  4. What the November nginx security update on Ubuntu 24.04 fixes
  5. Before you restart: what can break
  6. Reload or restart nginx after an update?
  7. Automatic updates on 24.04: unattended-upgrades and needrestart
  8. CVE-2026-132779: ssl_early_data has no Ubuntu fix yet
  9. If the restart fails
  10. What this means for you
nginx security update on Ubuntu 24.04: a patched package on disk while the old nginx process keeps running in memory

You installed the nginx security update on Ubuntu 24.04, ran nginx -v, and it still prints nginx/1.24.0 (Ubuntu) as before. That string never changes on 24.04; the proof is a package revision of 1.24.0-2ubuntu7.21 or later and a running nginx that no longer uses the old, deleted binary.

The November fixes came in two revisions. 1.24.0-2ubuntu7.20 (USN-9159-1, 19 November 2026) fixed five CVEs, and 7.21 (USN-9182-1, 20 November) added two more, so a server that stopped at 7.20 still misses two. A third check covers CVE-2026-132779 in ssl_early_data, which has no Ubuntu fix as of 30 November 2026.

An nginx security update on Ubuntu keeps the version number and changes only a suffix on the package name. A running web server also keeps the old code in memory until it restarts.

The outputs below were reproduced with nginx 1.24.0-2ubuntu7 and 1.24.0-2ubuntu7.21 (Ubuntu 24.04.5 packages) in an Ubuntu 24.04 container without systemd; systemd behaviour is described from the unit file. Everything here applies to Ubuntu’s own packages, not to nginx.org packages, PPAs or source builds.

Patch and verify in seven steps

  1. Run the script below with sudo sh ~/nginx-patch-check.sh; every nginx package must be 1.24.0-2ubuntu7.21 or later.
  2. If it is older, run sudo apt update, then sudo apt-get install --only-upgrade nginx nginx-common libnginx-mod-mail libnginx-mod-stream, adding any other libnginx-mod-* package the script listed.
  3. Confirm “fixed in” for the seven ids Ubuntu fixed on 24.04, and treat any DISABLED line as unpatched. CVE-2026-132779 will show “not in changelog”.
  4. Back up /etc/nginx, then run sudo nginx -t; read Before you restart first.
  5. Restart, do not reload, because reloaded workers fork from the old master and keep its binary: sudo systemctl restart nginx.
  6. Run the script again: no STALE lines.
  7. Search the active config for ssl_early_data on (see CVE-2026-132779) and decide whether to turn it off until Ubuntu ships a fix.

Is your nginx patched? The 2-minute check

One read-only script checks the installed package revision, the CVE fixes its changelog records, and whether the nginx in memory still uses replaced files. Run it before and after any change.

Save it in your home directory as ~/nginx-patch-check.sh. It needs root only to read the memory map of the nginx master, and it writes nothing.

Full file: nginx-patch-check.sh (41 lines)
#!/bin/sh
# nginx-patch-check.sh - is the Ubuntu nginx package patched, and is the
# running nginx actually using the patched files?  Read-only. Run as root.
# Usage: sh nginx-patch-check.sh [CVE-ID ...]
CL=${CHANGELOG:-/usr/share/doc/nginx/changelog.Debian.gz}
[ $# -eq 0 ] && set -- CVE-2026-123007 CVE-2026-123633 CVE-2026-123634 \
  CVE-2026-113425 CVE-2026-118899 CVE-2026-125283 CVE-2026-123640 CVE-2026-132779

echo "== Installed packages"
dpkg-query -W -f='${Package} ${Version}\n' 'nginx*' 'libnginx-mod-*' 2>/dev/null |
  awk 'NF==2'
echo "nginx -v: $(nginx -v 2>&1)   (upstream version only, not the patch level)"
echo "apt candidate: $(apt-cache policy nginx 2>/dev/null | awk '/Candidate/{print $2}')"

echo "== CVE ids in $CL"
for cve in "$@"; do
  zcat -f "$CL" | awk -v id="$cve" '
    /^nginx \(/ { ver=$2; gsub(/[()]/,"",ver) }
    /^  \* /    { kind = ($0 ~ /REGRESSION/) ? "DISABLED" : "fixed" }
    index($0,id) && !done { print id": "kind" in "ver; done=1 }
    END { if (!done) print id": not in changelog (not fixed, or not affected: check ubuntu.com/security/" id ")" }'
done

echo "== Running nginx"
pid=$(cat /run/nginx.pid 2>/dev/null || pgrep -o -x nginx)
if [ -z "$pid" ] || [ ! -e "/proc/$pid" ]; then
  echo "nginx is not running"; exit 0
fi
echo "master pid $pid, started $(ps -o lstart= -p "$pid")"
if ls -l "/proc/$pid/exe" | grep -q '(deleted)'; then
  echo "STALE: master runs a deleted /usr/sbin/nginx - restart nginx"
else
  echo "binary: current /usr/sbin/nginx"
fi
old=$(awk '/\(deleted\)/ && $6 ~ /^\/(usr\/)?(s?bin|lib)/ {print $6}' "/proc/$pid/maps" | sort -u)
if [ -n "$old" ]; then
  echo "STALE: master still maps deleted files (restart needed):"
  echo "$old" | sed 's/^/  /'
else
  echo "libraries/modules: no deleted files mapped"
fi
sudo sh ~/nginx-patch-check.sh

Output with packages at 1.24.0-2ubuntu7.21 and nginx not restarted after the upgrade:

== Installed packages
libnginx-mod-mail 1.24.0-2ubuntu7.21
libnginx-mod-stream 1.24.0-2ubuntu7.21
nginx 1.24.0-2ubuntu7.21
nginx-common 1.24.0-2ubuntu7.21
nginx -v: nginx version: nginx/1.24.0 (Ubuntu)   (upstream version only, not the patch level)
apt candidate: 1.24.0-2ubuntu7.21
== CVE ids in /usr/share/doc/nginx/changelog.Debian.gz
CVE-2026-123007: fixed in 1.24.0-2ubuntu7.20
CVE-2026-123633: fixed in 1.24.0-2ubuntu7.20
CVE-2026-123634: fixed in 1.24.0-2ubuntu7.20
CVE-2026-113425: fixed in 1.24.0-2ubuntu7.20
CVE-2026-118899: fixed in 1.24.0-2ubuntu7.20
CVE-2026-125283: fixed in 1.24.0-2ubuntu7.21
CVE-2026-123640: fixed in 1.24.0-2ubuntu7.21
CVE-2026-132779: not in changelog (not fixed, or not affected: check ubuntu.com/security/CVE-2026-132779)
== Running nginx
master pid 6360, started Mon Nov 30 10:23:52 2026
STALE: master runs a deleted /usr/sbin/nginx - restart nginx
STALE: master still maps deleted files (restart needed):
  /usr/lib/nginx/modules/ngx_mail_module.so
  /usr/lib/nginx/modules/ngx_stream_module.so
  /usr/sbin/nginx

How to read it:

  • Every nginx and libnginx-mod-* line should show 1.24.0-2ubuntu7.21 or later. The mail and stream modules carry their own copy of the fixed code.
  • Pass: fixed in on the seven CVEs Ubuntu fixed on 24.04. DISABLED means the newest changelog entry for that id switched the fix off. CVE-2026-132779 is expected to show “not in changelog” because Ubuntu has no fix yet; whether it affects you is a separate check of the active config.
  • A STALE line means the running nginx does not use the patched files yet. Test and restart: sudo nginx -t && sudo systemctl restart nginx.

After a restart, the last block reads:

== Running nginx
master pid 6093, started Mon Nov 30 10:23:32 2026
binary: current /usr/sbin/nginx
libraries/modules: no deleted files mapped

On a server that stopped at 7.20, two November ids come back missing. 7.20 is gone from the archive, so the 7.20 and 7.11 states below come from the installed 7.21 changelog, cut at that entry (replace 7.20 with 7.11 for the second file):

mkdir -p /tmp/simcl
zcat /usr/share/doc/nginx/changelog.Debian.gz | awk 'index($0,"nginx (1.24.0-2ubuntu7.20)")==1{p=1} p' | gzip > /tmp/simcl/changelog-7.20.gz

The CVE part of the script on that file (other sections trimmed):

$ CHANGELOG=/tmp/simcl/changelog-7.20.gz dash ~/nginx-patch-check.sh CVE-2026-125283 CVE-2026-123640 CVE-2026-123007 CVE-2026-42533 CVE-2026-49975
[...]
== CVE ids in /tmp/simcl/changelog-7.20.gz
CVE-2026-125283: not in changelog (not fixed, or not affected: check ubuntu.com/security/CVE-2026-125283)
CVE-2026-123640: not in changelog (not fixed, or not affected: check ubuntu.com/security/CVE-2026-123640)
CVE-2026-123007: fixed in 1.24.0-2ubuntu7.20
CVE-2026-42533: fixed in 1.24.0-2ubuntu7.18
CVE-2026-49975: fixed in 1.24.0-2ubuntu7.12
[...]

Pass other CVE ids as arguments. The script ran in about 1.2 seconds in the lab container.

Why nginx -v cannot tell you the patch level

Ubuntu keeps one upstream nginx version for the life of a release and backports fixes, copying each security patch into that older code. On 24.04 that version is 1.24.0, so nginx -v and the Server: header print nginx/1.24.0 (Ubuntu) on the release build and on 7.21 alike. The patch level lives in the package revision, the part after the hyphen.

On the unpatched release build:

$ nginx -v
nginx version: nginx/1.24.0 (Ubuntu)
$ apt-cache policy nginx
nginx:
  Installed: 1.24.0-2ubuntu7
  Candidate: 1.24.0-2ubuntu7.21

For a yes-or-no answer in monitoring, compare against the USN-9182-1 revision:

$ dpkg --compare-versions "$(dpkg-query -W -f='${Version}' nginx)" ge 1.24.0-2ubuntu7.21 && echo 'package >= USN-9182-1 fix' || echo 'package older than 7.21'
package >= USN-9182-1 fix

The changelog at /usr/share/doc/nginx/changelog.Debian.gz describes the installed package and works offline. A quick grep of it has three traps.

1. Grep for the exact id

The unpatched release build already lists 11 CVE ids on 27 lines, from CVE-2019-20372 to CVE-2024-3094 (the xz rebuild). A count of “CVE” lines proves nothing.

2. An id can appear while its fix is off

The 24.04 changelog has three SECURITY REGRESSION entries that disable an earlier fix. 7.11 turned off CVE-2026-49975 (back in 7.12); 7.15 and 7.17 turned off CVE-2026-42533 (back in 7.16 and 7.18). On the changelog as it stood at 7.11, the id still matches three times:

$ zgrep -c CVE-2026-49975 /tmp/simcl/changelog-7.11.gz
3
$ zgrep -n -B3 CVE-2026-49975 /tmp/simcl/changelog-7.11.gz | head -4
1-nginx (1.24.0-2ubuntu7.11) noble-security; urgency=medium
2-
3-  * SECURITY REGRESSION: ABI change breaking external modules (LP: #2155992)
4:    - debian/patches/CVE-2026-49975.patch: disable for now, pending further

The script reads only the newest entry that mentions an id, so on that file it prints CVE-2026-49975: DISABLED in 1.24.0-2ubuntu7.11.

3. apt changelog previews the candidate

Verification uses the installed changelog above. apt changelog nginx is an optional look before upgrading: with 1.24.0-2ubuntu7 installed it requested the 7.21 changelog from changelogs.ubuntu.com, which needs HTTPS to that host. Offline, take the candidate’s changelog from the package:

$ cd "$(mktemp -d)" && apt-get download nginx && dpkg-deb --fsys-tarfile nginx_*.deb | tar -xO ./usr/share/doc/nginx/changelog.Debian.gz | zcat | head -3
nginx (1.24.0-2ubuntu7.21) noble-security; urgency=medium

  * SECURITY UPDATE: Improper ClientHello validation in ssl_preread

What the November nginx security update on Ubuntu 24.04 fixes

Upstream, nginx 1.30.7 and 1.31.9 came out on 18 November 2026. The “10 fixes” in most news is the mainline count; 1.30.7 lists nine, because CVE-2026-120993 exists only in 1.31.4 and later. The nginx security advisories page gives each vulnerable range.

USN-9159-1 lists eight CVEs, but marks three for 26.04 and 26.10 only. CVE-2026-123640 reached 24.04 a day later in USN-9182-1, with CVE-2026-125283. Statuses are from the Ubuntu CVE tracker, checked 30 November 2026.

CVEArea (nginx.org)Ubuntu priority24.04 statusWhere the code runs on 24.04
CVE-2026-123007HTTP/2 flow controlHighFixed in 1.24.0-2ubuntu7.20Main binary; reachable when a listen line has http2
CVE-2026-123633HTTP/2 use-after-freeHighFixed in 7.20Main binary, same condition
CVE-2026-123634Resolver use-after-freeHighFixed in 7.20Main binary; used when resolver is set
CVE-2026-113425Mail proxy use-after-freeHighFixed in 7.20libnginx-mod-mail, with a mail {} block
CVE-2026-118899Request body read loop over TLS 1.3MediumFixed in 7.20Main binary
CVE-2026-125283alias with try_filesMediumFixed in 1.24.0-2ubuntu7.21Main binary
CVE-2026-123640Stream ssl_prereadMediumFixed in 7.21libnginx-mod-stream, with ssl_preread on
CVE-2026-121810HTTP/3HighNot affectedThe 24.04 build has no HTTP/3 module
CVE-2026-120967Stream SNI and client certificatesMediumNot affectedAffected code starts at 1.25.5
CVE-2026-120993PROXY protocol v2MediumNot affectedMainline 1.31.4 and later only
CVE-2026-132779ssl_early_data CPU useMediumNeeds evaluation, no fixMain binary, with ssl_early_data on

Install the update whatever the last column says; it only tells you what is exposed until the restart.

The HTTP/3 row is easy to confirm: this prints nothing on 24.04.

nginx -V 2>&1 | grep -oE "http_v3|quic"

Configure flags do not show whether mail or stream code is present. nginx -V lists --with-mail_ssl_module and --with-stream_ssl_preread_module even with neither module installed, because those parts ship as separate dynamic module packages. Check /etc/nginx/modules-enabled/ and the active config.

$ nginx -T 2>/dev/null | grep -nE "^\s*(listen .*http2|http2 on|ssl_early_data|ssl_preread|resolver |mail \{|stream \{|try_files|alias |load_module)"
87:load_module modules/ngx_mail_module.so;
90:load_module modules/ngx_stream_module.so;
246:		try_files $uri $uri/ =404;
290:    listen 443 ssl http2;
295:    ssl_early_data on;
297:        alias /var/www/static/;
298:        try_files $uri $uri/ =404;

Both modules load here although no mail {} or stream {} block exists; the module packages enable them on install, and nginx-core and nginx-extras pull those in. The fixes for CVE-2026-113425 and CVE-2026-123640 live in their .so files, so the module packages must reach 7.21 too.

Before you restart: what can break

A restart can take the site down, so check four things first.

  • Test the config. In the lab the init script refused to stop nginx when the test failed, and the old process kept answering. Under systemd, systemctl restart stops nginx before starting it again. The unit, /usr/lib/systemd/system/nginx.service, runs nginx -t -q only before the start, so with a broken config nginx stays down after the stop. That follows from the unit file; it was not run here.
  • Know where your upstreams point. nginx resolves hostnames in proxy_pass and upstream blocks at start. A user report on Ubuntu Discourse (23 September 2025) describes nginx failing its test after an automatic restart because an upstream name did not resolve; a manual restart later worked. Point local apps, such as an n8n instance behind a reverse proxy, at 127.0.0.1.
  • There is no way back to 7.20. The archive holds only the release build 1.24.0-2ubuntu7 and 7.21, so a downgrade drops every November fix. Fix forward and keep a config backup.
  • http2 on; from current docs needs nginx 1.25.1 and fails on 1.24 with unknown directive "http2"; keep listen 443 ssl http2;.
sudo tar czf /root/nginx-etc-$(date +%F).tar.gz /etc/nginx
sudo nginx -t

A failed test, and the init script refusing to restart:

$ nginx -t; echo rc=$?
2026/11/30 10:22:02 [emerg] 5582#5582: unknown directive "lab_broken_directive" in /etc/nginx/conf.d/lab-broken.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
rc=1
$ /etc/init.d/nginx restart; echo rc=$?
 * Restarting nginx nginx
   ...fail!
rc=1

If a restart on production feels risky, rehearse it on a spare KVM VPS with a copy of /etc/nginx and the same packages. A Hostry Linux VPS costs from $6 per month, comes with root access and a VNC console, and runs in 18+ locations.

Reload or restart nginx after an update?

On Linux a running program keeps the file it started from, even after an update deletes it. nginx can serve from the old binary and modules for days while every package tool reports the new revision. The kernel marks such files “(deleted)” in /proc/<PID>/exe and /proc/<PID>/maps.

An upgrade has two possible outcomes. The package script may do a binary upgrade itself (see automatic updates), or it may leave the old process running, as in this transcript right after apt-get install --only-upgrade. Either way, verify the running process:

$ dpkg -l nginx nginx-common libnginx-mod-mail libnginx-mod-stream | tail -4
ii  libnginx-mod-mail   1.24.0-2ubuntu7.21 amd64        Mail module for Nginx
ii  libnginx-mod-stream 1.24.0-2ubuntu7.21 amd64        Stream module for Nginx
ii  nginx               1.24.0-2ubuntu7.21 amd64        small, powerful, scalable web/proxy server
ii  nginx-common        1.24.0-2ubuntu7.21 all          small, powerful, scalable web/proxy server - common files
$ ls -l /proc/2236/exe
lrwxrwxrwx 1 root root 0 Nov 30 10:15 /proc/2236/exe -> /usr/sbin/nginx (deleted)
$ grep modules /proc/2236/maps | awk '{print $6,$7}' | sort -u
/usr/lib/nginx/modules/ngx_mail_module.so (deleted)
/usr/lib/nginx/modules/ngx_stream_module.so (deleted)
$ curl -sI http://127.0.0.1/ | grep Server
Server: nginx/1.24.0 (Ubuntu)

On your server:

sudo ls -l /proc/$(cat /run/nginx.pid)/exe

A reload is not enough

nginx -s reload, which is also the unit’s ExecReload, starts new workers forked from the old master. They run the deleted binary and map the old module inodes, while the files on disk have new ones.

$ nginx -s reload
2026/11/30 10:19:36 [notice] 3901#3901: signal process started
$ cat /run/nginx.pid
2236
$ ls -l /proc/3902/exe
lrwxrwxrwx 1 www-data www-data 0 Nov 30 10:19 /proc/3902/exe -> /usr/sbin/nginx (deleted)
$ grep modules /proc/3902/maps | awk '{print $5,$6,$7}' | sort -u
1631924 /usr/lib/nginx/modules/ngx_mail_module.so (deleted)
1631934 /usr/lib/nginx/modules/ngx_stream_module.so (deleted)
$ ls -i /usr/lib/nginx/modules/
1631428 ngx_mail_module.so
1631459 ngx_stream_module.so

For a new worker on your server (not run in the lab): sudo ls -l /proc/$(pgrep -n -f 'nginx: worker')/exe.

Restart to load the patched code

On a VPS: sudo nginx -t && sudo systemctl restart nginx. In the lab the init script stood in for systemd:

$ /etc/init.d/nginx restart   # substitute for systemctl restart nginx
 * Restarting nginx nginx
   ...done.
$ ls -l /proc/5539/exe
lrwxrwxrwx 1 root root 0 Nov 30 10:21 /proc/5539/exe -> /usr/sbin/nginx

Without systemd, the lab also showed nginx’s own binary upgrade loading the new code: USR2 starts a new master from the file on disk, and QUIT drains the old one. How systemd tracks the new master PID afterwards was not reproduced, so restart stays the recommendation:

sudo kill -USR2 $(cat /run/nginx.pid)
sudo kill -QUIT $(cat /run/nginx.pid.oldbin)

The new master (PID 3938) ran the current binary and modules, and HTTP answered 200 after the old master quit.

Decision flow after an nginx security update on Ubuntu 24.04: revision 7.21 or later, no deleted binary in the master process, ssl_early_data off unless needed
After an nginx package update: check the package revision, then whether the master still runs a deleted binary, then whether ssl_early_data is on.

Library updates leave nginx stale too

nginx on 24.04 uses the system OpenSSL (running 3.0.13) and PCRE2. After a libpcre2-8-0 upgrade under a running nginx, the exe link looked clean and the map still held the old library:

$ ls -l /proc/5539/exe
lrwxrwxrwx 1 root root 0 Nov 30 10:21 /proc/5539/exe -> /usr/sbin/nginx
$ grep -E 'libpcre2|libssl' /proc/5539/maps | awk '{print $6,$7}' | sort -u
/usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.11.2 (deleted)
/usr/lib/x86_64-linux-gnu/libssl.so.3
$ needrestart -b | grep SVC
NEEDRESTART-SVC: nginx

An OpenSSL update should work the same way (none was pending in the lab), so the script reads the maps too. It filters out /dev/zero (deleted), nginx’s shared memory, which a raw grep always flags.

Automatic updates on 24.04: unattended-upgrades and needrestart

Ubuntu 24.04 installs security updates on its own, and both nginx revisions came through the security pocket. Whether the running process switches to the new code depends on the package script and on needrestart, a tool that restarts services still using replaced files.

The defaults in /etc/apt/apt.conf.d/20auto-upgrades enable the daily run, and /etc/apt/apt.conf.d/50unattended-upgrades allows the security origin; Automatic-Reboot stays commented out (default false):

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
Unattended-Upgrade::Allowed-Origins {
	"${distro_id}:${distro_codename}";
	"${distro_id}:${distro_codename}-security";
	"${distro_id}ESMApps:${distro_codename}-apps-security";
	"${distro_id}ESM:${distro_codename}-infra-security";
};

A dry run on 1.24.0-2ubuntu7 listed nginx, nginx-common and both module packages. A locally edited sites-available/default did not block it, since 7.21 ships the same version of that file. If this server never got the basics, start with hardening a fresh Ubuntu 24.04 VPS in its first 30 minutes.

What the package script does with a running nginx

The 7.21 post-install script asks whether nginx is running. If yes, it does the USR2 binary upgrade itself; in the lab (init script, no systemd) the master PID changed from 4147 to 4290 without a stop:

Setting up nginx (1.24.0-2ubuntu7.21) ...
 * Upgrading binary nginx       [ OK ]
Processing triggers for nginx (1.24.0-2ubuntu7.21) ...
Triggering nginx reload ...
 * Reloading nginx configuration nginx       [ OK ]

If the service manager does not see nginx running, the script leaves the old process alone and prints one line that is easy to miss. On a VPS that can happen when nginx was started by hand outside systemd (from the script logic):

Not attempting to start NGINX, port 80 is already in use.

needrestart then attempts a full restart

needrestart’s APT hook runs after every apt transaction, unattended ones included. Ubuntu’s automatic updates documentation says that from 24.04 it restarts affected services by default. In the lab the hook found the stale nginx and issued a restart, which the container’s policy blocked:

Restarting services...
 invoke-rc.d nginx restart

That is a full restart, with the same config and DNS risks, at whatever hour the timer runs. With a broken config the init script refused, so the old unpatched process kept serving; under systemd the unit stops nginx first. /etc/needrestart/needrestart.conf does not exclude nginx. Ubuntu’s needrestart announcement shows a drop-in for excluding a service; for nginx: $nrconf{override_rc}{qr(^nginx\.service$)} = 0; in /etc/needrestart/conf.d/nginx.conf (not tested here). We would keep automatic restarts and keep nginx -t clean, because an exclusion makes every restart after an nginx, OpenSSL or PCRE2 update your job.

After any automatic run, sudo needrestart -b | grep SVC or the script tells you whether nginx was left behind.

CVE-2026-132779: ssl_early_data has no Ubuntu fix yet

ssl_early_data turns on TLS 1.3 early data (0-RTT), which lets a returning client send its first request with the handshake. With it on, a client might keep a worker busy at full CPU and degrade service. nginx.org fixed it on 23 November 2026:

Security: when using the “ssl_early_data” directive a client might cause excessive CPU usage (CVE-2026-132779).

nginx CHANGES-1.30, nginx 1.30.8, 23 Nov 2026

The Ubuntu tracker entry for CVE-2026-132779 lists 24.04 as “Needs evaluation” with no fix (last updated 25 November, checked 30 November). 1.24 accepts the directive; a test site with ssl_early_data on; passed nginx -t.

Check the active config with nginx -T; a recursive grep also matches sites that are not enabled. example.com and old.example.com are lab test sites:

$ grep -rn ssl_early_data /etc/nginx
/etc/nginx/sites-available/example.com:7:    ssl_early_data on;
/etc/nginx/sites-available/old.example.com:4:    ssl_early_data on;
$ nginx -T 2>/dev/null | grep -E "^# configuration file|ssl_early_data" | grep -B1 ssl_early_data
# configuration file /etc/nginx/sites-enabled/example.com:
    ssl_early_data on;

Only example.com is live. If nothing depends on 0-RTT, remove the directive or set ssl_early_data off; (the default) in the file nginx -T names, editing the copy in sites-available because sites-enabled holds a symlink, then test the config with sudo nginx -t and reload with sudo systemctl reload nginx. The cost is one extra round trip when a returning TLS 1.3 client resumes.

If you keep it, watch for a worker pinned at 100% of a core (not run in the lab); the tracker says the effect lasts until the worker restarts.

top -b -n1 -c -w 512 | grep '[n]ginx: worker'

An Ubuntu fix would arrive as a revision above 7.21, and the script should then print fixed in for this id.

If the restart fails

A failed restart under systemd usually leaves nginx stopped and the sites offline. Find the cause, then start it.

sudo nginx -t
sudo journalctl -u nginx -n 30 --no-pager
  • nginx -t names the file and line. Fix it, or move that file out of sites-enabled or conf.d, then sudo systemctl start nginx.
  • An upstream “host not found” error points to DNS at that moment; start again once the name resolves.
  • If today’s edit is the problem, move the broken tree aside and unpack the backup: sudo mv /etc/nginx /etc/nginx.broken && sudo tar xzf /root/nginx-etc-YYYY-MM-DD.tar.gz -C / (your backup date), then test and start. Unpacking over the old tree only reverts edited files; a file added after the backup stays and keeps failing nginx -t.

Then run the script again; it should show no STALE lines.

What this means for you

The smallest first step takes two minutes: run the check script on each server that runs nginx. If it prints a revision below 7.21 or a STALE line, update and restart nginx, not reload it, and the November fixes are then in the process that serves your sites. Re-check the ssl_early_data line when Ubuntu publishes its fix for that last CVE.

Hostry Engineering

Hostry Engineering is the team behind Hostry, a hosting provider operating since 2006: KVM VPS in 18+ locations, dedicated servers in Europe and the US, cPanel hosting, domains and free DNS. Commands and configuration in these articles are checked against official documentation before publishing.

All articles by Hostry Engineering

Keep reading in Web Servers

All topics