Eavesdropping / injection vulnerabilities allow unencrypted wireless mouse connection to be used as a keyboard by attackers to inject unwanted keystrokes, possibly taking over your PC. Force pairing allows unauthorized input to your PC. Logitech device firmware has distinct per-OS update procedures.
On Windows, the Unifying software is used to update firmware and pair receivers with mice and keyboards. In Logitech Unifying software click Advanced → Update Firmware
On Linux, check firmware version and pair devices to the Logitech Unifying receiver with Solaar:
apt install solaar
Fwupd: list all recognized devices, including firmware versions where applicable: