On Ubuntu, there is a program called "Firmware Updater" which uses LVFS to retrieve and install firmware updates (including BIOS/UEFI).
According to this page: https://fwupd.org/lvfs/devices/com.lenovo.ThinkPadN23ETXXW.firmware your Carbon X1 Gen 6 should be supported.