Invalid inode sizes in Linux kernel GFS2 cause out-of-bounds copy
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Partial Red Hat: 3 without a fix
No CVSS vector from any source. Fix status from CNA and Red Hat.
Summary
The Linux kernel GFS2 filesystem is affected from 4.19.280 before 4.20, from 5.4.240 before 5.5, from 5.10.177 before 5.10.275, from 5.15.93 before 5.15.226, from 6.1.11 before 6.1.193, and from 6.2. The gfs2_dinode_in() function stores an on-disk inode size larger than the VFS can represent, which makes the in-memory size negative. A corrupted GFS2 image can then trigger an out-of-bounds memory copy during quota file unstuffing.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.10.177 to before 5.10.275; 5.15.93 to before 5.15.226; 6.1.11 to before 6.1.193; 4.19.280 to before 4.20; 5.4.240 to before 5.5 | 5.10.275, 5.15.226, 6.1.193, 4.20, 5.5 | Patch available | CNA |
| Linux | Linux | 6.2 and later | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.4, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 5.10.177 to before 5.10.275; 5.15.93 to before 5.15.226; 6.1.11 to before 6.1.193; 4.19.280 to before 4.20; 5.4.240 to before 5.5 Fixed in 5.10.275, 5.15.226, 6.1.193, 4.20, 5.5 Patch available CNA
- Linux VendorLinux Affected 6.2 and later Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.4, 7.4-rc1 Patch available CNA
Remediation
Update the Linux kernel to 4.20, 5.5, 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.4, or 7.4-rc1, depending on the branch in use. The sources list no fixed version for Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4, or Red Hat OpenShift Container Platform 5.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 4.20, 5.5
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.4, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
Not affected: 6 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139020
- 2026-11-30 Alias added: GHSA-rf74-r3mf-7fv3
- 2026-12-01 Affected versions changed · Red Hat
- 2026-12-01 CVSS score added · Red Hat
References
Other 8
- https://git.kernel.org/stable/c/8db6c08e0da0e8f13845128bc975f1f2656060a5
- https://git.kernel.org/stable/c/8a76ac82ec1a5bd5f378d4174e0dfc8d35d89340
- https://git.kernel.org/stable/c/435cf27c40b01315e33918c20d529f4ace0c5f57
- https://git.kernel.org/stable/c/7a81c9cf915cc899db84e0fc02f5c6b545eaed4b
- https://git.kernel.org/stable/c/bb88934553eb89573145cb01a413860771aed97f
- https://git.kernel.org/stable/c/bd2919d4491068974c6348961d7af6dc0e7b9108
- https://git.kernel.org/stable/c/3f749d1755c1b82f7c102bd9522ea3b5039d3171
- https://git.kernel.org/stable/c/33ed0a0567e0abe66ea65e89dad2e35082890fbe
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139020 · CVE Program
- CVE-2026-139020 · NVD
- GHSA-rf74-r3mf-7fv3 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-139020 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences