{"id":"CVE-2022-50839","aliases":["CVE-2022-50839"],"related":[],"kind":"vulnerability","state":"published","title":"jbd2: fix potential buffer head reference count leak","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: fix potential buffer head reference count leak\n\nAs in 'jbd2_fc_wait_bufs' if buffer isn't uptodate, will return -EIO without\nupdate 'journal->j_fc_off'. But 'jbd2_fc_release_bufs' will release buffer head\nfrom ‘j_fc_off - 1’ if 'bh' is NULL will terminal release which will lead to\nbuffer head buffer head reference count leak.\nTo solve above issue, update 'journal->j_fc_off' before return -EIO.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\njbd2: fix potential buffer head reference count leak\n\nAs in 'jbd2_fc_wait_bufs' if buffer isn't uptodate, will return -EIO without\nupdate 'journal->j_fc_off'. But 'jbd2_fc_release_bufs' will release buffer head\nfrom ‘j_fc_off - 1’ if 'bh' is NULL will terminal release which will lead to\nbuffer head buffer head reference count leak.\nTo solve above issue, update 'journal->j_fc_off' before return -EIO.","source":"cvelist"}],"published":"2025-12-30T12:10:58.406Z","modified":"2026-06-17T05:24:16.547Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ff780b91efe901b8eecd8114785abae5341820ad","fixed":"7a33dde572fceb45d02d188e0213c47059401c93","status":"affected"},{"type":"git","introduced":"ff780b91efe901b8eecd8114785abae5341820ad","fixed":"e7385c868ee038d6a0cb0e85c22d2741e7910fd5","status":"affected"},{"type":"git","introduced":"ff780b91efe901b8eecd8114785abae5341820ad","fixed":"68ed9c76b2affd47177b92495446abb7262d0ef7","status":"affected"},{"type":"git","introduced":"ff780b91efe901b8eecd8114785abae5341820ad","fixed":"9b073d73725366d886b711b74e058c02f51e7a0e","status":"affected"},{"type":"git","introduced":"ff780b91efe901b8eecd8114785abae5341820ad","fixed":"e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.150","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.75","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7a33dde572fceb45d02d188e0213c47059401c93","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7385c868ee038d6a0cb0e85c22d2741e7910fd5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/68ed9c76b2affd47177b92495446abb7262d0ef7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b073d73725366d886b711b74e058c02f51e7a0e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50839","url":"https://www.cve.org/CVERecord?id=CVE-2022-50839","licence":"CVE Terms of Use","modified":"2026-05-11T19:26:06.678Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50839","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50839","licence":"Public domain","modified":"2026-06-17T05:24:16.547Z"}],"updatedAt":"2026-11-25T22:58:21.375Z","epss":{"score":0.00263,"percentile":0.19335,"date":"2026-12-01T12:00:22.000Z"}}