# CVE-2022-50839: jbd2: fix potential buffer head reference count leak

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-29)
- **Published:** 2025-12-30T12:10:58.406Z
- **Modified:** 2026-06-17T05:24:16.547Z

## Who should check

- Anyone running Linux \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 7a33dde572fceb45d02d188e0213c47059401c93; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< e7385c868ee038d6a0cb0e85c22d2741e7910fd5; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 68ed9c76b2affd47177b92495446abb7262d0ef7; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 9b073d73725366d886b711b74e058c02f51e7a0e; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a
- Anyone running Linux 5.10

## Description

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

jbd2: fix potential buffer head reference count leak

As in 'jbd2\_fc\_wait\_bufs' if buffer isn't uptodate, will return -EIO without
update 'journal-\>j\_fc\_off'. But 'jbd2\_fc\_release\_bufs' will release buffer head
from ‘j\_fc\_off - 1’ if 'bh' is NULL will terminal release which will lead to
buffer head buffer head reference count leak.
To solve above issue, update 'journal-\>j\_fc\_off' before return -EIO.

## Affected and fixed versions

- Linux: \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 7a33dde572fceb45d02d188e0213c47059401c93; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< e7385c868ee038d6a0cb0e85c22d2741e7910fd5; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 68ed9c76b2affd47177b92495446abb7262d0ef7; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 9b073d73725366d886b711b74e058c02f51e7a0e; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50839.md
Affected: Linux >= ff780b91efe901b8eecd8114785abae5341820ad, < 7a33dde572fceb45d02d188e0213c47059401c93; >= ff780b91efe901b8eecd8114785abae5341820ad, < e7385c868ee038d6a0cb0e85c22d2741e7910fd5; >= ff780b91efe901b8eecd8114785abae5341820ad, < 68ed9c76b2affd47177b92495446abb7262d0ef7; >= ff780b91efe901b8eecd811…
Fixed in: Linux 7a33dde572fceb45d02d188e0213c47059401c93, Linux 68ed9c76b2affd47177b92495446abb7262d0ef7, Linux 9b073d73725366d886b711b74e058c02f51e7a0e

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-50839 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 7a33dde572fceb45d02d188e0213c47059401c93; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< e7385c868ee038d6a0cb0e85c22d2741e7910fd5; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 68ed9c76b2affd47177b92495446abb7262d0ef7; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< 9b073d73725366d886b711b74e058c02f51e7a0e; \>= ff780b91efe901b8eecd8114785abae5341820ad, \< e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a; Linux 5.10.

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

Yes. Fixed in Linux 7a33dde572fceb45d02d188e0213c47059401c93, Linux 68ed9c76b2affd47177b92495446abb7262d0ef7, Linux 9b073d73725366d886b711b74e058c02f51e7a0e. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/7a33dde572fceb45d02d188e0213c47059401c93>
- other: <https://git.kernel.org/stable/c/e7385c868ee038d6a0cb0e85c22d2741e7910fd5>
- other: <https://git.kernel.org/stable/c/68ed9c76b2affd47177b92495446abb7262d0ef7>
- other: <https://git.kernel.org/stable/c/9b073d73725366d886b711b74e058c02f51e7a0e>
- other: <https://git.kernel.org/stable/c/e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a>

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

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