CVE-2017-7892

NameCVE-2017-7892
DescriptionSandstorm Cap'n Proto before 0.5.3.1 allows remote crashes related to a compiler optimization. A remote attacker can trigger a segfault in a 32-bit libcapnp application because Cap'n Proto relies on pointer arithmetic calculations that overflow. An example compiler with optimization that elides a bounds check in such calculations is Apple LLVM version 8.1.0 (clang-802.0.41). The attack vector is a crafted far pointer within a message.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs860960

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
capnproto (PTS)stretch0.5.3-2vulnerable
buster0.7.0-3fixed
bullseye0.7.0-7fixed
bookworm0.9.2-2fixed
sid, trixie1.0.1-4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
capnprotosource(unstable)0.6.1-1unimportant860960

Notes

https://github.com/sandstorm-io/capnproto/blob/master/security-advisories/2017-04-17-0-apple-clang-elides-bounds-check.md
Fixed by: https://github.com/sandstorm-io/capnproto/commit/52bc956459a5e83d7c31be95763ff6399e064ae4
So far only Apple's compiler has been shown to apply the problematic optimization, fixed in 0.5.3.1 upstream

Search for package or bug name: Reporting problems