{"id":"CVE-2026-90259","state":"PUBLISHED","title":"btrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()\n\nIn that function, we round down the start position and round up the\nending position.\n\nBut during the calculation of @len, we use \"round_up(start + len,\nsectorsize)\", which is the rounded up end position, not the rounded up\nlength.\n\nWhich results a much larger length, and later we are still using\n\"start + len\", which is completely incorrect.\n\nFix it by declaring a local @aligned_start and @aligned_len and use them\ninstead.","publishedAt":"2026-09-17T16:07:57.416Z","updatedAt":"2026-10-30T12:34:57.189Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"036e6c216be66a085da3a0519f1be5f3230b6e26","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"202ac9e469b78817512921c5db05cc2140e4ca43","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"34adc843c28e5cd1f533a1d64f51b0f756fdf945","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"e6edde29990af8064b9d12217ec03db231ccd55d","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"c4c136555ff90f1e2921cc42da43daac0ef9985e","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"9102b179512e11644fb0489ae62010a09afa199c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/qgroup.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/qgroup.c"]}],"references":["https://git.kernel.org/stable/c/036e6c216be66a085da3a0519f1be5f3230b6e26","https://git.kernel.org/stable/c/202ac9e469b78817512921c5db05cc2140e4ca43","https://git.kernel.org/stable/c/34adc843c28e5cd1f533a1d64f51b0f756fdf945","https://git.kernel.org/stable/c/e6edde29990af8064b9d12217ec03db231ccd55d","https://git.kernel.org/stable/c/c4c136555ff90f1e2921cc42da43daac0ef9985e","https://git.kernel.org/stable/c/9102b179512e11644fb0489ae62010a09afa199c"],"weaknesses":[],"ingestedAt":"2026-10-30T12:54:04.478Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90259.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90259","state":"PUBLISHED","datePublished":"2026-09-17T16:07:57.416Z","dateUpdated":"2026-10-30T12:34:57.189Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.796Z"},"containers":{"cna":{"title":"btrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: qgroup: fix a wrong length calculation in qgroup_free_reserved_data()\n\nIn that function, we round down the start position and round up the\nending position.\n\nBut during the calculation of @len, we use \"round_up(start + len,\nsectorsize)\", which is the rounded up end position, not the rounded up\nlength.\n\nWhich results a much larger length, and later we are still using\n\"start + len\", which is completely incorrect.\n\nFix it by declaring a local @aligned_start and @aligned_len and use them\ninstead."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"036e6c216be66a085da3a0519f1be5f3230b6e26","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"202ac9e469b78817512921c5db05cc2140e4ca43","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"34adc843c28e5cd1f533a1d64f51b0f756fdf945","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"e6edde29990af8064b9d12217ec03db231ccd55d","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"c4c136555ff90f1e2921cc42da43daac0ef9985e","versionType":"git"},{"version":"bc42bda22345efdb5d8b578d1b4df2c6eaa85c58","status":"affected","lessThan":"9102b179512e11644fb0489ae62010a09afa199c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/qgroup.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.13","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/qgroup.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/036e6c216be66a085da3a0519f1be5f3230b6e26"},{"url":"https://git.kernel.org/stable/c/202ac9e469b78817512921c5db05cc2140e4ca43"},{"url":"https://git.kernel.org/stable/c/34adc843c28e5cd1f533a1d64f51b0f756fdf945"},{"url":"https://git.kernel.org/stable/c/e6edde29990af8064b9d12217ec03db231ccd55d"},{"url":"https://git.kernel.org/stable/c/c4c136555ff90f1e2921cc42da43daac0ef9985e"},{"url":"https://git.kernel.org/stable/c/9102b179512e11644fb0489ae62010a09afa199c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:34:57.189Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.13","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}