Use-after-free in Linux kernel - CVE-2022-49168

 

Use-after-free in Linux kernel - CVE-2022-49168

Published: February 26, 2025 / Updated: May 11, 2025


Vulnerability identifier: #VU104494
CSH Severity: Low
CVSS v4 BT: 5.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear]
CVE-ID: CVE-2022-49168
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a use-after-free error within the btrfs_repair_one_sector() function in fs/btrfs/extent_io.c. A local user can escalate privileges on the system.


Affected software

Linux kernel
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Live Patching
Ubuntu
kgraft-patch-4_12_14-122_261-default
kernel-source
dlm-kmp-default-debuginfo
kernel-default-kgraft-devel
kernel-default-kgraft
kernel-default-devel-debuginfo
kernel-default-man
kernel-devel
kernel-macros
kernel-default
cluster-md-kmp-default-debuginfo
kernel-default-base-debuginfo
kernel-default-debuginfo
ocfs2-kmp-default-debuginfo
dlm-kmp-default
kernel-default-base
kernel-default-debugsource
cluster-md-kmp-default
kernel-syms
ocfs2-kmp-default
gfs2-kmp-default
gfs2-kmp-default-debuginfo
kernel-default-devel
linux-aws-fips (Ubuntu package)
linux (Ubuntu package)
linux-xilinx-zynqmp (Ubuntu package)
linux-intel-iot-realtime (Ubuntu package)
linux-raspi (Ubuntu package)
linux-intel-iotg-5.15 (Ubuntu package)
linux-kvm (Ubuntu package)
linux-azure-fips (Ubuntu package)
linux-azure (Ubuntu package)
linux-azure-5.15 (Ubuntu package)

How to mitigate CVE-2022-49168

Install update from vendor's website.

Linux kernel - update to 5.16.19
kgraft-patch-4_12_14-122_261-default - update to 1-8.3.1
kernel-source - update to 4.12.14-122.261.1
dlm-kmp-default-debuginfo - update to 4.12.14-122.261.1
kernel-default-kgraft-devel - update to 4.12.14-122.261.1
kernel-default-kgraft - update to 4.12.14-122.261.1
kernel-default-devel-debuginfo - update to 4.12.14-122.261.1
kernel-default-man - update to 4.12.14-122.261.1
kernel-devel - update to 4.12.14-122.261.1
kernel-macros - update to 4.12.14-122.261.1
kernel-default - update to 4.12.14-122.261.1
cluster-md-kmp-default-debuginfo - update to 4.12.14-122.261.1
kernel-default-base-debuginfo - update to 4.12.14-122.261.1
kernel-default-debuginfo - update to 4.12.14-122.261.1
ocfs2-kmp-default-debuginfo - update to 4.12.14-122.261.1
dlm-kmp-default - update to 4.12.14-122.261.1
kernel-default-base - update to 4.12.14-122.261.1
kernel-default-debugsource - update to 4.12.14-122.261.1
cluster-md-kmp-default - update to 4.12.14-122.261.1
kernel-syms - update to 4.12.14-122.261.1
ocfs2-kmp-default - update to 4.12.14-122.261.1
gfs2-kmp-default - update to 4.12.14-122.261.1
gfs2-kmp-default-debuginfo - update to 4.12.14-122.261.1
kernel-default-devel - update to 4.12.14-122.261.1
linux-aws-fips (Ubuntu package) - addressed in versions 5.15.0.144.84, 5.15.0-144.157+fips1, 5.15.0.1087.77, 5.15.0-1087.96+fips1, 5.15.0.1088.84, 5.15.0-1088.95+fips1
linux (Ubuntu package) - addressed in versions 5.15.0.144.130, 5.15.0.144.141, 5.15.0-144.157, 5.15.0.144.157~20.04.1, 5.15.0-144.157~20.04.1, 5.15.0-1030.30, 5.15.0.1030.32, 5.15.0-1041.41, 5.15.0.1041.41, 5.15.0.1041.41~20.04.1, 5.15.0-1041.41~20.04.1, 5.15.0.1070.69, 5.15.0-1070.78, 5.15.0.1080.76, 5.15.0-1080.83, 5.15.0.1080.83~20.04.1, 5.15.0-1080.83~20.04.1, 5.15.0.1082.82, 5.15.0-1082.83, 5.15.0.1083.83, 5.15.0-1083.89, 5.15.0.1085.81, 5.15.0.1085.84, 5.15.0-1085.91, 5.15.0-1085.91~20.04.3, 5.15.0.1085.91~20.04.3, 5.15.0.1087.83, 5.15.0-1087.96, 5.15.0.1087.96~20.04.1, 5.15.0-1087.96~20.04.2, 5.15.0.1088.91, 5.15.0-1088.95, 5.15.0.1088.95~20.04.1, 5.15.0-1088.95~20.04.1
linux-xilinx-zynqmp (Ubuntu package) - addressed in versions 5.15.0.1052.55, 5.15.0-1052.56
linux-intel-iot-realtime (Ubuntu package) - addressed in versions 5.15.0-1081.83, 5.15.0.1081.85, 5.15.0.1088.92, 5.15.0-1088.97
linux-raspi (Ubuntu package) - addressed in versions 5.15.0.1083.81, 5.15.0-1083.86
linux-intel-iotg-5.15 (Ubuntu package) - addressed in versions 5.15.0.1083.89~20.04.1, 5.15.0-1083.89~20.04.1
linux-kvm (Ubuntu package) - addressed in versions 5.15.0.1084.80, 5.15.0-1084.89
linux-azure-fips (Ubuntu package) - addressed in versions 5.15.0.1094.79, 5.15.0-1094.103+fips1
linux-azure (Ubuntu package) - addressed in versions 5.15.0.1094.92, 5.15.0-1094.103
linux-azure-5.15 (Ubuntu package) - addressed in versions 5.15.0-1094.103~20.04.1, 5.15.0.1094.103~20.04.1

External References

Related Security Bulletins