CVE-2022-50839

jbd2: fix potential buffer head reference count leak

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
May 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • ff780b91efe901b8eecd8114785abae5341820ad to before 7a33dde572fceb45d02d188e0213c47059401c93Affected
  • ff780b91efe901b8eecd8114785abae5341820ad to before e7385c868ee038d6a0cb0e85c22d2741e7910fd5Affected
  • ff780b91efe901b8eecd8114785abae5341820ad to before 68ed9c76b2affd47177b92495446abb7262d0ef7Affected
  • ff780b91efe901b8eecd8114785abae5341820ad to before 9b073d73725366d886b711b74e058c02f51e7a0eAffected
  • ff780b91efe901b8eecd8114785abae5341820ad to before e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8aAffected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.150 through 5.10.*Not affected
  • 5.15.75 through 5.15.*Not affected
  • 5.19.17 through 5.19.*Not affected
  • 6.0.3 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.