CVE-2022-50839

Source
https://cve.org/CVERecord?id=CVE-2022-50839
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50839.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50839
Downstream
Related
Published
2025-12-30T12:10:58.406Z
Modified
2026-03-20T11:47:38.804135Z
Summary
jbd2: fix potential buffer head reference count leak
Details

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

jbd2: fix potential buffer head reference count leak

As in 'jbd2fcwaitbufs' if buffer isn't uptodate, will return -EIO without update 'journal->jfcoff'. But 'jbd2fcreleasebufs' will release buffer head from ‘jfcoff - 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->jfcoff' before return -EIO.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50839.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ff780b91efe901b8eecd8114785abae5341820ad
Fixed
7a33dde572fceb45d02d188e0213c47059401c93
Fixed
e7385c868ee038d6a0cb0e85c22d2741e7910fd5
Fixed
68ed9c76b2affd47177b92495446abb7262d0ef7
Fixed
9b073d73725366d886b711b74e058c02f51e7a0e
Fixed
e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50839.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.10.0
Fixed
5.10.150
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.75
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50839.json"