Skip to content
Memory corruption Advisory Advanced CVE-2026-22891

The Biosig Project libbiosig Intan CLP parsing heap-based buffer overflow vulnerability

A heap-based buffer overflow exists in libbiosig's parsing of Intan CLP files because the code writes file data starting at the end of an allocated buffer instead of the correct offset. An attacker can supply a malicious file to trigger the overflow, potentially leading to arbitrary code execution.

Mark Bereza Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

A heap-based buffer overflow vulnerability exists in the Intan CLP parsing functionality of The Biosig Project libbiosig 3.9.2 and Master Branch (db9a9a63). A specially crafted Intan CLP file can lead to arbitrary code execution.

Mark Bereza and Lilith >_>, 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 passes the wrong pointer to fread: it uses hdr->AS.Header+HeadLen instead of hdr->AS.Header+hdr->HeadLen, causing the read data to be written starting at the end of the allocated buffer.

Impact

This vulnerability allows for a heap-based buffer overflow where the data written is controlled by the attacker, which could potentially lead to arbitrary code execution.

What the attacker needed

Victim opens a malicious file

The fix

The fix should correct the pointer passed to fread to use hdr->AS.Header+hdr->HeadLen instead of hdr->AS.Header+HeadLen.

How it was found

  1. Craft an Intan CLP file with the magic bytes and a datatype value of 1.
  2. Set the length field at offset 12 to a large value.
  3. Open the file with libbiosig, which triggers the vulnerable read.

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 is a memory corruption bug in a library that reads medical signal files. When the library processes a file, it copies data into a buffer but starts writing at the wrong position, so the data spills past the buffer's end. An attacker can craft a file that causes this overflow, which might let them run their own code on the victim's computer.

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 Mark Bereza

View all

12 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.