Heap-based buffer overflow in shairport-sync - #VU167742

 

Heap-based buffer overflow in shairport-sync - #VU167742

Published: November 18, 2026


Vulnerability identifier: #VU167742
CSH Severity: High
CVSS v4: 8.7 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-122
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker on the local network to cause a denial of service and potentially execute arbitrary code.

The vulnerability exists due to a heap-based buffer overflow in shairport-sync's Hammerton ALAC decoder when entropy_rice_decode() uses an unchecked, bitstream-controlled blockSize as the memset() length for a heap output buffer. A remote attacker on the local network can negotiate an AirPlay session with an attacker-controlled AES key and send a crafted ALAC audio packet over RTP/UDP to corrupt adjacent heap allocations and metadata, crashing the daemon and potentially executing arbitrary code.


Affected software

shairport-sync

Remediation

Install security update from vendor's website.

shairport-sync - update to 5.6

External References

Related Security Bulletins