| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2022-49053: scsi: target: tcmu: Fix possible page UAF |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| scsi: target: tcmu: Fix possible page UAF |
| |
| tcmu_try_get_data_page() looks up pages under cmdr_lock, but it does not |
| take refcount properly and just returns page pointer. When |
| tcmu_try_get_data_page() returns, the returned page may have been freed by |
| tcmu_blocks_release(). |
| |
| We need to get_page() under cmdr_lock to avoid concurrent |
| tcmu_blocks_release(). |
| |
| The Linux kernel CVE team has assigned CVE-2022-49053 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 4.12 with commit 141685a39151aea95eb56562d2953e919c6c73da and fixed in 4.14.276 with commit d7c5d79e50be6e06b669141e3db1f977a0dd4e8e |
| Issue introduced in 4.12 with commit 141685a39151aea95eb56562d2953e919c6c73da and fixed in 4.19.239 with commit e3e0e067d5b34e4a68e3cc55f8eebc413f56f8ed |
| Issue introduced in 4.12 with commit 141685a39151aea95eb56562d2953e919c6c73da and fixed in 5.4.190 with commit fb7a5115422fbd6a4d505e8844f1ef5529f10489 |
| Issue introduced in 4.12 with commit 141685a39151aea95eb56562d2953e919c6c73da and fixed in 5.10.112 with commit aec36b98a1bbaa84bfd8299a306e4c12314af626 |
| Issue introduced in 4.12 with commit 141685a39151aea95eb56562d2953e919c6c73da and fixed in 5.15.35 with commit b7f3b5d70c834f49f7d87a2f2ed1c6284d9a0322 |
| Issue introduced in 4.12 with commit 141685a39151aea95eb56562d2953e919c6c73da and fixed in 5.17.4 with commit a9564d84ed9f6ee71017d062d0d2182154294a4b |
| Issue introduced in 4.12 with commit 141685a39151aea95eb56562d2953e919c6c73da and fixed in 5.18 with commit a6968f7a367f128d120447360734344d5a3d5336 |
| |
| 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-49053 |
| 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: |
| drivers/target/target_core_user.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/d7c5d79e50be6e06b669141e3db1f977a0dd4e8e |
| https://git.kernel.org/stable/c/e3e0e067d5b34e4a68e3cc55f8eebc413f56f8ed |
| https://git.kernel.org/stable/c/fb7a5115422fbd6a4d505e8844f1ef5529f10489 |
| https://git.kernel.org/stable/c/aec36b98a1bbaa84bfd8299a306e4c12314af626 |
| https://git.kernel.org/stable/c/b7f3b5d70c834f49f7d87a2f2ed1c6284d9a0322 |
| https://git.kernel.org/stable/c/a9564d84ed9f6ee71017d062d0d2182154294a4b |
| https://git.kernel.org/stable/c/a6968f7a367f128d120447360734344d5a3d5336 |