# CVE-2022-50328: jbd2: fix potential use-after-free in jbd2_fc_wait_bufs

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-09-15T14:49:30.483Z
- Modified: 2026-10-15T22:17:30.110Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

jbd2: fix potential use-after-free in jbd2_fc_wait_bufs

In 'jbd2_fc_wait_bufs' use 'bh' after put buffer head reference count
which may lead to use-after-free.
So judge buffer if uptodate before put buffer head reference count.

(As written by CVE List.)

## Affected

- Linux Linux: from ff780b91efe901b8eecd8114785abae5341820ad before 1d4d16daec2a6689b6d3fbfc7d2078643adc6619; from ff780b91efe901b8eecd8114785abae5341820ad before d11d2ded293976a1a0d9d9471827a44dc9e3c63f; from ff780b91efe901b8eecd8114785abae5341820ad before 2e6d9f381c1ed844531a577783fc352de7a44c8a; from ff780b91efe901b8eecd8114785abae5341820ad before effd9b3c029ecdd853a11933dcf857f5a7ca8c3d; from ff780b91efe901b8eecd8114785abae5341820ad before 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd; 5.10 (not affected: before 5.10; from 5.10.150 up to 5.10.*; from 5.15.75 up to 5.15.*; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: before 5.10.150; from 5.11 before 5.15.75; from 5.16 before 5.19.17; from 6.0 before 6.0.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/1d4d16daec2a6689b6d3fbfc7d2078643adc6619> (patch)
- <https://git.kernel.org/stable/c/d11d2ded293976a1a0d9d9471827a44dc9e3c63f> (patch)
- <https://git.kernel.org/stable/c/2e6d9f381c1ed844531a577783fc352de7a44c8a> (patch)
- <https://git.kernel.org/stable/c/effd9b3c029ecdd853a11933dcf857f5a7ca8c3d> (patch)
- <https://git.kernel.org/stable/c/243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd> (patch)

## Sources

- CVE List: [CVE-2022-50328](https://www.cve.org/CVERecord?id=CVE-2022-50328), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2022-50328](https://nvd.nist.gov/vuln/detail/CVE-2022-50328), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2022-50328 · Whole record: https://cve.day/CVE-2022-50328.json · Rebuilt by cve.day 2026-11-25T22:58:21.166Z
