{"id":"CVE-2022-50839","summary":"jbd2: fix potential buffer head reference count leak","details":"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-\u003ej_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-\u003ej_fc_off' before return -EIO.","modified":"2026-04-02T08:28:47.335965Z","published":"2025-12-30T12:10:58.406Z","related":["SUSE-SU-2026:0263-1","SUSE-SU-2026:0317-1","SUSE-SU-2026:0411-1","SUSE-SU-2026:0617-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50839.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/68ed9c76b2affd47177b92495446abb7262d0ef7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a33dde572fceb45d02d188e0213c47059401c93"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b073d73725366d886b711b74e058c02f51e7a0e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e7385c868ee038d6a0cb0e85c22d2741e7910fd5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50839.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50839"},{"type":"PACKAGE","url":"https://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/cve-osv-conversion/osv-output/CVE-2022-50839.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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/cve-osv-conversion/osv-output/CVE-2022-50839.json"}}],"schema_version":"1.7.5"}