{"id":"CVE-2023-52760","state":"PUBLISHED","title":"gfs2: Fix slab-use-after-free in gfs2_qd_dealloc","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Fix slab-use-after-free in gfs2_qd_dealloc\n\nIn gfs2_put_super(), whether withdrawn or not, the quota should\nbe cleaned up by gfs2_quota_cleanup().\n\nOtherwise, struct gfs2_sbd will be freed before gfs2_qd_dealloc (rcu\ncallback) has run for all gfs2_quota_data objects, resulting in\nuse-after-free.\n\nAlso, gfs2_destroy_threads() and gfs2_quota_cleanup() is already called\nby gfs2_make_fs_ro(), so in gfs2_put_super(), after calling\ngfs2_make_fs_ro(), there is no need to call them again.","publishedAt":"2024-05-21T15:30:46.427Z","updatedAt":"2026-08-05T09:11:15.944Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f66af88e33212b57ea86da2c5d66c0d9d5c46344","status":"affected","lessThan":"08a28272faa750d4357ea2cb48d2baefd778ea81","versionType":"git"},{"version":"f66af88e33212b57ea86da2c5d66c0d9d5c46344","status":"affected","lessThan":"bdcb8aa434c6d36b5c215d02a9ef07551be25a37","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/gfs2/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.3","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/gfs2/super.c"]}],"references":["https://git.kernel.org/stable/c/08a28272faa750d4357ea2cb48d2baefd778ea81","https://git.kernel.org/stable/c/bdcb8aa434c6d36b5c215d02a9ef07551be25a37","https://git.kernel.org/stable/c/7ad4e0a4f61c57c3ca291ee010a9d677d0199fba","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52760.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52760","state":"PUBLISHED","datePublished":"2024-05-21T15:30:46.427Z","dateUpdated":"2026-08-05T09:11:15.944Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-21T15:19:24.237Z"},"containers":{"cna":{"title":"gfs2: Fix slab-use-after-free in gfs2_qd_dealloc","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Fix slab-use-after-free in gfs2_qd_dealloc\n\nIn gfs2_put_super(), whether withdrawn or not, the quota should\nbe cleaned up by gfs2_quota_cleanup().\n\nOtherwise, struct gfs2_sbd will be freed before gfs2_qd_dealloc (rcu\ncallback) has run for all gfs2_quota_data objects, resulting in\nuse-after-free.\n\nAlso, gfs2_destroy_threads() and gfs2_quota_cleanup() is already called\nby gfs2_make_fs_ro(), so in gfs2_put_super(), after calling\ngfs2_make_fs_ro(), there is no need to call them again."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f66af88e33212b57ea86da2c5d66c0d9d5c46344","status":"affected","lessThan":"08a28272faa750d4357ea2cb48d2baefd778ea81","versionType":"git"},{"version":"f66af88e33212b57ea86da2c5d66c0d9d5c46344","status":"affected","lessThan":"bdcb8aa434c6d36b5c215d02a9ef07551be25a37","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/gfs2/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.3","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/gfs2/super.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/08a28272faa750d4357ea2cb48d2baefd778ea81"},{"url":"https://git.kernel.org/stable/c/bdcb8aa434c6d36b5c215d02a9ef07551be25a37"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached via local mount/umount and quotactl on a GFS2 block device (loop or disk) with lock_nolock; it is not reachable from the network stack or remote protocols.\nAC:L - A local attacker who can mount a GFS2 image read-only, create quota_data via quotactl, and unmount reliably hits the missing gfs2_quota_cleanup path; a public C repro exists and no uncontrolled race is required.\nPR:L - Triggering requires only the ability to mount/unmount a local GFS2 filesystem and issue quotactl (own-uid Q_GETQUOTA needs no CAP_SYS_ADMIN); consistent with other local GFS2 CVEs scored PR:L, choosing the higher-severity option over PR:H.\nUI:N - The attacker performs mount, quotactl, and umount themselves; no separate victim action is required.\nS:U - Impact is confined to the local kernel authority (memory corruption / privilege escalation within the host); this is not a VM, IOMMU, or sandbox boundary escape.\nC:H - This is a slab use-after-free write against the freed gfs2_sbd object from an RCU callback, which can be leveraged to corrupt adjacent heap objects and obtain arbitrary read primitives.\nI:H - The UAF write (atomic_dec_and_test on freed sdp->sd_quota_count, plus wake_up) enables heap corruption and control-flow hijacking primitives typical of kernel slab UAFs.\nA:H - The use-after-free reliably causes KASAN-detectable corruption and can oops/panic the kernel during unmount softirq RCU processing."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:11:15.944Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52760","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-22T18:26:22.936431Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:24:04.103Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/7ad4e0a4f61c57c3ca291ee010a9d677d0199fba","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/08a28272faa750d4357ea2cb48d2baefd778ea81","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/bdcb8aa434c6d36b5c215d02a9ef07551be25a37","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:50:24.860Z"}}]}}}