SB20261118323 - Multiple vulnerabilities in shairport-sync
Published: November 18, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 vulnerabilities.
1) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to corrupt heap memory and cause a denial of service by terminating the Shairport Sync daemon.
The vulnerability exists due to a heap-based buffer overflow in pair_tlv_format() when formatting AirPlay 2 pairing-list responses because the size calculation omits zero-length separator headers. A remote attacker can populate pairings through plaintext /pair-add requests and request /pair-list to write attacker-controlled identifier bytes beyond a 4096-byte heap buffer in builds with CONFIG_AIRPLAY_2 enabled.
2) Out-of-bounds read (CVE-ID: N/A)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 7.1 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker on the local network to cause a denial of service for all AirPlay sessions or disclose heap contents through decoded audio samples.
The vulnerability exists due to missing bounds checks causing out-of-bounds reads in the shairport-sync Hammerton ALAC bitstream reader when processing crafted audio packets. A remote attacker on the local network can negotiate an AirPlay session and send an RTP/UDP packet with insufficient data and header fields demanding extensive bit reading to trigger a crash or leak adjacent heap memory into audio output.
3) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 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]
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.
4) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 7.2 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker on the local network to cause a denial of service and potentially disclose or corrupt process memory.
The vulnerability exists due to heap-based buffer overflows in shairport-sync's Hammerton ALAC decoder when frame-declared sample counts exceed internal buffer capacities while satisfying output-buffer checks. A remote attacker on the local network can send crafted AirPlay fmtp parameters and ALAC frames with outputsamples exceeding setinfo_max_samples_per_frame to trigger out-of-bounds writes and related reads, potentially exposing or corrupting memory or crashing the process.
Remediation
Install update from vendor's website.
References
- https://github.com/mikebrady/shairport-sync/security/advisories/GHSA-j547-vm4c-c26v
- https://github.com/mikebrady/shairport-sync/security/advisories/GHSA-x625-w645-vg6r
- https://github.com/mikebrady/shairport-sync/security/advisories/GHSA-822j-vvv5-x542
- https://github.com/mikebrady/shairport-sync/security/advisories/GHSA-vxf7-rq83-q3h8