{"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-05-15T04:06:05.264521100Z","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":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50839.json"},"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":[{"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/osv-test-cve-osv-conversion/osv-output/CVE-2022-50839.json"}}],"schema_version":"1.7.5"}