Bug 2421955 - Null pointer dereference when parsing nginx config
Summary: Null pointer dereference when parsing nginx config
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nginx
Version: 43
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Felix Kaechele
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-13 08:52 UTC by advert
Modified: 2026-01-02 02:38 UTC (History)
6 users (show)

Fixed In Version: nginx-1.28.1-3.fc44
Clone Of:
Environment:
Last Closed: 2026-01-02 02:38:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Core dump (233.13 KB, application/octet-stream)
2025-12-13 08:54 UTC, advert
no flags Details
GDB session showing where invalid reference occurs (5.13 KB, text/plain)
2025-12-13 08:56 UTC, advert
no flags Details

Description advert 2025-12-13 08:52:12 UTC
nginx crashes when parsing the nginx config for the stream module

Reproducible: Always

Steps to Reproduce:
1. dnf install nginx-1.28.0-3.fc43.x86_64 nginx-mod-stream-1.28.0-3.fc43.x86_64
2. Create config
cat >tmp.conf <<END
load_module "/usr/lib64/nginx/modules/ngx_stream_module.so";
stream {
  server {
    listen 8080 ssl;
    ssl_certificate /dev/null;
    ssl_certificate_key /dev/null;
  }
}
END
3. nginx -t -e /dev/null -c tmp.conf
4. Expect error parsing certificate (/dev/null is not a valid certificate)
Actual Results:
Crashes with a segfault

Expected Results:
Parse config successfully

Comment 1 advert 2025-12-13 08:54:07 UTC
Created attachment 2118540 [details]
Core dump

Comment 2 advert 2025-12-13 08:56:04 UTC
Created attachment 2118541 [details]
GDB session showing where invalid reference occurs

Comment 3 Fedora Update System 2026-01-02 02:34:23 UTC
FEDORA-2026-e0855b54a3 (nginx-1.28.1-3.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-e0855b54a3

Comment 4 Fedora Update System 2026-01-02 02:38:24 UTC
FEDORA-2026-e0855b54a3 (nginx-1.28.1-3.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.