{"id":"CVE-2026-139020","aliases":["CVE-2026-139020"],"related":[],"kind":"vulnerability","state":"published","title":"gfs2: reject invalid inode sizes","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: reject invalid inode sizes\n\nA corrupted GFS2 image can store a dinode size that is larger than what VFS\ni_size can represent. gfs2_dinode_in() reads the on-disk di_size as a u64 and\nwrites it directly into inode->i_size. If the value is larger than S64_MAX, the\nincore i_size becomes negative. That negative value can bypass the existing\nstuffed inode size check:\n\ninode->i_size > gfs2_max_stuffed_size(ip)\n\nLater, gfs2_quotad may try to sync the quota file and unstuff the quota inode.\ngfs2_unstuffer_folio() reads the negative i_size into an unsigned length and\npasses it to memcpy(), turning it into a huge copy size and triggering a\nout-of-bound issue.\n\nReject dinodes whose size exceeds sb->s_maxbytes before storing the value in\ninode->i_size. Also make the stuffed inode check use the raw on-disk size while\nit is still unsigned.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: reject invalid inode sizes\n\nA corrupted GFS2 image can store a dinode size that is larger than what VFS\ni_size can represent. gfs2_dinode_in() reads the on-disk di_size as a u64 and\nwrites it directly into inode->i_size. If the value is larger than S64_MAX, the\nincore i_size becomes negative. That negative value can bypass the existing\nstuffed inode size check:\n\ninode->i_size > gfs2_max_stuffed_size(ip)\n\nLater, gfs2_quotad may try to sync the quota file and unstuff the quota inode.\ngfs2_unstuffer_folio() reads the negative i_size into an unsigned length and\npasses it to memcpy(), turning it into a huge copy size and triggering a\nout-of-bound issue.\n\nReject dinodes whose size exceeds sb->s_maxbytes before storing the value in\ninode->i_size. Also make the stuffed inode check use the raw on-disk size while\nit is still unsigned.","source":"cvelist"}],"published":"2026-11-30T13:27:07.802Z","modified":"2026-11-30T14:18:05.613Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7c414f6f06e9a3934901b6edc3177ae5a1e07094","fixed":"8db6c08e0da0e8f13845128bc975f1f2656060a5","status":"affected"},{"type":"git","introduced":"46c9088cabd4d0469fdb61ac2a9c5003057fe94d","fixed":"8a76ac82ec1a5bd5f378d4174e0dfc8d35d89340","status":"affected"},{"type":"git","introduced":"d458a0984429c2d47e60254f5bc4119cbafe83a2","fixed":"435cf27c40b01315e33918c20d529f4ace0c5f57","status":"affected"},{"type":"git","introduced":"70376c7ff31221f1d21db5611d8209e677781d3a","fixed":"7a81c9cf915cc899db84e0fc02f5c6b545eaed4b","status":"affected"},{"type":"git","introduced":"70376c7ff31221f1d21db5611d8209e677781d3a","fixed":"bb88934553eb89573145cb01a413860771aed97f","status":"affected"},{"type":"git","introduced":"70376c7ff31221f1d21db5611d8209e677781d3a","fixed":"bd2919d4491068974c6348961d7af6dc0e7b9108","status":"affected"},{"type":"git","introduced":"70376c7ff31221f1d21db5611d8209e677781d3a","fixed":"3f749d1755c1b82f7c102bd9522ea3b5039d3171","status":"affected"},{"type":"git","introduced":"70376c7ff31221f1d21db5611d8209e677781d3a","fixed":"33ed0a0567e0abe66ea65e89dad2e35082890fbe","status":"affected"},{"type":"git","version":"45df749f827c286adbc951f2a4865b67f0442ba9","status":"affected"},{"type":"git","version":"4d4cb76636134bf9a0c9c3432dae936f99954586","status":"affected"},{"type":"semver","introduced":"5.10.177","fixed":"5.10.275","status":"affected"},{"type":"semver","introduced":"5.15.93","fixed":"5.15.226","status":"affected"},{"type":"semver","introduced":"6.1.11","fixed":"6.1.193","status":"affected"},{"type":"semver","introduced":"4.19.280","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.4.240","fixed":"5.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8db6c08e0da0e8f13845128bc975f1f2656060a5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8a76ac82ec1a5bd5f378d4174e0dfc8d35d89340","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/435cf27c40b01315e33918c20d529f4ace0c5f57","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7a81c9cf915cc899db84e0fc02f5c6b545eaed4b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bb88934553eb89573145cb01a413860771aed97f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd2919d4491068974c6348961d7af6dc0e7b9108","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f749d1755c1b82f7c102bd9522ea3b5039d3171","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33ed0a0567e0abe66ea65e89dad2e35082890fbe","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139020","url":"https://www.cve.org/CVERecord?id=CVE-2026-139020","licence":"CVE Terms of Use","modified":"2026-11-30T13:27:07.802Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139020","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139020","licence":"Public domain","modified":"2026-11-30T14:18:05.613Z"}],"updatedAt":"2026-11-30T14:32:45.450Z","epss":{"score":0.00222,"percentile":0.13626,"date":"2026-12-01T12:00:22.000Z"}}