bugdmidecode - Bugs: bug #50037, SMBIOS 3.0 parsing error

 
 

bug #50037: SMBIOS 3.0 parsing error

Submitted by:  None
Submitted on:  Thu 12 Jan 2017 10:57:47 AM UTC  
 
Category: NoneSeverity: 4 - Important
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jean Delvare <khali>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 12 Jan 2017 11:34:31 AM UTC, comment #1:

This is already fixed:

http://git.savannah.gnu.org/cgit/dmidecode.git/commit/?id=ab02b117511230e46bbef7febbd854b9c832c13c

This commit is even in the list of recommended patches on the main project page. Please check the code in the git repository before reporting bugs.

Jean Delvare <khali>
Project AdministratorIn charge of this item.
Thu 12 Jan 2017 10:57:47 AM UTC, original submission:

When parsing (using /dev/mem walk) SMBIOS3.0 tables that are larger than 64K data is truncated. Turns out that header decoding parse Structure table maximum as WORD instead of DWORD.

Please consider urgent inclusion of the fix below.

--- dmidecode.c.orig 2017-01-12 12:52:49.495159860 +0200
+++ dmidecode.c 2017-01-12 12:53:29.763160187 +0200
@@ -4599,7 +4599,7 @@ static int smbios3_decode(u8 *buf, const
}

dmi_table(((off_t)offset.h << 32) | offset.l,
- WORD(buf + 0x0C), 0, ver, devmem, flags | FLAG_STOP_AT_EOT);
+ DWORD(buf + 0x0C), 0, ver, devmem, flags | FLAG_STOP_AT_EOT);

if (opt.flags & FLAG_DUMP_BIN)
{

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by khali (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 12 Jan 2017 11:34:31 AM UTCkhaliSeverity3 - Normal=>4 - Important
      StatusNone=>Fixed
      Assigned toNone=>khali
      Open/ClosedOpen=>Closed
      SummarySMBIOS 3.0 parsing error CRITICAL=>SMBIOS 3.0 parsing error

    Back to the top


    Powered by Savane 3.1-cleanup1