Skip to content
Memory corruption Advisory Advanced CVE-2025-55089

Eclipse ThreadX FileX RAM disk driver buffer overflow vulnerability

The FileX RAM disk driver does not validate that the configured total sectors multiplied by sector size fits within the allocated RAM disk buffer. An attacker can send HTTP PUT requests to write data beyond the buffer, potentially overwriting a function pointer and achieving code execution.

Kelly Patterson Follow

Originally disclosed on Cisco Talos

High 8.5 View original

A buffer overflow vulnerability exists in the FileX RAM disk driver functionality of Eclipse ThreadX FileX git commit 1b85eb2. A specially crafted set of network packets can lead to code execution.

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

Likely the RAM disk driver lacks a bounds check to ensure that the calculated write offset plus the write size stays within the allocated RAM disk buffer.

Impact

User-supplied data via an HTTP PUT request could overflow the RAM disk buffer and overwrite a function pointer, potentially leading to code execution.

What the attacker needed

Application uses RAM disk driver with vulnerable config; attacker can send HTTP PUT requests

The fix

Developers should ensure that the total sectors multiplied by sector size is less than the size of the provided RAM disk buffer when initializing with fx_media_format.

How it was found

  1. Configure the RAM disk with total sectors and sector size that exceed the allocated buffer size.
  2. Send an HTTP PUT request to the server to create a file with content.
  3. The server writes the file content to the file system using fx_file_write.
  4. The RAM disk driver calculates a destination pointer beyond the buffer and copies data there, causing a buffer overflow.

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.

A RAM disk is a section of memory used like a storage drive. The software sets aside a small area but tells the file system it is much larger, so writing a file can spill past the end and overwrite other memory. This can let an attacker run their own code.

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 by Kelly Patterson

View all

20 more disclosed reports, 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.

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.