# CVE-2022-50328: jbd2: fix potential use-after-free in jbd2\_fc\_wait\_bufs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-15T14:49:30.483Z
- **Modified:** 2026-10-15T22:17:30.110Z

## Who should check

- Anyone running Linux \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 1d4d16daec2a6689b6d3fbfc7d2078643adc6619; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< d11d2ded293976a1a0d9d9471827a44dc9e3c63f; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 2e6d9f381c1ed844531a577783fc352de7a44c8a; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< effd9b3c029ecdd853a11933dcf857f5a7ca8c3d; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd
- Anyone running Linux 5.10

## 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.

## Affected and fixed versions

- Linux: \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 1d4d16daec2a6689b6d3fbfc7d2078643adc6619; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< d11d2ded293976a1a0d9d9471827a44dc9e3c63f; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 2e6d9f381c1ed844531a577783fc352de7a44c8a; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< effd9b3c029ecdd853a11933dcf857f5a7ca8c3d; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- Upgrade Linux to 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50328. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50328.md
Affected: Linux >= ff780b91efe901b8eecd8114785abae5341820ad, < 1d4d16daec2a6689b6d3fbfc7d2078643adc6619; >= ff780b91efe901b8eecd8114785abae5341820ad, < d11d2ded293976a1a0d9d9471827a44dc9e3c63f; >= ff780b91efe901b8eecd8114785abae5341820ad, < 2e6d9f381c1ed844531a577783fc352de7a44c8a; >= ff780b91efe901b8eecd811…
Fixed in: Linux 1d4d16daec2a6689b6d3fbfc7d2078643adc6619, Linux 2e6d9f381c1ed844531a577783fc352de7a44c8a, Linux 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50328 being exploited?

There is no confirmed exploitation: CVE-2022-50328 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50328?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50328?

Linux \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 1d4d16daec2a6689b6d3fbfc7d2078643adc6619; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< d11d2ded293976a1a0d9d9471827a44dc9e3c63f; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 2e6d9f381c1ed844531a577783fc352de7a44c8a; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< effd9b3c029ecdd853a11933dcf857f5a7ca8c3d; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd; Linux 5.10.

### Is there a fix for CVE-2022-50328?

Yes. Fixed in Linux 1d4d16daec2a6689b6d3fbfc7d2078643adc6619, Linux 2e6d9f381c1ed844531a577783fc352de7a44c8a, Linux 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd. Upgrade Linux to 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd or later.

### How do I check if I'm affected by CVE-2022-50328?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50328>

HTML: <https://flawdb.com/CVE-2022-50328> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50328>
