fwupd icon indicating copy to clipboard operation
fwupd copied to clipboard

Aerox 3 Wireless USB Receiver Checksum Invalid

Open Flat opened this issue 11 months ago • 17 comments

Describe the bug When trying to update the Aerox 3 Wireless receiver fwupd aborts with a checksum mismatch.

checksum invalid, expected 9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b got 596d1032e7c916822ffae84a48d5f84d641808be761723536c0d82bb83ac077f

Steps to Reproduce With an Aerox 3 Wireless USB Received connected fwupdmgr get-updates && fwupdatemgr update

Expected behavior Downloaded firmware should match the expected checksum

fwupd version information compile info.libusb 1.0.27 compile org.freedesktop.fwupd 2.0.3 compile com.hughsie.libxmlb 0.3.21 compile org.freedesktop.Passim 0.1.8 compile com.hughsie.libjcat 0.2.2 runtime org.freedesktop.fwupd-efi 1.7 runtime org.freedesktop.Passim 0.1.8 runtime com.hughsie.libxmlb 0.3.21 runtime com.hughsie.libjcat 0.2.2 runtime org.freedesktop.fwupd 2.0.3 runtime org.kernel 6.13.0-rc5-1-mainline

Please note how you installed it (apt, dnf, pacman, source, etc): pacman

**fwupd device information**

Please provide the output of the fwupd devices recognized in your system.

Gigabyte Technology Co., Ltd. X870I AORUS PRO ICE │ ├─Aerox 3 Wireless USB Receiver: │ │ Device ID: 22393fc023ab027cc856e804c7ad83af5bb1a8ca │ │ Current version: 1.3.1 │ │ Vendor: SteelSeries ApS (USB:0x1038) │ │ Install Duration: 13 seconds │ │ GUID: 291b0582-8d08-5714-88db-986911c744d9 ← USB\VID_1038&PID_1838 │ │ Device Flags: • Updatable │ │ • Supported on remote server │ │ • Cryptographic hash verification is available │ │ • Unsigned Payload │ │ • Can tag for emulation │ │ │ └─Aerox 3 Wireless Mouse via USB Receiver: │ Device ID: ca544071868a8601ce472b4cc9f12546f92f687f │ Current version: 1.11.4 │ Vendor: SteelSeries ApS (USB:0x1038) │ Install Duration: 37 seconds │ Battery: 100% (threshold 20%) │ GUID: 541b2713-d367-5240-a443-bed07f09ffbf ← STEELSERIES\VID_1038&PID_1838&PROTOCOL_FIZZ_TUNNEL │ Device Flags: • Updatable │ • Cryptographic hash verification is available │ • Unsigned Payload │
├─AMD Radeon RX 6900 XT: │ │ Device ID: 594baa45f6742120d71dd82166e762f1529c2a8a │ │ Summary: NAVI21 Gaming XTX D412 │ │ Current version: 020.001.000.043.015929 │ │ Vendor: Advanced Micro Devices, Inc. [AMD/ATI] (PCI:0x1002) │ │ GUID: 36ebe767-62d9-5820-96cc-164b10059a0e ← AMD\113-D41201 │ │ Device Flags: • Cryptographic hash verification is available │ │ • Can tag for emulation │ │ │ ├─Unknown Device: │ │ Device ID: 57e35fbedc32c4e5e69c55e3d7810f7ae6f1427a │ │ Vendor: PNP:DEL │ │ Serial Number: 5QW2T63 │ │ GUID: 4414a3c5-e11a-5f84-b98f-05946b784687 ← DRM\VEN_DEL&DEV_D12C │ │ Device Flags: • Can tag for emulation │ │
│ └─Unknown Device: │ Device ID: 5f7dee69f5c6dc34f6af5a8ecff65b51ce478670 │ Vendor: PNP:DEL │ Serial Number: 5RW2T63 │ GUID: 4414a3c5-e11a-5f84-b98f-05946b784687 ← DRM\VEN_DEL&DEV_D12C │ Device Flags: • Can tag for emulation │
├─600 Series Chipset SATA Controller: │ Device ID: fde8e3afecaa5293a88377c9f695fee2b994d7cf │ Current version: 01 │ Vendor: Advanced Micro Devices, Inc. [AMD] (PCI:0x1022) │ GUID: c12a74b6-78b0-5cfb-95a3-cd65a12f9e94 ← PCI\VEN_1022&DEV_43F6 │ Device Flags: • Internal device │ • Cryptographic hash verification is available │ • Can tag for emulation │
├─AMD Ryzen 9 9900X 12-Core Processor: │ │ Device ID: 4bde70ba4e39b28f9eab1628f9dd6e6244c03027 │ │ Current version: 0x0b40401c │ │ Vendor: Advanced Micro Devices, Inc. │ │ GUIDs: 65886698-fa24-5690-9081-56d99820d7ff ← CPUID\PRO_0&FAM_1A&MOD_44 │ │ 5de664b9-8f37-5929-aaf3-e738e7015b80 ← CPUID\PRO_0&FAM_1A&MOD_44&STP_0 │ │ Device Flags: • Internal device │ │ │ ├─AMD Radeon Graphics: │ │ Device ID: fe4cd5456f9a0eb1961e5ef672f6e386e01d6cde │ │ Summary: Raphael Generic VBIOS │ │ Current version: 032.019.000.008.000000 │ │ Vendor: Advanced Micro Devices, Inc. [AMD/ATI] (PCI:0x1002) │ │ GUID: ad9b8b0f-a109-511e-9ec4-2105530c4153 ← AMD\102-RAPHAE │ │ Device Flags: • Internal device │ │ • Can tag for emulation │ │
│ └─Secure Processor: │ Device ID: c54ab0237d7a8db8c717b68e0be78e4374a2a079 │ Current version: 00.42.01.16 │ Bootloader Version: 00.42.01.16 │ Vendor: Advanced Micro Devices, Inc. (PCI:0x1022) │ GUID: 9844da3e-1df2-52fe-9413-d4378af6221e ← PCI\VEN_1022&DEV_1649 │ Device Flags: • Internal device │ • Can tag for emulation │
├─Expansion Desk: │ Device ID: 382e31c63a02e44bd5b9a7205abb42ddf6b7ab15 │ Summary: SCSI device │ Current version: 9401 │ Vendor: Seagate (USB:0x0BC2, SCSI:Seagate) │ GUIDs: a829712c-ab0d-573d-83c4-676c41e19579 ← BLOCK\VEN_0BC2&DEV_3322 │ 02804b7a-c217-5619-af11-fedc6fcbb79c ← SCSI\VEN_Seagate &DEV_Expansion Desk
│ 232f7bb9-74e9-502f-b937-b611d25f741e ← SCSI\VEN_Seagate &DEV_Expansion Desk &REV_9401 │ Device Flags: • Internal device │ • Can tag for emulation │
├─GPIO controller: │ Device ID: f685512aa07369c9e77742acef941d779d31e766 │ GUID: 37b440a9-2473-5087-a39b-db84f32a8ed8 ← GPIO\ID_AMDI0030:00 │ Device Flags: • Can tag for emulation │
├─SHPP41-2000GM: │ Device ID: 04e17fcf7d3de91da49a163ffe4907855c3648be │ Summary: NVM Express solid state drive │ Current version: 51060A20 │ Vendor: SK hynix (PCI:0x1C5C) │ Serial Number: AJCBN54411080BS52 │ GUIDs: bcfb6135-158b-5c97-a08c-a76de6c90dc4 ← NVME\VEN_1C5C&DEV_1959 │ 021c33a7-8b6a-5ec2-a388-4c472df55c3f ← NVME\VEN_1C5C&DEV_1959&SUBSYS_1C5C1959 │ 8e60fd06-9e9b-5942-8501-43085c0cc93d ← SHPP41-2000GM │ Device Flags: • Internal device │ • Updatable │ • System requires external power source │ • Needs a reboot after installation │ • Device is usable for the duration of the update │ • Signed Payload │ • Can tag for emulation │
├─TEAM TM8FPW004T: │ Device ID: 3e02fa93f5a23507599b43d9363b0f6759cc4979 │ Summary: NVM Express solid state drive │ Current version: H231217a │ Vendor: MAXIO Technology (Hangzhou) Ltd. (PCI:0x1E4B) │ Serial Number: TPBF2409180020500405 │ GUIDs: b74013ba-35db-5c67-b4f2-03d6fb5b1863 ← NVME\VEN_1E4B&DEV_1602 │ 2cb38590-fa1b-577f-ba29-a6886d767227 ← NVME\VEN_1E4B&DEV_1602&SUBSYS_1E4B1602 │ 8b6fcb25-7e5f-5932-8cf6-933bbe62c45d ← TEAM TM8FPW004T │ Device Flags: • Internal device │ • Updatable │ • System requires external power source │ • Needs a reboot after installation │ • Device is usable for the duration of the update │ • Can tag for emulation │
├─TPM: │ Device ID: 1d8d50a4dbc65618f5c399c2ae827b632b3ccc11 │ Current version: 6.31.0.6 │ Vendor: Advanced Micro Devices, Inc. (TPM:AMD) │ GUIDs: 9305de1c-1e12-5665-81c4-37f8e51219b8 ← TPM\VEN_AMD&DEV_0001 │ 78a291ae-b499-5b0f-8f1d-74e1fefd0b1c ← TPM\VEN_AMD&MOD_AMD │ 65a3fced-b423-563f-8098-bf5c329fc063 ← TPM\VEN_AMD&DEV_0001&VER_2.0 │ 5e704f0d-83cb-5364-8384-f46d725a23b8 ← TPM\VEN_AMD&MOD_AMD&VER_2.0 │ Device Flags: • Internal device │ • System requires external power source │ • Needs a reboot after installation │ • Device can recover flash failures │ • Full disk encryption secrets may be invalidated when updating │ • Signed Payload │ • Can tag for emulation │
├─UEFI Device Firmware: │ Device ID: 8fc9414ee1b271cc8742ce1b244b9c238e6713b0 │ Summary: UEFI System Resource Table device (updated via NVRAM) │ Current version: 335609899 │ Vendor: DMI:American Megatrends International, LLC. │ Update State: Success │ GUID: f766f6e6-b43d-4acd-a4bd-80ff2f0af5cc │ Device Flags: • Internal device │ • Updatable │ • System requires external power source │ • Needs a reboot after installation │ • Device is usable for the duration of the update │ Device Requests: • Message │
├─UEFI Device Firmware: │ Device ID: e6d62239c872f1c5f496a167fafcae04c48f377b │ Summary: UEFI System Resource Table device (updated via NVRAM) │ Current version: 196608 │ Vendor: DMI:American Megatrends International, LLC. │ Update State: Success │ GUID: f5536e63-e4c0-4e0d-84d4-e8e152b1ba65 │ Device Flags: • Internal device │ • Updatable │ • System requires external power source │ • Needs a reboot after installation │ • Device is usable for the duration of the update │ Device Requests: • Message │
├─UEFI Platform Key: │ Device ID: 6924110cde4fa051bfdc600a60620dc7aa9d3c6a │ Summary: Platform Key │ GUID: 2c29036b-dd68-5a09-8a23-f3dac4144696 ← UEFI\CRT_9E5741778BF7B17F1E5C9635D9D4C35BAC829F9A │
└─USB4 host controller: Device ID: 93cc0f725649091898248865b19ddccbb674c2a4 Summary: Unmatched performance for high-speed I/O Current version: 200011.240521 Vendor: ASMedia Technology Inc. (THUNDERBOLT:0x00B8, TBT:0x00B8) GUIDs: 7d6cf48a-b678-52cb-aba9-5131ff029eff ← THUNDERBOLT\VEN_00B8&DEV_2428 37a14b17-74bc-502e-b0b5-90c0f1ab03b8 ← TBT-00b82428 4dca1ce3-3aab-5c5d-beb5-70ca4047c894 ← TBT-00b82428-controller0-0 Device Flags: • Internal device • Updatable • System requires external power source • Device stages updates • Can tag for emulation

Additional questions

  • Operating system and version: Arch Linux 6.13.0-rc5
  • Have you tried rebooting? Yes
  • Is this a regression? N/A

Flat avatar Dec 31 '24 20:12 Flat

@hughsie confirmed.

The issue is here: https://github.com/fwupd/fwupd/blob/main/libfwupd/fwupd-client.c#L3387

Blob size returned by fwupd_client_download_bytes_finish() is 149919 bytes, while the actual size:

$ stat --printf="%s\n" 9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b-aerox-3-wireless-dongle.cab
150137

d4s avatar Jan 07 '25 12:01 d4s

I'm running a LVFS fsck now, will report back with results.

hughsie avatar Jan 07 '25 13:01 hughsie

@hughsie tbh, I don't think the problem is on LVFS side:

Fwupd-INFO: 14:59:07.740: downloading https://fwupd.org/downloads/9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b-aerox-3-wireless-dongle.cab
$ wget https://fwupd.org/downloads/9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b-aerox-3-wireless-dongle.cab
--2025-01-07 14:59:44--  https://fwupd.org/downloads/9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b-aerox-3-wireless-dongle.cab
Resolving fwupd.org (fwupd.org)... 54.212.102.150, 52.38.164.39, 2600:1f14:414:5602::9c36, ...
Connecting to fwupd.org (fwupd.org)|54.212.102.150|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 150137 (147K) [application/vnd.ms-cab-compressed]
Saving to: '9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b-aerox-3-wireless-dongle.cab.1'

9881ab0f42c7dbb6b131149ec48b1a74483 100%[===================================================================>] 146.62K   254KB/s    in 0.6s    

2025-01-07 14:59:45 (254 KB/s) - '9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b-aerox-3-wireless-dongle.cab.1' saved [150137/150137]

d4s avatar Jan 07 '25 14:01 d4s

The LVFS fsck found quite a few problems, e.g. FirmwareRevision #384997 has invalid size, fixing -- can you do "fwupdmgr refresh --force" and see if the download works correctly this time.

hughsie avatar Jan 08 '25 10:01 hughsie

Nothing changed:

$ LANGUAGE=C fwupdmgr refresh --force
WARNING: This package has not been validated, it may not work properly.
Updating lvfs
Downloading…             [***************************************]
Successfully downloaded new metadata: Updates have been published for 3 of 14 local devices

$ LANGUAGE=C fwupdmgr update
WARNING: This package has not been validated, it may not work properly.
╔══════════════════════════════════════════════════════════════════════════════╗
║ Upgrade Aerox 3 Wireless USB Receiver from 1.4.2 to 1.11.4?                  ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ This stable release fixes the following issue:                               ║
║                                                                              ║
║ • Fix issue with wireless connection dropping during use                     ║
║                                                                              ║
║ Aerox 3 Wireless USB Receiver and all connected devices may not be usable    ║
║ while updating.                                                              ║
╚══════════════════════════════════════════════════════════════════════════════╝
Perform operation? [Y|n]: Y
Downloading…             [*************************************  ]
checksum invalid, expected 9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b got 596d1032e7c916822ffae84a48d5f84d641808be761723536c0d82bb83ac077f

d4s avatar Jan 08 '25 12:01 d4s

@hughsie I checked the downloaded file in HEX viewer, the full size is 150137 and looks correct, since the end of the CAB file contains firmware.jcat, so I don't think the problem is in LVFS. See https://github.com/fwupd/fwupd/issues/8260#issuecomment-2575121731

d4s avatar Jan 08 '25 12:01 d4s

Not a developer or anything but I'm still getting this on my computer.

Running Fedora Linux 41 Workstation and Gnome if that helps.

swarming1905 avatar Jan 13 '25 16:01 swarming1905

This is now fixed for me!

swarming1905 avatar Feb 03 '25 12:02 swarming1905

@swarming1905 OOC do you still on the same fwupd version? It would be great if you provide the fwupd version information for the working variant, thanks.

d4s avatar Feb 03 '25 13:02 d4s

Hi. Happy to do so if you tell me how.

in the Firmware app, it lists my firmware version as 1.11.4 which is the version that the Software Store app previously listed as an available update but which all of us were getting this hash error for

swarming1905 avatar Feb 03 '25 13:02 swarming1905

runtime org.freedesktop.fwupd 2.0.4

Error still persists.

Flat avatar Feb 03 '25 13:02 Flat

@swarming1905 Please provide the version of the daemon and client:

fwupdtool get-report-metadata

or

fwupdtool --version

d4s avatar Feb 03 '25 13:02 d4s

Hmmm.... I did the update and it works for me. Used the fwupd from the distro:

$ sudo fwupdtool --version
compile   info.libusb                   1.0.27
compile   org.freedesktop.fwupd         2.0.4
compile   org.freedesktop.Passim        0.1.8
compile   com.hughsie.libxmlb           0.3.19
compile   com.hughsie.libjcat           0.2.2
runtime   org.freedesktop.fwupd-efi     1.5
runtime   com.hughsie.libxmlb           0.3.19
runtime   com.hughsie.libjcat           0.2.2
runtime   org.kernel                    6.12.11-6.12-alt1
runtime   org.freedesktop.fwupd         2.0.4

d4s avatar Feb 03 '25 13:02 d4s

Looks like fwupdmgr upgrade fails with the error, while fwupdtool upgrade succeeds.

sudo fwupdmgr upgrade
╔══════════════════════════════════════════════════════════════════════════════╗
║ Upgrade Aerox 3 Wireless USB Receiver from 1.3.1 to 1.11.4?                  ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ This stable release fixes the following issue:                               ║
║                                                                              ║
║ • Fix issue with wireless connection dropping during use                     ║
║                                                                              ║
║ Aerox 3 Wireless USB Receiver and all connected devices may not be usable    ║
║ while updating.                                                              ║
╚══════════════════════════════════════════════════════════════════════════════╝
Perform operation? [Y|n]: Y
Downloading…             [***************************************]
checksum invalid, expected 9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b got 596d1032e7c916822ffae84a48d5f84d641808be761723536c0d82bb83ac077f
 sudo fwupdtool upgrade
Loading…                 [*****                                  ]13:35:58.024 FuPluginUefiCapsule  skipping device that failed coldplug: ESRT GUID '00000000-0000-0000-0000-000000000000' was not valid
Loading…                 [*******************                    ]
Loading…                 [************************************** ]
╔══════════════════════════════════════════════════════════════════════════════╗
║ Upgrade Aerox 3 Wireless USB Receiver from 1.3.1 to 1.11.4?                  ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ This stable release fixes the following issue:                               ║
║                                                                              ║
║ • Fix issue with wireless connection dropping during use                     ║
║                                                                              ║
║ Aerox 3 Wireless USB Receiver and all connected devices may not be usable    ║
║ while updating.                                                              ║
╚══════════════════════════════════════════════════════════════════════════════╝
Perform operation? [Y|n]: Y
Restarting device…       [***********************************    ]13:36:21.473 FuPluginSteelSeries  failed to reset: failed to do control transfer: USB error: Pipe error [-9]
13:36:21.500 FuDevice             disabling polling: failed to ping: failed to get connection status: failed to do control transfer: USB error: Pipe error [-9]
Waiting…                 [***************************************]
Devices with the latest available firmware version:
 • Aerox 3 Wireless Mouse via USB Receiver

Flat avatar Feb 03 '25 13:02 Flat

@Flat good catch, thank you!

@hughsie indeed -- different behavior for downloading via fwupdtool and fwupdmgr, tested with the current main as well.

d4s avatar Feb 03 '25 16:02 d4s

Can you try with 2.0.5 (or git main branch) please? There was an input stream issue it might have been.

hughsie avatar Feb 13 '25 20:02 hughsie

Unfortunately issue still persists.

❯ sudo fwupdmgr --version
compile   info.libusb                   1.0.27
compile   com.hughsie.libxmlb           0.3.21
compile   com.hughsie.libjcat           0.2.2
compile   org.freedesktop.fwupd         2.0.6
runtime   org.freedesktop.fwupd-efi     1.7
runtime   com.hughsie.libxmlb           0.3.21
compile   org.freedesktop.fwupd.source  2.0.5-75-g2dc288e4c
runtime   com.hughsie.libjcat           0.2.2
runtime   org.kernel                    6.13.2-arch1-1
runtime   org.freedesktop.fwupd         2.0.6


❯ sudo fwupdmgr upgrade
╔══════════════════════════════════════════════════════════════════════════════╗
║ Upgrade Aerox 3 Wireless USB Receiver from 1.3.1 to 1.11.4?                  ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ This stable release fixes the following issue:                               ║
║                                                                              ║
║ • Fix issue with wireless connection dropping during use                     ║
║                                                                              ║
║ Aerox 3 Wireless USB Receiver and all connected devices may not be usable    ║
║ while updating.                                                              ║
╚══════════════════════════════════════════════════════════════════════════════╝
Perform operation? [Y|n]: y
Downloading…             [***************************************]
Successfully installed firmware
checksum invalid, expected 9881ab0f42c7dbb6b131149ec48b1a744836b003321be1840db7ba405ba2908b got 596d1032e7c916822ffae84a48d5f84d641808be761723536c0d82bb83ac077f

Flat avatar Feb 14 '25 01:02 Flat