{"id":"CVE-2026-31556","state":"PUBLISHED","title":"xfs: scrub: unlock dquot before early return in quota scrub","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: scrub: unlock dquot before early return in quota scrub\n\nxchk_quota_item can return early after calling xchk_fblock_process_error.\nWhen that helper returns false, the function returned immediately without\ndropping dq->q_qlock, which can leave the dquot lock held and risk lock\nleaks or deadlocks in later quota operations.\n\nFix this by unlocking dq->q_qlock before the early return.","publishedAt":"2026-04-24T14:35:39.880Z","updatedAt":"2026-05-11T22:11:04.289Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7d1f0e167a067ed741dec08b7614d76893422b04","status":"affected","lessThan":"e822f535273af0e8968eab7acc0cea0b90dd25af","versionType":"git"},{"version":"7d1f0e167a067ed741dec08b7614d76893422b04","status":"affected","lessThan":"3b0c3414b308e6822cda90bf99f7eac94d4cca2b","versionType":"git"},{"version":"7d1f0e167a067ed741dec08b7614d76893422b04","status":"affected","lessThan":"d128fc0c5c2b19224927d4fd2a46c2fe6a1f606f","versionType":"git"},{"version":"7d1f0e167a067ed741dec08b7614d76893422b04","status":"affected","lessThan":"268378b6ad20569af0d1957992de1c8b16c6e900","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/quota.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.80","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.21","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.11","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/quota.c"]}],"references":["https://git.kernel.org/stable/c/e822f535273af0e8968eab7acc0cea0b90dd25af","https://git.kernel.org/stable/c/3b0c3414b308e6822cda90bf99f7eac94d4cca2b","https://git.kernel.org/stable/c/d128fc0c5c2b19224927d4fd2a46c2fe6a1f606f","https://git.kernel.org/stable/c/268378b6ad20569af0d1957992de1c8b16c6e900"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31556.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31556","state":"PUBLISHED","datePublished":"2026-04-24T14:35:39.880Z","dateUpdated":"2026-05-11T22:11:04.289Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.115Z"},"containers":{"cna":{"title":"xfs: scrub: unlock dquot before early return in quota scrub","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: scrub: unlock dquot before early return in quota scrub\n\nxchk_quota_item can return early after calling xchk_fblock_process_error.\nWhen that helper returns false, the function returned immediately without\ndropping dq->q_qlock, which can leave the dquot lock held and risk lock\nleaks or deadlocks in later quota operations.\n\nFix this by unlocking dq->q_qlock before the early return."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7d1f0e167a067ed741dec08b7614d76893422b04","status":"affected","lessThan":"e822f535273af0e8968eab7acc0cea0b90dd25af","versionType":"git"},{"version":"7d1f0e167a067ed741dec08b7614d76893422b04","status":"affected","lessThan":"3b0c3414b308e6822cda90bf99f7eac94d4cca2b","versionType":"git"},{"version":"7d1f0e167a067ed741dec08b7614d76893422b04","status":"affected","lessThan":"d128fc0c5c2b19224927d4fd2a46c2fe6a1f606f","versionType":"git"},{"version":"7d1f0e167a067ed741dec08b7614d76893422b04","status":"affected","lessThan":"268378b6ad20569af0d1957992de1c8b16c6e900","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/quota.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.8","versionType":"semver"},{"version":"6.12.80","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.21","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.11","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/scrub/quota.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e822f535273af0e8968eab7acc0cea0b90dd25af"},{"url":"https://git.kernel.org/stable/c/3b0c3414b308e6822cda90bf99f7eac94d4cca2b"},{"url":"https://git.kernel.org/stable/c/d128fc0c5c2b19224927d4fd2a46c2fe6a1f606f"},{"url":"https://git.kernel.org/stable/c/268378b6ad20569af0d1957992de1c8b16c6e900"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:11:04.289Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.12.80"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.18.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"6.19.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.8","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}