{"id":"CVE-2022-50328","state":"PUBLISHED","title":"jbd2: fix potential use-after-free in jbd2_fc_wait_bufs","description":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: fix potential use-after-free in jbd2_fc_wait_bufs\n\nIn 'jbd2_fc_wait_bufs' use 'bh' after put buffer head reference count\nwhich may lead to use-after-free.\nSo judge buffer if uptodate before put buffer head reference count.","publishedAt":"2025-09-15T14:49:30.483Z","updatedAt":"2026-10-15T21:31:20.094Z","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":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"1d4d16daec2a6689b6d3fbfc7d2078643adc6619","versionType":"git"},{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"d11d2ded293976a1a0d9d9471827a44dc9e3c63f","versionType":"git"},{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"2e6d9f381c1ed844531a577783fc352de7a44c8a","versionType":"git"},{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"effd9b3c029ecdd853a11933dcf857f5a7ca8c3d","versionType":"git"},{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jbd2/journal.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.150","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.75","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.17","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jbd2/journal.c"]}],"references":["https://git.kernel.org/stable/c/1d4d16daec2a6689b6d3fbfc7d2078643adc6619","https://git.kernel.org/stable/c/d11d2ded293976a1a0d9d9471827a44dc9e3c63f","https://git.kernel.org/stable/c/2e6d9f381c1ed844531a577783fc352de7a44c8a","https://git.kernel.org/stable/c/effd9b3c029ecdd853a11933dcf857f5a7ca8c3d","https://git.kernel.org/stable/c/243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50328.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50328","state":"PUBLISHED","datePublished":"2025-09-15T14:49:30.483Z","dateUpdated":"2026-10-15T21:31:20.094Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-15T14:18:36.815Z"},"containers":{"cna":{"title":"jbd2: fix potential use-after-free in jbd2_fc_wait_bufs","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: fix potential use-after-free in jbd2_fc_wait_bufs\n\nIn 'jbd2_fc_wait_bufs' use 'bh' after put buffer head reference count\nwhich may lead to use-after-free.\nSo judge buffer if uptodate before put buffer head reference count."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"1d4d16daec2a6689b6d3fbfc7d2078643adc6619","versionType":"git"},{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"d11d2ded293976a1a0d9d9471827a44dc9e3c63f","versionType":"git"},{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"2e6d9f381c1ed844531a577783fc352de7a44c8a","versionType":"git"},{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"effd9b3c029ecdd853a11933dcf857f5a7ca8c3d","versionType":"git"},{"version":"ff780b91efe901b8eecd8114785abae5341820ad","status":"affected","lessThan":"243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jbd2/journal.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.10.150","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.75","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.19.17","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jbd2/journal.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1d4d16daec2a6689b6d3fbfc7d2078643adc6619"},{"url":"https://git.kernel.org/stable/c/d11d2ded293976a1a0d9d9471827a44dc9e3c63f"},{"url":"https://git.kernel.org/stable/c/2e6d9f381c1ed844531a577783fc352de7a44c8a"},{"url":"https://git.kernel.org/stable/c/effd9b3c029ecdd853a11933dcf857f5a7ca8c3d"},{"url":"https://git.kernel.org/stable/c/243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd"}],"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 in jbd2_fc_wait_bufs on the ext4 fast-commit path, reached via local syscalls such as fsync/fdatasync/fallocate(O_SYNC) on an ext4 filesystem; it does not process network packets or remote protocol data.\nAC:L - An unprivileged attacker can reliably drive the vulnerable path by dirtying and fsyncing files on a fast-commit-enabled ext4 mount, and can apply memory pressure so the buffer_head dropped by put_bh is reclaimed before buffer_uptodate; both sides of the race are attacker-influenced.\nPR:L - Any unprivileged local user with write access to a regular file on a mounted ext4 filesystem with the fast_commit feature can trigger ext4_fc_commit → jbd2_fc_wait_bufs; no capabilities or root are required.\nUI:N - Exploitation uses only the attacker's own file writes and fsync; no separate victim action such as mounting a volume or opening a crafted file is required.\nS:U - This is a standard in-kernel heap use-after-free that can escalate privileges within the same kernel authority, not a VM escape, IOMMU bypass, or other cross-boundary impact.\nC:H - Use-after-free of the buffer_head after put_bh lets an attacker reclaim and control the freed object, enabling arbitrary kernel memory disclosure primitives per UAF exploitation.\nI:H - UAF of the buffer_head enables heap spraying and write primitives for control-flow hijacking, and a corrupted buffer_uptodate result can also cause failed journal IO to be treated as success.\nA:H - Accessing the freed buffer_head can oops/panic the kernel even without full exploitation, so availability impact is high."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:58:12.098Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.10.150"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.15.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.19.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.0.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-50328","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:30:57.434456Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:31:20.094Z"}}]}}}