Skip to contentSkip to conversation

Bug#1144079: Mismerge of CVE-2025-13151

DISCUSSION Steve McIntyre 3 participants 3 messages Aug 11 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 2142111.0S5aU1g85B@debian-ei

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1957669.R1toDxpfAE@debian-ei

#3 lore raw

Adding the GRUB upstream development list on this too; the information is already public in the Debian BTS so there's no point trying to keep thie embargoed.

Quoted 41 lines · Bastien Roucaries
Quoted 27 lines · Le mardi 11 août 2026, 06:19:06 heure d’été d’Europe centrale Carlos Henrique…

Control: found -1 2.14~git20250718.0e36779-1

Hi,

Quoted 22 lines · Bastien Roucaries

CVE-2025-13151 (libtasn1 - off-by-one in asn1_expand_octet_string, fixed in 4.20.0)

The fix changes:
char name[2 * ASN1_MAX_NAME_SIZE + 1]

to:

   char name[2 * ASN1_MAX_NAME_SIZE + 2]

This applies to two functions: asn1_expand_any_defined_by and asn1_expand_octet_string.

Grub2 vendor libtasn1 internally and show a partial fix - asn1_expand_any_defined_by has been updated (+ 2 present) but asn1_expand_octet_string still carries the vulnerable version (+ 1):
- grub2 (grub-core/lib/libtasn1/lib/decoding.c) asn1_expand_any_defined_by: patched
asn1_expand_octet_string: VULNERABLE
Note: grub2 carries two separate embedded copies (libtasn1 and
libtasn1-grub)

Quoted 4 lines
Quoted 1 line

Thanks to Gajendra Nath Soren

This embedded copy was added in 9a26abbc368 (grub-2.14-rc1), so it only (possibly) affects forky/sid.

Can we report upstream ?

rouca

Quoted 4 lines

Cheers,
Charles

Signature · 10 lines
Steve McIntyre, Cambridge, UK.                                [email protected]
  Armed with "Valor": "Centurion" represents quality of Discipline,
  Honor, Integrity and Loyalty. Now you don't have to be a Caesar to
  concord the digital world while feeling safe and proud.


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#4 lore raw
Quoted 47 lines · Steve McIntyre

Adding the GRUB upstream development list on this too; the information is already public in the Debian BTS so there's no point trying to keep thie embargoed.

Quoted 41 lines · Bastien Roucaries
Quoted 27 lines · Le mardi 11 août 2026, 06:19:06 heure d’été d’Europe centrale Carlos Henrique…

Control: found -1 2.14~git20250718.0e36779-1

Hi,

Quoted 22 lines · Bastien Roucaries

CVE-2025-13151 (libtasn1 - off-by-one in asn1_expand_octet_string, fixed in 4.20.0)

The fix changes:
char name[2 * ASN1_MAX_NAME_SIZE + 1]

to:

   char name[2 * ASN1_MAX_NAME_SIZE + 2]

This applies to two functions: asn1_expand_any_defined_by and asn1_expand_octet_string.

Grub2 vendor libtasn1 internally and show a partial fix - asn1_expand_any_defined_by has been updated (+ 2 present) but asn1_expand_octet_string still carries the vulnerable version (+ 1):
- grub2 (grub-core/lib/libtasn1/lib/decoding.c) asn1_expand_any_defined_by: patched
asn1_expand_octet_string: VULNERABLE
Note: grub2 carries two separate embedded copies (libtasn1 and
libtasn1-grub)

Quoted 4 lines
Quoted 1 line

Thanks to Gajendra Nath Soren

This embedded copy was added in 9a26abbc368 (grub-2.14-rc1), so it only (possibly) affects forky/sid.

Can we report upstream ?

rouca

Quoted 4 lines

Cheers,
Charles

Thanks for the heads-up. I created a task on the new GRUB issue tracker.

https://gitlab.freedesktop.org/gnu-grub/grub/-/work_items/66

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#5 lore raw

+ Thomas Grainger

Thanks Mike for reporting it.

In resume, there is a MR which would solve this
https://gitlab.freedesktop.org/gnu-grub/grub/-/merge_requests/177

Thomas, correct me if I am wrong?

Quoted 52 lines · Mike Gilbert
Quoted 7 lines · Steve McIntyre

Adding the GRUB upstream development list on this too; the information is already public in the Debian BTS so there's no point trying to keep thie embargoed.

Quoted 1 line · Bastien Roucaries

Le mardi 11 août 2026, 06:19:06 heure d’été d’Europe centrale Carlos

Quoted 7 lines · Henrique Lima Melara
Quoted 7 lines
Quoted 7 lines

Control: found -1 2.14~git20250718.0e36779-1

Hi,

Quoted 2 lines · Bastien Roucaries

CVE-2025-13151 (libtasn1 - off-by-one in asn1_expand_octet_string,

fixed in

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines

4.20.0)

The fix changes:
char name[2 * ASN1_MAX_NAME_SIZE + 1]

to:

   char name[2 * ASN1_MAX_NAME_SIZE + 2]

This applies to two functions: asn1_expand_any_defined_by and asn1_expand_octet_string.

Grub2 vendor libtasn1 internally and show a partial fix - asn1_expand_any_defined_by has been updated (+ 2 present) but asn1_expand_octet_string still carries the vulnerable version (+ 1):
- grub2 (grub-core/lib/libtasn1/lib/decoding.c) asn1_expand_any_defined_by: patched
asn1_expand_octet_string: VULNERABLE
Note: grub2 carries two separate embedded copies (libtasn1 and
libtasn1-grub)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

Thanks to Gajendra Nath Soren

This embedded copy was added in 9a26abbc368 (grub-2.14-rc1), so it

only

Quoted 10 lines
Quoted 10 lines
Quoted 1 line

(possibly) affects forky/sid.

Can we report upstream ?

rouca

Quoted 4 lines

Cheers,
Charles

Quoted 10 lines

Thanks for the heads-up. I created a task on the new GRUB issue tracker.

https://gitlab.freedesktop.org/gnu-grub/grub/-/work_items/66

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel