View Issue Details

IDProjectCategoryView StatusLast Update
0001047Kali LinuxKali Package Bugpublic2018-01-29 11:33
Reporteranonymous99 Assigned Tog0tmi1k  
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Platformx86OSKaliOS Version1.0
Product Version1.0.6 
Summary0001047: Qemu and other related packages
Description

I was examining the filesquash system offirmware of d-link DSL-2750U router downloaded from
ftp://support.dlink.co.in/broadband/DSL-2750U/firmware/DSL-2750U_IN_1.10_B038_K8B_0K-IN-00-2916_20110822.zip

Extracted using Binwalk v1.2.2-1.
Emulating with qemu-user-static package using qemu-mips which resulted in error
Invalid ELF image for this architecture.

Steps To Reproduce

A quick grep of Qemu’s source quickly found the culprit in linux-user/elfload.c:

static bool elf_check_ehdr(struct elfhdr *ehdr)
{
return (elf_check_arch(ehdr->e_machine)
&& ehdr->e_ehsize == sizeof(struct elfhdr)
&& ehdr->e_phentsize == sizeof(struct elf_phdr)
&& ehdr->e_shentsize == sizeof(struct elf_shdr)
&& (ehdr->e_type == ET_EXEC || ehdr->e_type == ET_DYN));
}

Removing the line "&& ehdr->e_shentsize == sizeof(struct elf_shdr)" and recompiling did the trick.

Additional Information

Please apply this patch in Qemu and related packages

For additional information check:
http://www.devttys0.com/2011/12/qemu-vs-sstrip/

Activities

dookie

dookie

2014-02-20 16:00

reporter   ~0001549

This is not a "major" severity. Please keep things in perspective.

http://en.wikipedia.org/wiki/The_Boy_Who_Cried_Wolf

g0tmi1k

g0tmi1k

2018-01-29 11:33

administrator   ~0007988

Due to the age of the OS (Kali Moto [v1], Kali Safi [v2], Kali Rolling 2016.x), these legacy versions are no longer supported.
We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux - https://www.kali.org/downloads/)?

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing,and also give information about your setup?
For more information, please read: https://kali.training/topic/filing-a-good-bug-report/

Issue History

Date Modified Username Field Change
2014-02-20 07:56 anonymous99 New Issue
2014-02-20 16:00 dookie Note Added: 0001549
2014-02-20 16:00 dookie Severity major => minor
2018-01-29 11:33 g0tmi1k Assigned To => g0tmi1k
2018-01-29 11:33 g0tmi1k Status new => closed
2018-01-29 11:33 g0tmi1k Resolution open => suspended
2018-01-29 11:33 g0tmi1k Note Added: 0007988