Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CB3A2D5957 for ; Tue, 30 Dec 2025 12:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096841; cv=none; b=sMGugsbVZtM65tCW3TjsDVVHD9EqEeXwJIkmQO9pJ8yddN8beDvtj7AWcmuWiBVjjFSrBhxdhXc9Rq9oB5V77zZiPSICHILc/eVAnuCe49S1GKSt/MkvnH2p6dZvJdfyxIk/gv2O5W/Fbkmwayikd7+yJVFPkqMlrW3nXIMgk40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096841; c=relaxed/simple; bh=lTHDLfrxfFMbipuISTfqWi8a3juWTABK1B9/RII8Iz0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=V+aV26MIayWbVOFpishcRHhmtJneGFJR0rYHVo101T8TeAgLEie+POIsXd0x6s7LThpSFl242Rek+TP4ClsLH2CeTgXrPIf396gCHU9GYm/s/zLTk75CNsd9koJVeja8iyKGNlskiPK2kJxvr60Re9EbSeNJ89FqvZdH6/M7vRQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Eii+yWRF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Eii+yWRF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB3AEC4CEFB; Tue, 30 Dec 2025 12:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096841; bh=lTHDLfrxfFMbipuISTfqWi8a3juWTABK1B9/RII8Iz0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Eii+yWRFHfxDFFtdpNtnQX6u43qFDh0KXr1pC9gP0YQA71cSsaatWgNdGfDPZAl2s QRV3ZQHd9tvnEIJSzMFSELIyRu0l+bDvaAKPNo/g3xZyhu9r5pnMDItaiatjsR39ce ZQFBJbzMJ98nEe65oXdUkarZwC7sXd85hxRZoPyE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50839: jbd2: fix potential buffer head reference count leak Date: Tue, 30 Dec 2025 13:13:25 +0100 Message-ID: <2025123019-CVE-2022-50839-eca8@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2385; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q47WYd9pm6kJmZtFhTnctX+ndHcEryos9lSo8P/u3qM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB++vZ3cOVu986vRJ9/8Bc8Yn9gkPjZ2rhQSmLrlww 8ll5txHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRxAMMC/ZuWvLveeiOojN5 x/gCK2KvtPk9n8uwYKXZ3yARKa1nP6/2swT9DLzQ3bzjKQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2022-50839 to this issue. Affected and fixed versions =========================== Fixed in 5.10.150 with commit 7a33dde572fceb45d02d188e0213c47059401c93 Fixed in 5.15.75 with commit e7385c868ee038d6a0cb0e85c22d2741e7910fd5 Fixed in 5.19.17 with commit 68ed9c76b2affd47177b92495446abb7262d0ef7 Fixed in 6.0.3 with commit 9b073d73725366d886b711b74e058c02f51e7a0e Fixed in 6.1 with commit e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50839 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/jbd2/journal.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/7a33dde572fceb45d02d188e0213c47059401c93 https://git.kernel.org/stable/c/e7385c868ee038d6a0cb0e85c22d2741e7910fd5 https://git.kernel.org/stable/c/68ed9c76b2affd47177b92495446abb7262d0ef7 https://git.kernel.org/stable/c/9b073d73725366d886b711b74e058c02f51e7a0e https://git.kernel.org/stable/c/e0d5fc7a6d80ac2406c7dfc6bb625201d0250a8a