View Issue Details

IDProjectCategoryView StatusLast Update
0000605fileGeneralpublic2025-01-04 09:26
ReporterYancyLii Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version5.45 
Summary0000605: Uncontrolled Memory Allocation in
DescriptionA potential out-of-memory crash occurs in the libmagic project when processing malformed input through the function uncompressxzlib. The issue is triggered by the absence of proper input validation or resource limits, causing the liblzma library to attempt a massive memory allocation (malloc(2147483648) = 2GB) and crash.
Steps To Reproduce1. Download the tar.gz file and decompress it, then (sudo) execute shell script
2. ./Test_libmagic_1 oom-fed84141c516fcdbb9961ba3a30fa85e41e569a1
3. Observe the error message
Tagslibmagic

Activities

YancyLii

2025-01-04 09:26

reporter  

Issue History

Date Modified Username Field Change
2025-01-04 09:26 YancyLii New Issue
2025-01-04 09:26 YancyLii Tag Attached: libmagic
2025-01-04 09:26 YancyLii File Added: Test_libmagic_oom.tar.gz