Infinite loop Affecting riot-os/riot package, versions [,2024.07)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-RIOTOSRIOT-8445294
  • published1 Dec 2024
  • disclosed29 Nov 2024
  • creditUnknown

Introduced: 29 Nov 2024

CVE-2024-53980  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Infinite loop through the handling of IEEE 802.15.4 packets. An attacker can cause the system to enter an endless loop by sending a packet with a spoofed length byte and optionally a spoofed FCS. This issue arises because the system fails to properly validate the CRC of the packet and incorrectly handles the packet length, leading to improper state transitions in the radio's operation.

PoC

bool realCRC = rfcore_peek_rx_fifo(pkt_len) & CC2538_CRC_BIT_MASK;
pkt_len += 0x80; // Fake the spoofed length bit
bool fakeCRC = rfcore_peek_rx_fifo(pkt_len) & CC2538_CRC_BIT_MASK;
if (!realCRC && fakeCRC) {
    DEBUG("realCRC: %i, fakeCRC: %i\n", realCRC, fakeCRC);
}
if (fakeCRC) {

CVSS Scores

version 4.0
version 3.1