Skip to content
OpenAdvisories
High · 7.1 CVE-2022-49395 EUVD-2022-54834GHSA-pxwr-cc58-gq3m

um: Fix out-of-bounds read in LDT setup

Published Feb 26, 2025 · Updated May 11, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-azure-fips Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.4 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lts-xenial Package: linux-nvidia Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.5 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-oracle-6.5 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.5 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

In the Linux kernel, the following vulnerability has been resolved:

um: Fix out-of-bounds read in LDT setup

syscall_stub_data() expects the data_count parameter to be the number of
longs, not bytes.

==================================================================
BUG: KASAN: stack-out-of-bounds in syscall_stub_data+0x70/0xe0
Read of size 128 at addr 000000006411f6f0 by task swapper/1

CPU: 0 PID: 1 Comm: swapper Not tainted 5.18.0+ #18
Call Trace:
show_stack.cold+0x166/0x2a7
__dump_stack+0x3a/0x43
dump_stack_lvl+0x1f/0x27
print_report.cold+0xdb/0xf81
kasan_report+0x119/0x1f0
kasan_check_range+0x3a3/0x440
memcpy+0x52/0x140
syscall_stub_data+0x70/0xe0
write_ldt_entry+0xac/0x190
init_new_ldt+0x515/0x960
init_new_context+0x2c4/0x4d0
mm_init.constprop.0+0x5ed/0x760
mm_alloc+0x118/0x170
0x60033f48
do_one_initcall+0x1d7/0x860
0x60003e7b
kernel_init+0x6e/0x3d4
new_thread_handler+0x1e7/0x2c0

The buggy address belongs to stack of task swapper/1
and is located at offset 64 in frame:
init_new_ldt+0x0/0x960

This frame has 2 objects:
[32, 40) 'addr'
[64, 80) 'desc'
==================================================================

Affected products

VendorProductAffectedFixed
Linux Linux 2.6.15 4.9.318

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.18.5-1 —
Debian 13 linux 5.18.5-1 —
Debian 12 linux 5.18.5-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux 5.15.0-47.51 —
Ubuntu 22.04 LTS linux-aws 5.15.0-1019.23 —
Ubuntu 22.04 LTS linux-azure 5.15.0-1019.24 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1017.23 —
Ubuntu 22.04 LTS linux-gke 5.15.0-1015.18 —
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1002.4 —
Ubuntu 22.04 LTS linux-ibm 5.15.0-1013.15 —
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1015.20 —
Ubuntu 22.04 LTS linux-kvm 5.15.0-1017.21 —
Ubuntu 22.04 LTS linux-lowlatency 5.15.0-47.53 —
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1007.7 —
Ubuntu 22.04 LTS linux-oracle 5.15.0-1017.22 —
Ubuntu 22.04 LTS linux-raspi 5.15.0-1014.16 —
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 20.04 LTS linux 5.4.0-126.142 —
Ubuntu 20.04 LTS linux-aws 5.4.0-1085.92 —
Ubuntu 20.04 LTS linux-aws-5.15 5.15.0-1019.23~20.04.1 —
Ubuntu 20.04 LTS linux-azure 5.4.0-1091.96 —
Ubuntu 20.04 LTS linux-azure-5.15 5.15.0-1019.24~20.04.1 —
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1046.51 —
Ubuntu 20.04 LTS linux-gcp 5.4.0-1089.97 —
Ubuntu 20.04 LTS linux-gcp-5.15 5.15.0-1017.23~20.04.2 —
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 20.04 LTS linux-hwe-5.15 +1 5.15.0-48.54~20.04.1 —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1033.37 —
Ubuntu 20.04 LTS linux-intel-iotg-5.15 5.15.0-1015.20~20.04.2 —
Ubuntu 20.04 LTS linux-iot 5.4.0-1004.6 —
Ubuntu 20.04 LTS linux-kvm 5.4.0-1075.80 —
Ubuntu 20.04 LTS linux-oracle 5.4.0-1083.91 —
Ubuntu 20.04 LTS linux-oracle-5.15 5.15.0-1017.22~20.04.1 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1070.80 —
Ubuntu 20.04 LTS linux-riscv-5.15 5.15.0-1018.21~20.04.1 —
Ubuntu 18.04 LTS linux 4.15.0-192.203 —
Ubuntu 18.04 LTS linux-aws 4.15.0-1140.151 —
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1085.92~18.04.1 —
Ubuntu 18.04 LTS linux-azure-4.15 4.15.0-1150.165 —
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1091.96~18.04.1 —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 18.04 LTS linux-gcp-4.15 4.15.0-1135.151 —
Ubuntu 18.04 LTS linux-gcp-5.4 5.4.0-1089.97~18.04.1 —
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-126.142~18.04.1 —
Ubuntu 18.04 LTS linux-ibm-5.4 5.4.0-1033.37~18.04.1 —
Ubuntu 18.04 LTS linux-kvm 4.15.0-1126.131 —
Ubuntu 18.04 LTS linux-oracle 4.15.0-1105.116 —
Ubuntu 18.04 LTS linux-oracle-5.4 5.4.0-1083.91~18.04.1 —
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1070.80~18.04.1 —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1020.20 —
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1085.92+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1091.96+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1061.69 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1089.97+fips1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2079.84 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2060.66 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1097.108 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2044.49 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips No fix yet —
Ubuntu Pro 16.04 LTS linux +2 No fix yet —
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1140.151~16.04.1 —
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1150.165~16.04.1 —
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1135.151~16.04.2 —
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-192.203~16.04.1 —
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1105.116~16.04.1 —
Ubuntu Pro 14.04 LTS linux +2 No fix yet —
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1150.165~14.04.1 —
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-553.56.1.rt7.397.el8_10 RHSA-2025:8744
RHEL 8 perf +26 4.18.0-553.56.1.el8_10 RHSA-2025:8743
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS bpftool 7.3.0-427.81.1.el9_4 RHSA-2025:13135
RHEL 9.4 EUS rv +64 5.14.0-427.81.1.el9_4 RHSA-2025:13135
RHEL 9.2 E4S bpftool 7.0.0-284.125.1.el9_2 RHSA-2025:11045
RHEL 9.2 E4S kernel-rt +14 5.14.0-284.125.1.rt14.410.el9_2 RHSA-2025:10527
RHEL 9.2 E4S perf +47 5.14.0-284.125.1.el9_2 RHSA-2025:11045
RHEL 9.0 E4S kernel-rt +12 5.14.0-70.138.1.rt21.210.el9_0 RHSA-2025:10829
RHEL 9.0 E4S perf +28 5.14.0-70.138.1.el9_0 RHSA-2025:10830
RHEL 8.8 TUS perf +17 4.18.0-477.100.1.el8_8 RHSA-2025:10211
RHEL 8.8 E4S perf +18 4.18.0-477.100.1.el8_8 RHSA-2025:10211
RHEL 8.6 TUS perf +17 4.18.0-372.153.1.el8_6 RHSA-2025:11570
RHEL 8.6 E4S perf +25 4.18.0-372.153.1.el8_6 RHSA-2025:11570
RHEL 8.6 AUS perf +17 4.18.0-372.153.1.el8_6 RHSA-2025:11570
RHEL 8.4 EUS Long Life perf +17 4.18.0-305.162.1.el8_4 RHSA-2025:10828
RHEL 8.4 AUS perf +17 4.18.0-305.162.1.el8_4 RHSA-2025:10828
RHEL 8.2 AUS perf +17 4.18.0-193.156.1.el8_2 RHSA-2025:10179

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 kernel-rt +9 4.18.0-553.56.1.rt7.397.el8_10 ALSA-2025:8744
AlmaLinux 8 perf +24 4.18.0-553.56.1.el8_10 ALSA-2025:8743

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-553.56.1.el8_10 RLSA-2025:8743
Rocky Linux 8 kernel-rt 4.18.0-553.56.1.rt7.397.el8_10 RLSA-2025:8744
ReleasePackageFixed inAdvisory
SLES 12 SP5 kernel-syms +2 4.12.14-122.255.1 SUSE-SU-2025:1293-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.255.1 SUSE-SU-2025:1293-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_67 1-8.5.1 SUSE-SU-2025:1293-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-553.56.1.el8_10 ELSA-2025-8743

Advisories 18

References