NIXPKGS-2026-1168
GitHub issue
published on
by @LeSuisse Activity log
- Created suggestion
- @LeSuisse accepted
- @LeSuisse published on GitHub
libcoap Out-of-Bounds Read in OSCORE CBOR Unwrap Handling
libcoap contains out-of-bounds read vulnerabilities in OSCORE Appendix B.2 CBOR unwrap handling where get_byte_inc() in src/oscore/oscore_cbor.c relies solely on assert() for bounds checking, which is removed in release builds compiled with NDEBUG. Attackers can send crafted CoAP requests with malformed OSCORE options or responses during OSCORE negotiation to trigger out-of-bounds reads during CBOR parsing and potentially cause heap buffer overflow writes through integer wraparound in allocation size computation.
References
Ignored references (1)
-
https://www.vulncheck.com/advisories/libcoap-out-of-bounds-read-in-oscore-cbor-… third-party-advisory
Affected products
libcoap
- <v4.3.5b
Package maintainers
-
@kmein Kierán Meinhardt <kmein@posteo.de>