Bug 2283904 (CVE-2024-24684) - CVE-2024-24684 meshlab: stack-based buffer overflow vulnerabilities exist in the readOFF
Summary: CVE-2024-24684 meshlab: stack-based buffer overflow vulnerabilities exist in ...
Keywords:
Status: NEW
Alias: CVE-2024-24684
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2283905
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-30 08:03 UTC by Rohit Keshri
Modified: 2024-05-30 08:03 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Rohit Keshri 2024-05-30 08:03:19 UTC
Multiple stack-based buffer overflow vulnerabilities exist in the readOFF functionality of libigl v2.5.0. A specially crafted .off file can lead to stack-based buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.This vulnerability concerns the header parsing occuring while processing an `.off`  file via the `readOFF` function. 


We can see above that at [0] a stack-based buffer called `comment` is defined with an hardcoded size of `1000 bytes`.  The call to `fscanf` at [1] is unsafe and if the first line of the header of the `.off` files is longer than 1000 bytes it will overflow the `header` buffer.

https://talosintelligence.com/vulnerability_reports/TALOS-2024-1929

Comment 1 Rohit Keshri 2024-05-30 08:03:37 UTC
Created meshlab tracking bugs for this issue:

Affects: fedora-all [bug 2283905]


Note You need to log in before you can comment on or make changes to this bug.