Skip to content
Memory corruption Disclosed report Advanced

Out-of-Bounds Read + Unsigned Integer Underflow in NASA ION-DTN CBOR string decoders (ici/library/cbor.c:839 / :777)

The CBOR string decoders in NASA ION-DTN checked the destination buffer capacity but not the remaining input length before copying, so malformed CBOR could cause an out-of-bounds read and an unsigned integer underflow. An attacker could read adjacent heap memory and have it propagated through forwarded bundle metadata.

puursuit Follow

Originally disclosed on Bugcrowd

  • Accepted in 42 days
  • Fixed in 3 months
  • Disclosed after 3 months

Summary by puursuit

Malformed CBOR input could trigger an OOB read and unsigned underflow in NASA ION-DTN CBOR string decoders. The decoders checked destination capacity but not the actual remaining buffer length before copying data, which could read adjacent heap memory and propagate it through forwarded bundle metadata. The issue was fixed by validating the available buffered input before copying.

The original report as published on Bugcrowd, by puursuit. Images and videos are our own copies; raw HTML is shown as text. View it on Bugcrowd.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the decoder validated the destination buffer size but omitted a check that the remaining input buffer held the declared string length, allowing an out-of-bounds read and an unsigned underflow.

Impact

Malformed CBOR could cause an out-of-bounds read of adjacent heap memory, and the leaked data could be propagated through forwarded bundle metadata.

What the attacker needed

Ability to supply malformed CBOR input

The fix

The issue was fixed by validating the available buffered input before copying.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

CBOR is a compact data format, similar to JSON, used to encode structured information. The decoder copied a string without first checking that enough input bytes were actually present, so it could read past the end of the buffer and leak nearby memory. The fix adds that missing length check.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from National Aeronautics and Space Administration (NASA) - Vulnerability Disclosure Program

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.