cvelo
P4 · InfoEPSS 0.2%

gfs2: reject invalid inode sizes

  • CVE-2026-139020
  • GHSA-rf74-r3mf-7fv3
  • EUVD-2026-138772

Description

In the Linux kernel, the following vulnerability has been resolved: gfs2: reject invalid inode sizes A corrupted GFS2 image can store a dinode size that is larger than what VFS i_size can represent. gfs2_dinode_in() reads the on-disk di_size as a u64 and writes it directly into inode->i_size. If the value is larger than S64_MAX, the incore i_size becomes negative. That negative value can bypass the existing stuffed inode size check: inode->i_size > gfs2_max_stuffed_size(ip) Later, gfs2_quotad may try to sync the quota file and unstuff the quota inode. gfs2_unstuffer_folio() reads the negative i_size into an unsigned length and passes it to memcpy(), turning it into a huge copy size and triggering a out-of-bound issue. Reject dinodes whose size exceeds sb->s_maxbytes before storing the value in inode->i_size. Also make the stuffed inode check use the raw on-disk size while it is still unsigned.

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
    • If you run a version from 5.4.240 to before 5.5update to 5.5 or laterMinor version change: check the release notes
    • If you run a version from 4.19.280 to before 4.20update to 4.20 or laterMinor version change: check the release notes

    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.11 to before 6.1.1936.1.193
    from 5.15.93 to before 5.15.2265.15.226
    from 5.10.177 to before 5.10.2755.10.275
    from 5.4.240 to before 5.55.5
    from 4.19.280 to before 4.204.20
    6.2none stated
    before 6.2: not affectednone stated
    from 5.10.275 up to 5.10.*: not affectednone stated

    and 7 more

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.