Cyber Posture

CVE-2022-49053

High

Published: 26 February 2025

Published
26 February 2025
Modified
24 March 2025
KEV Added
Patch
CVSS Score 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0001 1.6th percentile
Risk Priority 16 60% EPSS · 20% KEV · 20% CVSS

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().

Security Summary

CVE-2022-49053 is a use-after-free (UAF) vulnerability in the Linux kernel's SCSI target tcmu (target core multi-user) component. The issue arises in the tcmu_try_get_data_page() function, which looks up pages under cmdr_lock but fails to properly increment the page refcount before returning the page pointer. As a result, the page may be concurrently freed by tcmu_blocks_release() after the function returns, leading to a potential UAF condition. This flaw is classified under CWE-416 and carries a CVSS v3.1 base score of 7.8.

A local attacker with low privileges can exploit this vulnerability due to its low attack complexity, local access vector, and lack of required user interaction. Successful exploitation could result in high impacts on confidentiality, integrity, and availability, potentially allowing arbitrary code execution, data corruption, or system crashes within the kernel context.

Mitigation involves applying the relevant stable kernel patches, as detailed in the provided commit references. These patches resolve the issue by ensuring get_page() is called under cmdr_lock to properly handle refcounts and prevent concurrent freeing by tcmu_blocks_release(). Systems running affected Linux kernel versions with tcmu enabled should update to a patched kernel.

Details

CWE(s)
CWE-416

Affected Products

linux
linux kernel
5.18 · ≤ 4.14.276 · 4.15 — 4.19.239 · 4.20 — 5.4.190

References