{"id":"CVE-2022-49739","state":"PUBLISHED","title":"gfs2: Always check inode size of inline inodes","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Always check inode size of inline inodes\n\nCheck if the inode size of stuffed (inline) inodes is within the allowed\nrange when reading inodes from disk (gfs2_dinode_in()).  This prevents\nus from on-disk corruption.\n\nThe two checks in stuffed_readpage() and gfs2_unstuffer_page() that just\ntruncate inline data to the maximum allowed size don't actually make\nsense, and they can be removed now as well.","publishedAt":"2025-03-27T16:42:51.609Z","updatedAt":"2026-08-05T08:56:11.211Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"45df749f827c286adbc951f2a4865b67f0442ba9","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"4d4cb76636134bf9a0c9c3432dae936f99954586","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"7c414f6f06e9a3934901b6edc3177ae5a1e07094","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"46c9088cabd4d0469fdb61ac2a9c5003057fe94d","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"d458a0984429c2d47e60254f5bc4119cbafe83a2","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"70376c7ff31221f1d21db5611d8209e677781d3a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/gfs2/aops.c","fs/gfs2/bmap.c","fs/gfs2/glops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"4.19.280","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.240","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.177","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.93","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.11","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/gfs2/aops.c","fs/gfs2/bmap.c","fs/gfs2/glops.c"]}],"references":["https://git.kernel.org/stable/c/45df749f827c286adbc951f2a4865b67f0442ba9","https://git.kernel.org/stable/c/4d4cb76636134bf9a0c9c3432dae936f99954586","https://git.kernel.org/stable/c/7c414f6f06e9a3934901b6edc3177ae5a1e07094","https://git.kernel.org/stable/c/46c9088cabd4d0469fdb61ac2a9c5003057fe94d","https://git.kernel.org/stable/c/d458a0984429c2d47e60254f5bc4119cbafe83a2","https://git.kernel.org/stable/c/70376c7ff31221f1d21db5611d8209e677781d3a"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49739.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49739","state":"PUBLISHED","datePublished":"2025-03-27T16:42:51.609Z","dateUpdated":"2026-08-05T08:56:11.211Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-03-27T16:39:17.986Z"},"containers":{"cna":{"title":"gfs2: Always check inode size of inline inodes","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Always check inode size of inline inodes\n\nCheck if the inode size of stuffed (inline) inodes is within the allowed\nrange when reading inodes from disk (gfs2_dinode_in()).  This prevents\nus from on-disk corruption.\n\nThe two checks in stuffed_readpage() and gfs2_unstuffer_page() that just\ntruncate inline data to the maximum allowed size don't actually make\nsense, and they can be removed now as well."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"45df749f827c286adbc951f2a4865b67f0442ba9","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"4d4cb76636134bf9a0c9c3432dae936f99954586","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"7c414f6f06e9a3934901b6edc3177ae5a1e07094","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"46c9088cabd4d0469fdb61ac2a9c5003057fe94d","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"d458a0984429c2d47e60254f5bc4119cbafe83a2","versionType":"git"},{"version":"b3b94faa5fe5968827ba0640ee9fba4b3e7f736e","status":"affected","lessThan":"70376c7ff31221f1d21db5611d8209e677781d3a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/gfs2/aops.c","fs/gfs2/bmap.c","fs/gfs2/glops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"4.19.280","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.240","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.177","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.93","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.11","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/gfs2/aops.c","fs/gfs2/bmap.c","fs/gfs2/glops.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/45df749f827c286adbc951f2a4865b67f0442ba9"},{"url":"https://git.kernel.org/stable/c/4d4cb76636134bf9a0c9c3432dae936f99954586"},{"url":"https://git.kernel.org/stable/c/7c414f6f06e9a3934901b6edc3177ae5a1e07094"},{"url":"https://git.kernel.org/stable/c/46c9088cabd4d0469fdb61ac2a9c5003057fe94d"},{"url":"https://git.kernel.org/stable/c/d458a0984429c2d47e60254f5bc4119cbafe83a2"},{"url":"https://git.kernel.org/stable/c/70376c7ff31221f1d21db5611d8209e677781d3a"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The flaw is reached by mounting or using a crafted GFS2 block device/image (mount → gfs2_fill_super → inode refresh → gfs2_dinode_in / iomap or directory stuffed reads); GFS2 has no network protocol front end that parses these dinode fields.\nAC:L - The attacker fully controls on-disk di_size, di_height, and related dinode fields, so an oversized stuffed inode size deterministically bypasses the missing gfs2_dinode_in() check and drives the OOB/WARN paths with no race or other condition outside attacker control.\nPR:N - The attacker only needs to supply a malicious GFS2 volume (USB/media, disk image, or shared/SAN LUN) and needs no account on the target; CAP_SYS_ADMIN required to mount (gfs2 lacks FS_USERNS_MOUNT) belongs to the victim who mounts it.\nUI:R - Exploitation requires a privileged user or automount/storage path to mount the attacker-supplied GFS2 volume so gfs2_dinode_in()/stuffed readers run; the bug is not reachable without that mount or subsequent access of the crafted inode.\nS:U - Out-of-bounds reads and WARN/withdraw occur in the host kernel on the mounting node; there is no VM escape, IOMMU bypass, or other cross-authority boundary crossing.\nC:H - Oversized stuffed sizes make iomap_read_inline_data and especially gfs2_dir_read_stuffed() memcpy past the dinode buffer into adjacent page/kernel memory (e.g. EXHASH stuffed dirs with i_size matching BIT(i_depth)*8), which is an unbounded OOB read enabling kernel memory disclosure.\nI:N - The reachable primitive is an out-of-bounds read (and WARN/-EIO); pre-fix truncations in stuffed_readpage()/gfs2_unstuffer_page() still capped write/unstuff copies, so there is no OOB write or UAF write primitive from this defect alone.\nA:H - syzbot demonstrates WARN_ON_ONCE in iomap_read_inline_data during mount, which panics under panic_on_warn, and corrupt stuffed inodes can withdraw/fail the mount or oops on the OOB read path, fully denying availability."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:56:11.211Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"4.19.280"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.4.240"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.10.177"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.15.93"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.1.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}