CVE-2022-50835: jbd2: add miss release buffer head in fc_do_one_pass()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
jbd2: add miss release buffer head in fc_do_one_pass()
In fc_do_one_pass() miss release buffer head after use which will lead to reference count leak.
The Linux kernel CVE team has assigned CVE-2022-50835 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.150 with commit e65506ff181fc176088f32117d69b9cb1ddda777 Fixed in 5.15.75 with commit 56fcd0788f0d9243c1754bd6f80b8b327c4afeee Fixed in 5.19.17 with commit 27c7bd35135d5ab38b9138ecf186ce54a96c98d9 Fixed in 6.0.3 with commit 1f48116cbd3404898c9022892e114dd7cc3063c1 Fixed in 6.1 with commit dfff66f30f66b9524b661f311bbed8ff3d2ca49f
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-50835
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/recovery.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/e65506ff181fc176088f32117d69b9cb1ddda777 https://git.kernel.org/stable/c/56fcd0788f0d9243c1754bd6f80b8b327c4afeee https://git.kernel.org/stable/c/27c7bd35135d5ab38b9138ecf186ce54a96c98d9 https://git.kernel.org/stable/c/1f48116cbd3404898c9022892e114dd7cc3063c1 https://git.kernel.org/stable/c/dfff66f30f66b9524b661f311bbed8ff3d2ca49f