CVE-2018-6948

In CCN-lite 2, the function ccnl_prefix_to_str_detailed can cause a buffer overflow, when writing a prefix to the buffer buf

published February 13, 2018

CVSS
—
EPSS
2%
Percentile
74.5
In the wild
Unconfirmed
What it is

⚠️ A single NFN-R2C packet with a maximum prefix can overflow your buffer, turning a routine message into a security nightmare! Think of it like packing a suitcase that's too small for all your essentials. When you try to shove in that extra pair of shoes (the NFN and R2C tags), your suitcase bursts open, spilling everything out—potentially exposing your valuables! This buffer overflow could lead to corruption of data or unexpected behavior, causing the application to crash or behave erratically. While not currently exploited, the risk remains that an attacker could craft a malicious packet that exploits this vulnerability, leaving your system vulnerable to further attacks.

Put simply

Think of it like packing a suitcase that's too small for all your essentials. When you try to shove in that extra pair of shoes (the NFN and R2C tags), your suitcase bursts open, spilling everything out—potentially exposing your valuables! In CCN-lite 2, the function ccnl_prefix_to_str_detailed does not properly handle the size of a prefix when NFN is enabled. Even though the buffer's size is defined, extra characters are written without validation, leading to a buffer overflow when the prefix reaches its maximum size.

What to do

This buffer overflow could lead to corruption of data or unexpected behavior, causing the application to crash or behave erratically. While not currently exploited, the risk remains that an attacker could craft a malicious packet that exploits this vulnerability, leaving your system vulnerable to further attacks. To mitigate this risk, you should update CCN-lite to the latest version that addresses this overflow issue. Additionally, consider implementing strict input validation to ensure that no packets exceed expected sizes in the future. Regularly review your configurations to confirm NFN settings align with security best practices. You've got this! With the right updates and safeguards in place, your systems will be fortified and ready to withstand potential threats! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01534 · 74.5th percentile
Published
2018-02-13T17:00Z
EPSS history
Timeline
  • 13 FEB 17:00Z
    In CCN-lite 2, the function ccnl_prefix_to_str_detailed can cause a buffer overflow, when writing a prefix to the buffer buf
    cvelistv5