GPAC's Scene Loader Needs a Null-Safe URL Boundary
GPAC's Scene Loader Needs a Null-Safe URL Boundary
GPAC through 26.07.0 contains a NULL pointer dereference in gf_scene_ns_new() in src/compositor/scene_ns.c. CVE-2026-140036 describes an unchecked result from gf_url_concatenate() that is passed to strchr(). A crafted scene or media input can therefore drive the process into a null path instead of returning a controlled parsing error. The practical consequence is a denial of service, especially when GPAC processes untrusted files in an automated pipeline.
The parser is often used in transcoding, packaging, inspection, and media preparation workflows. Those services frequently accept uploads from customers, partners, or content-management systems. A crash can interrupt a batch, leave temporary files behind, or cause a supervisor to restart the worker repeatedly. The fault is a memory-safety denial-of-service path in the affected build. It is a memory-safety fault whose effect depends on the runtime, input path, and how the surrounding service handles a failed subprocess.
Review every GPAC invocation that can read a caller-supplied scene or playlist. Put the converter in a subprocess with a timeout, memory limit, and a non-sensitive working directory. Capture the exit status and a bounded error message, then quarantine the input. Do not let the same worker process continue with a partially parsed graph after a failure.
Use a GPAC release newer than 26.07.0 or a vendor build that contains the upstream fix. Validate the exact build used by each container and host, because a base image can carry an older library even when the application package is current. Add a regression input that exercises a missing or malformed URL component and assert a clean nonzero exit rather than a segmentation fault.
The security review should include resource limits as well as patching. A malformed media file can create repeated parser restarts even when each individual crash is contained. Set a restart budget and alert when the same uploader or content hash triggers repeated failures. Record the parser version with every conversion result so the team can link a later incident to the build that processed the file.
The root repair belongs in the parser: check the result of URL composition and handle a null value before calling string functions. Operators cannot inspect that branch from outside, but they can make the failure observable. A clean error, a quarantined input, and a bounded worker are better evidence than a service that disappears without a trace.
References
- CVE-2026-140036: https://www.cve.org/CVERecord?id=CVE-2026-140036
- GPAC project: https://gpac.io/
- VulnCheck advisory: https://www.vulncheck.com/advisories/gpac-through-26.07.0-null-pointer-dereference-in-gf-scene-ns-new
原文:https://www.a8q9.cn/en/article/gpac-s-scene-loader-needs-a-null-safe-url-boundary-e80bd9.html