Skip to content

Use-after-free in H264 packetizer when packetizing fragmented NAL

Moderate
sauwming published GHSA-p965-mf7j-gwv8 Feb 15, 2026

Package

pjmedia-video

Affected versions

2.16 or lower

Patched versions

2.17

Description

The new fuzz-video fuzzer has identified a critical heap buffer underflow vulnerability in PJSIP's H.264 packetizer. The bug occurs when processing malformed H.264 bitstreams without NAL unit start codes, where the packetizer performs unchecked pointer arithmetic that can read from memory located before the allocated buffer.

Impact

This vulnerability affects applications that sends video using H.264 with packetization mode other than single NAL. This leads to a heap-use-after-free condition, causing unexpected application termination.

Patches

The patch is available as commit 5aee54f in the master branch.

Severity

Moderate

CVE ID

CVE-2026-26203

Weaknesses

No CWEs

Credits