[Tool] LenovoVar - SMBIOS Editor for Lenovo UEFI

Hey everyone, it’s been a while since my last post.

I recently started working on my Lenovo DMI Decryptor again and made some new discoveries while reverse engineering my old Lenovo laptop’s firmware.

I found the proprietary Lenovo protocol used to access the DMI data which supports both reading and writing these entries. Using this protocol, I wrote a SMBIOS editor that runs directly in the UEFI shell.

It doesn’t support all SMBIOS entries (yet), but I plan to extend the supported keys in the future.

Source code and precompiled binary are available on GitHub: LenovoVar

There’s also an example in the README showing how I changed my laptop’s system UUID using the tool.

Note: Writing data with a different size than the original value has not been tested. Since the protocol writes directly to the LENV block(s), and the mapping performed by the DXE driver L05SmbiosOverride from LENV entries to SMBIOS entries appears to be partially offset-based, modifying string lengths arbitrarily may corrupt the data or even brick the firmware. Use with caution.

5 Likes