cvelo
P2 · HighCVSS 7.0EPSS 0.2%

ext4: fix out-of-bounds read in ext4_get_group_info()

  • CVE-2026-138872
  • GHSA-gp5c-hjxg-j795
  • EUVD-2026-138575

Description

Show the whole description

In the Linux kernel, the following vulnerability has been resolved: ext4: fix out-of-bounds read in ext4_get_group_info() A plain read of s_groups_count in ext4_get_group_info() allows CPU load-load reordering. On weak memory models, speculative prefetch of s_group_info prior to the boundary check could lead to an out-of-bounds read if a concurrent online resize expands the array and increments s_groups_count. The data race occurs between the ioctl configuration path (holding the resize lock via ext4_resize_begin) and the lockless metadata lookup path: CPU 0 (Writer, Resize Lock) CPU 1 (Reader, Lockless) --------------------------- ------------------------ ext4_ioctl() [EXT4_IOC_GROUP_ADD] ext4_ioctl_group_add() ext4_resize_begin() // Takes lock ext4_group_add() ext4_mb_alloc_groupinfo() // Publishes expanded array via RCU rcu_assign_pointer(s_group_info, ...) ext4_flex_group_add() ext4_update_super() ext4_get_group_info() // Speculative / out-of-order read [Loads old/smaller s_group_info pointer] [Plain C store / smp_wmb()] sbi->s_groups_count += ...; // Reads new s_groups_count, // boundary check passes if (group >= s_groups_count) // Out-of-bounds array access! sbi_array_rcu_deref(..., s_group_info) Fix this by using ext4_get_groups_count() to enforce acquire semantics.

Text from the CVE.org record.

Recommendation

  • Linux

    • If you run 6.1.xupdate to 6.1.193 or laterPatch update: breaking changes are unlikely
    • If you run 5.15.xupdate to 5.15.226 or laterPatch update: breaking changes are unlikely
    • If you run 5.10.xupdate to 5.10.275 or laterPatch update: breaking changes are unlikely

    Some affected versions have no stated fix.

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Linux

    Affected versionsFixed in
    from 6.1.30 to before 6.1.1936.1.193
    from 5.15.113 to before 5.15.2265.15.226
    from 5.10.181 to before 5.10.2755.10.275
    from 6.3.4 to before 6.4none stated
    6.4none stated
    before 6.4: not affectednone stated
    from 5.10.275 up to 5.10.*: not affectednone stated
    from 5.15.226 up to 5.15.*: not affectednone stated

    and 6 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.