Skip to content
DoS Advisory Intermediate CVE-2023-39540CVE-2023-39541

Weston Embedded uC-TCP-IP ICMP/ICMPv6 parsing denial of service vulnerabilities

The ICMP and ICMPv6 parsing functions in uC-TCP-IP use an uninitialised buffer index when an IPv4 or IPv6 header contains an error, leading to an out-of-bounds read. An attacker can send a specially crafted packet to crash the device, causing denial of service.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Medium 5.9 View original

A denial of service vulnerability exists in the ICMP and ICMPv6 parsing functionality of Weston Embedded uC-TCP-IP v3.06.01. A specially crafted network packet can lead to an out-of-bounds read.

Francesco Benvenuto and Kelly Patterson, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

The code uses an uninitialised buffer index (initialised to 0xffff) to access packet data when an IP header error triggers an ICMP error message before the index is properly set.

Impact

A remote attacker could crash the device by sending a malformed ICMP or ICMPv6 packet, causing a denial of service; the crash occurs only if the invalid pointer accesses unmapped memory.

What the attacker needed

Network access to the device; send malformed ICMP or ICMPv6 packet

The fix

Enable the NET_ERR_CFG_ARG_CHK_DBG_EN configuration option in net_cfg.h for uC-TCP-IP; there is no mitigation for Gecko Platform.

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.

This report describes a flaw in a small networking software package used in embedded devices. When the software receives a malformed network packet, it tries to read from a memory location that was never properly set up, which can crash the device. An attacker only needs to send such a packet to cause the crash.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Francesco Benvenuto

View all

1 more disclosed report, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.