Bug#1100470: Segfault with NTFS CVE fixes

Mate Kukri mate.kukri at canonical.com
Mon Mar 17 10:10:06 GMT 2025


Hi Marta,

We've blanket reverted all the latest fs/ntfs changes in Debian sid on
Saturday due to both some critical boot regressions caused by GRUB
being stuck in an infinite loop, and to a lesser extent the os-prober
segfaults.

There are supposed fixes on grub-devel, but since NTFS is newly gated
off for UEFI SB, we've decided to just go with the revert, as the
amount of regressions in upstream patches have not inspired any
confidence recently.

Mate

On Mon, Mar 17, 2025 at 9:45 AM Marta Lewandowska <mlewando at redhat.com> wrote:
>
> You're not the only ones who have bugs reported... we're got one and Arch as well. I sent this email to the list a week ago; I don't know where it got lost...
>
> ---
> Hi,
>
> This patch also fixes an issue introduced by the original patch involving dual booting: grub-mount seg faults when trying to mount an ntfs volume, e.g., when grub-mkconfig is run. There are bugs for this on fedora [1] and arch [2], so further review of this patch is really appreciated!
>
> thanks!
> marta
>
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=2350327
> [2] https://gitlab.archlinux.org/archlinux/packaging/packages/grub/-/issues/11
>
>
> On Sat, Mar 15, 2025 at 3:14 PM Eric Valette <eric.valette at gmail.com> wrote:
>>
>> On 15/03/2025 08:54, Felix Zielcke wrote:
>> > Hi,
>> >
>> > on Debian we got a bug report with a segfault in grub-mount when we
>> > added the CVE fixes to it:
>> >
>> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1100470
>> >
>> > It crashes on all 3 Windows NTFS Partitions with this:
>> >
>> > Program received signal SIGSEGV, Segmentation fault.
>> > Download failed: Invalid argument.  Continuing without source file
>> > ./obj/grub-pc/../../grub-core/fs/ntfs.c.
>> > 0x000055555557de34 in find_attr (at=at at entry=0x555555694ea0,
>> >       attr=attr at entry=128 '\200') at ../../grub-core/fs/ntfs.c:390
>> > warning: 390    ../../grub-core/fs/ntfs.c: No such file or directory
>> >
>> > Line 390 is the same AFAICS on upstream grub.git and Debian packaging:
>> >
>> > while (at->attr_cur < mft_end && *at->attr_cur != 0xFF)
>> >
>> > I don't know what is special on their NTFS partitions. I can't
>> > reproduce this with my own dual-boot system.
>> >
>> Just for the record :
>>
>>      1) NTFS fs have been created using W10 or W11 tools,
>>
>>      2) I did run from windows cmd line  chkdsk /r /x /f on one of the
>> three NTFS fs triggering the problem,
>>
>>      3) no error found
>>
>>      4) But it still segfault,
>>
>> --
>> Eric Valette
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel at gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grub-devel



More information about the Pkg-grub-devel mailing list