The bug is caused by absense of the base_currency_code column in the sales_creditmemo_grid table.
Without the base_currency_code column the Magento\Sales\Ui\Component\Listing\Column\Price::prepareDataSource() formats the amounts in the display currency, but actually the base_grand_total value is in the base currency.