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

- Severity: not scored yet
- 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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-12-30T12:10:58.406Z
- Modified: 2026-06-17T05:24:16.547Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from ff780b91efe901b8eecd8114785abae5341820ad before 7a33dde572fceb45d02d188e0213c47059401c93; from ff780b91efe901b8eecd8114785abae5341820ad before e7385c868ee038d6a0cb0e85c22d2741e7910fd5; from ff780b91efe901b8eecd8114785abae5341820ad before 68ed9c76b2affd47177b92495446abb7262d0ef7; from ff780b91efe901b8eecd8114785abae5341820ad before 9b073d73725366d886b711b74e058c02f51e7a0e; from ff780b91efe901b8eecd8114785abae5341820ad before e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a; 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 *)

## References

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

## Sources

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

---

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