The fail path in grub_cmd_chainloader calls grub_free(cmdline) in line 1190 and line 1197 The error was introduced in bf774366935874d59995f3649740c6d464d4762d 'Add secureboot support on efi chainloader' where the second free call was added in as line 1107 The same issue also exists in other fedora versions that are based on Grub 2.12 Reproducible: Always
Created attachment 2091898 [details] Patch fixing the problem
Hi Thomas, Thanks for reporting this as well as the patch. Please add a Signed-off-by and also a Reviewed-by: Nicolas Frayer <nfrayer> Regards, Nicolas
Created attachment 2091928 [details] Patch v2 Added signed-off and reviewed-by
FEDORA-2025-b0ae534a31 (grub2-2.12-32.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-b0ae534a31
FEDORA-2025-b0ae534a31 has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b0ae534a31` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b0ae534a31 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-eb145f3cb9 (grub2-2.12-25.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2025-eb145f3cb9
FEDORA-2025-b0ae534a31 (grub2-2.12-32.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2025-eb145f3cb9 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-eb145f3cb9` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-eb145f3cb9 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-eb145f3cb9 (grub2-2.12-25.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.