ubuntu-cve-2025-54481
Vulnerability from osv_ubuntu
A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.9.0 and Master Branch (35a819fa). A specially crafted MFER file can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.This vulnerability manifests on line 8744 of biosig.c on the current master branch (35a819fa), when the Tag is 3: else if (tag==3) { // character code char v[17]; // [1] if (len>16) fprintf(stderr,"Warning MFER tag2 incorrect length %i>16\n",len); curPos += ifread(&v,1,len,hdr); v[len] = 0; In this case, the overflowed buffer is the newly-declared v [1] instead of buf. Since v is only 17 bytes large, much smaller values of len (even those encoded using a single octet) can trigger an overflow in this code path.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "biosig-tools",
"binary_version": "2.3.3-1build2"
},
{
"binary_name": "libbiosig3",
"binary_version": "2.3.3-1build2"
},
{
"binary_name": "octave-biosig",
"binary_version": "2.3.3-1build2"
},
{
"binary_name": "python3-biosig",
"binary_version": "2.3.3-1build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "biosig",
"purl": "pkg:deb/ubuntu/biosig@2.3.3-1build2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.1.2-4",
"2.1.2-4build1",
"2.1.2-4build2",
"2.3.3-1",
"2.3.3-1build1",
"2.3.3-1build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "biosig-tools",
"binary_version": "2.6.0-1ubuntu1"
},
{
"binary_name": "libbiosig3",
"binary_version": "2.6.0-1ubuntu1"
},
{
"binary_name": "octave-biosig",
"binary_version": "2.6.0-1ubuntu1"
},
{
"binary_name": "python3-biosig",
"binary_version": "2.6.0-1ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "biosig",
"purl": "pkg:deb/ubuntu/biosig@2.6.0-1ubuntu1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.5.0-1build2",
"2.5.2-1",
"2.5.2-1build1",
"2.5.2-2",
"2.6.0-1",
"2.6.0-1build1",
"2.6.0-1ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "biosig-tools",
"binary_version": "3.9.0-1"
},
{
"binary_name": "libbiosig3",
"binary_version": "3.9.0-1"
},
{
"binary_name": "octave-biosig",
"binary_version": "3.9.0-1"
},
{
"binary_name": "python3-biosig",
"binary_version": "3.9.0-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "biosig",
"purl": "pkg:deb/ubuntu/biosig@3.9.0-1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.6.1-1build3",
"3.9.0-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "biosig-tools",
"binary_version": "3.9.0-1build3"
},
{
"binary_name": "libbiosig3",
"binary_version": "3.9.0-1build3"
},
{
"binary_name": "octave-biosig",
"binary_version": "3.9.0-1build3"
},
{
"binary_name": "python3-biosig",
"binary_version": "3.9.0-1build3"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "biosig",
"purl": "pkg:deb/ubuntu/biosig@3.9.0-1build3?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.9.0-1",
"3.9.0-1build1",
"3.9.0-1build2",
"3.9.0-1build3"
]
}
],
"aliases": [],
"details": "A stack-based buffer overflow vulnerability exists in the MFER parsing functionality of The Biosig Project libbiosig 3.9.0 and Master Branch (35a819fa). A specially crafted MFER file can lead to arbitrary code execution. An attacker can provide a malicious file to trigger this vulnerability.This vulnerability manifests on line 8744 of biosig.c on the current master branch (35a819fa), when the Tag is 3: \t\t\t\telse if (tag==3) { \t\t\t\t\t// character code \t\t\t\t\tchar v[17];\t\t// [1] \t\t\t\t\tif (len\u003e16) fprintf(stderr,\"Warning MFER tag2 incorrect length %i\u003e16\\n\",len); \t\t\t\t\tcurPos += ifread(\u0026v,1,len,hdr); \t\t\t\t\tv[len] = 0; In this case, the overflowed buffer is the newly-declared `v` \\[1\\] instead of `buf`. Since `v` is only 17 bytes large, much smaller values of `len` (even those encoded using a single octet) can trigger an overflow in this code path.",
"id": "UBUNTU-CVE-2025-54481",
"modified": "2026-05-20T15:22:55Z",
"published": "2025-08-25T14:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2025-54481"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2025-54481"
},
{
"type": "REPORT",
"url": "https://sourceforge.net/p/biosig/mailman/message/59224259/"
},
{
"type": "REPORT",
"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2025-2234"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2025-54481"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.