DistroNews

The week in Linux, gathered from the distributions' own feeds

AlmaLinux Blog

NGINX2Root: Patched nginx packages released

almalinux.org

Key points

AlmaLinux has released patched nginx packages for AlmaLinux 8, 9, 10 and Kitten 10 that fix five vulnerabilities disclosed by nginx on 18 November 2026 and nicknamed NGINX2Root. The Core SIG backported the fixes and, with ALESCo's approval, shipped them straight to the production repositories, skipping the testing repository. At the time of writing, Red Hat had not released fixed packages.

The vulnerabilities

  • All five are memory corruption bugs in nginx worker processes. An unauthenticated attacker can crash a worker, and may be able to run code as the nginx user where ASLR is disabled or bypassed.
  • F5 rates all five 9.2 (Critical) on CVSS v4.0 and 8.1 (High) on CVSS v3.1. Upstream fixed them in nginx 1.30.7 (stable) and 1.31.9 (mainline).
  • CVE-2026-123633: use-after-free in HTTP/2, in nginx 1.19.7 and later. nginx rates it medium.
  • CVE-2026-123007: memory corruption in HTTP/2 flow control, present since nginx 1.9.5. nginx rates it major. Wiz Research reports achieving remote code execution, including an ASLR bypass, against official builds serving only static files over HTTPS.
  • CVE-2026-123634: use-after-free in the resolver, present since nginx 0.6.18. nginx rates it medium.
  • CVE-2026-113425: use-after-free in the mail proxy, present since nginx 0.5.33. nginx rates it major.
  • CVE-2026-121810: use-after-free in HTTP/3, in nginx 1.25.0 and later. nginx rates it medium, and F5 notes that exploitation depends on conditions the attacker does not control.

Who is affected

  • AlmaLinux 8, 9 and 10 all ship affected versions, but each flaw is reachable only when its feature is in use.
  • The two HTTP/2 flaws need HTTP/2 turned on. CVE-2026-123633 does not affect the nginx:1.14, nginx:1.16 and nginx:1.18 streams on AlmaLinux 8.
  • The resolver flaw needs proxying to server names containing variables, combined with SSI or mirror subrequests.
  • The mail proxy flaw needs the optional nginx-mod-mail module.
  • The HTTP/3 flaw affects only the nginx 1.26 builds (the nginx:1.26 stream on AlmaLinux 9, AlmaLinux 10 and Kitten 10) with HTTP/3 turned on.
  • The default nginx.conf does not enable HTTP/2, but most HTTPS sites do. The command below lists every place it is enabled; no output means HTTP/2 is off.
  • Updating is recommended on every system running nginx, whatever its configuration.
  • Only nginx installed from AlmaLinux's own repositories is covered. For nginx from nginx.org's repository, a hosting control panel or a third-party repository, ask that vendor.
sudo grep -RnE '^\s*(listen\s.*\bhttp2\b|http2\s+on)' /etc/nginx

Patched versions

  • AlmaLinux 8, nginx:1.24 stream: nginx-1.24.0-3.module_el8.10.0+4373+4291aaad.6.alma.4
  • AlmaLinux 9, default (nginx 1.20): nginx-1.20.1-32.el9_9.1.alma.4
  • AlmaLinux 9, nginx:1.24 stream: nginx-1.24.0-9.module_el9.9.0+356+d723c317.1.alma.4
  • AlmaLinux 9, nginx:1.26 stream: nginx-1.26.3-10.module_el9.9.0+357+ccfac862.1.alma.2
  • AlmaLinux 10, default (nginx 1.26): nginx-1.26.3-16.el10_3.1.alma.3
  • AlmaLinux Kitten 10, default (nginx 1.26): nginx-1.26.3-17.el10.alma.2
  • Install the listed version or a higher one.

How to update

  • nginx must be restarted after the upgrade. A reload does not load the new binary.
  • Mirrors sync every few hours, so the update may take a while to appear.
  • Verify with rpm -q nginx against the versions above. nginx -v is not a valid check, because the fixes are backported and the upstream version number stays the same.
sudo dnf clean metadata && sudo dnf upgrade 'nginx*'
sudo systemctl restart nginx

Retired streams

  • No patches for nginx:1.14, nginx:1.16, nginx:1.18, nginx:1.20 and nginx:1.22 on AlmaLinux 8, or for nginx:1.22 on AlmaLinux 9. These have reached the end of their RHEL life cycle.
  • nginx:1.14 is still the AlmaLinux 8 default, so an nginx installed there without choosing a stream is unpatched.
  • dnf module list nginx shows the enabled stream, marked [e].
  • The advice is to move to a supported stream and keep HTTP/2 off until then. The example below moves to nginx:1.24; check first that your configuration works with that version.
sudo dnf module reset nginx
sudo dnf module enable nginx:1.24
sudo dnf distro-sync 'nginx*'
sudo systemctl restart nginx

Temporary mitigation

  • Turning off HTTP/2 closes the two HTTP/2 flaws but not the other three.
  • Browsers and most clients fall back to HTTP/1.1. gRPC proxied through nginx will break, since it needs HTTP/2.
  • In every file the grep command above lists, remove http2 from the listen lines, for example listen 443 ssl http2; becomes listen 443 ssl;.
  • On AlmaLinux 10, Kitten 10 and the nginx:1.26 stream on AlmaLinux 9, also change any http2 on; to http2 off;.
  • Every match must be changed. One remaining http2 on a listen line keeps HTTP/2 on for all sites on that address and port.
  • Then test the configuration and restart, and confirm with the curl check, replacing the address with your own. It should print 1.1.
  • The changes can be reversed once the patched packages are installed.
sudo nginx -t && sudo systemctl restart nginx
curl -so /dev/null --http2 -w '%{http_version}\n' https://www.example.com/

Summary by DistroNews, based on the original post.

The full text is on the original page.

Read the original at almalinux.org