Skip to content
OpenAdvisories
Unscored CVE-2021-4002 EUVD-2021-33909GHSA-7jmv-5cqq-75jg

A memory leak flaw in the Linux kernel's hugetlbfs memory usage was found in the way the user maps some regions of memory twice using shmge…

Published Mar 3, 2022 · Updated Aug 3, 2024 · Assigned by redhat

Package: kernel Package: linux Package: linux Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 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.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-edge Package: linux-azure-fips Package: linux-bluefield Package: linux-dell300x Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-kvm Package: linux-lts-xenial Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.6 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 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.8 Package: linux-snapdragon Package: linux-vmware Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

A memory leak flaw in the Linux kernel's hugetlbfs memory usage was found in the way the user maps some regions of memory twice using shmget() which are aligned to PUD alignment with the fault of some of the memory pages. A local user could use this flaw to get unauthorized access to some data.

Affected products

VendorProductAffectedFixed
— kernel affects kernel v3.6 and later through v5.15.5. —

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.15.5-1 —
Debian 13 linux 5.15.5-1 —
Debian 12 linux 5.15.5-1 —
Debian 10 linux 4.19.232-1 DSA-5096-1
Debian 9 linux 4.9.303-1 DLA-2940-1
Debian 9 linux-4.19 4.19.232-1~deb9u1 DLA-2941-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-realtime +1 No fix yet —
Ubuntu 20.04 LTS linux 5.4.0-92.103 USN-5210-1
Ubuntu 20.04 LTS linux-aws 5.4.0-1061.64 USN-5210-1
Ubuntu 20.04 LTS linux-aws-5.11 +2 5.11.0-1023.24~20.04.1 USN-5208-1
Ubuntu 20.04 LTS linux-azure 5.4.0-1065.68 USN-5210-1
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1023.26 USN-5210-1
Ubuntu 20.04 LTS linux-gcp +1 5.4.0-1059.63 USN-5210-1
Ubuntu 20.04 LTS linux-gcp-5.11 5.11.0-1024.26~20.04.1 USN-5208-1
Ubuntu 20.04 LTS linux-gke 5.4.0-1057.60 USN-5210-1
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1029.30 USN-5210-1
Ubuntu 20.04 LTS linux-hwe-5.11 5.11.0-44.48~20.04.2 USN-5208-1
Ubuntu 20.04 LTS linux-hwe-5.13 5.13.0-23.23~20.04.2 —
Ubuntu 20.04 LTS linux-ibm 5.4.0-1010.11 USN-5210-1
Ubuntu 20.04 LTS linux-kvm 5.4.0-1051.53 USN-5210-1
Ubuntu 20.04 LTS linux-oem-5.10 5.10.0-1053.55 USN-5207-1
Ubuntu 20.04 LTS linux-oem-5.13 5.13.0-1026.32 USN-5218-1
Ubuntu 20.04 LTS linux-oem-5.14 5.14.0-1013.13 USN-5206-1
Ubuntu 20.04 LTS linux-raspi 5.4.0-1048.53 USN-5210-1
Ubuntu 20.04 LTS linux-riscv +9 No fix yet —
Ubuntu 20.04 LTS linux-riscv-5.11 5.11.0-1024.25~20.04.1 —
Ubuntu 18.04 LTS linux 4.15.0-166.174 USN-5209-1
Ubuntu 18.04 LTS linux-aws 4.15.0-1118.125 USN-5209-1
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1061.64~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-azure-4.15 4.15.0-1129.142 USN-5209-1
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1065.68~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-dell300x 4.15.0-1033.38 USN-5209-1
Ubuntu 18.04 LTS linux-gcp +12 No fix yet —
Ubuntu 18.04 LTS linux-gcp-4.15 4.15.0-1114.128 USN-5209-1
Ubuntu 18.04 LTS linux-gcp-5.4 +1 5.4.0-1059.63~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-gke-5.4 5.4.0-1057.60~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-gkeop-5.4 5.4.0-1029.30~18.04.2 USN-5210-1
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-92.103~18.04.2 USN-5210-1
Ubuntu 18.04 LTS linux-kvm 4.15.0-1105.107 USN-5209-1
Ubuntu 18.04 LTS linux-oracle 4.15.0-1085.93 USN-5209-1
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1048.53~18.04.1 USN-5210-1
Ubuntu 18.04 LTS linux-raspi2 4.15.0-1101.108 USN-5209-1
Ubuntu 18.04 LTS linux-snapdragon 4.15.0-1118.127 USN-5209-1
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
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-1069.73+fips2 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1073.76+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1038.44 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1067.71~20.04.1 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2059.61 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2041.45 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips 4.15.0-1075.84 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-gcp-fips 4.15.0-2024.26 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1068.74 —
Ubuntu Pro 20.04 LTS linux 5.4.0-92.103 LSN-0083-1
Ubuntu Pro 20.04 LTS linux-aws 5.4.0-1061.64 LSN-0083-1
Ubuntu Pro 20.04 LTS linux-azure 5.4.0-1065.68 LSN-0083-1
Ubuntu Pro 20.04 LTS linux-gcp 5.4.0-1059.63 LSN-0083-1
Ubuntu Pro 20.04 LTS linux-gke 5.4.0-1057.60 LSN-0083-1
Ubuntu Pro 20.04 LTS linux-gkeop 5.4.0-1029.30 LSN-0083-1
Ubuntu Pro 18.04 LTS linux 4.15.0-166.174 LSN-0083-1
Ubuntu Pro 18.04 LTS linux-aws 4.15.0-1118.125 LSN-0083-1
Ubuntu Pro 18.04 LTS linux-gke-5.4 5.4.0-1057.60~18.04.1 LSN-0083-1
Ubuntu Pro 18.04 LTS linux-gkeop-5.4 5.4.0-1029.30~18.04.2 LSN-0083-1
Ubuntu Pro 18.04 LTS linux-oem +1 No fix yet LSN-0083-1
Ubuntu Pro 16.04 LTS linux 4.4.0-218.251 USN-5211-1, LSN-0083-1
Ubuntu Pro 16.04 LTS linux-aws 4.4.0-1134.148 USN-5211-1, LSN-0083-1
Ubuntu Pro 16.04 LTS linux-aws-hwe 4.15.0-1118.125~16.04.1 USN-5209-1
Ubuntu Pro 16.04 LTS linux-azure 4.15.0-1129.142~16.04.1 USN-5209-1, LSN-0083-1
Ubuntu Pro 16.04 LTS linux-gcp 4.15.0-1114.128~16.04.1 USN-5209-1
Ubuntu Pro 16.04 LTS linux-hwe 4.15.0-166.174~16.04.1 USN-5209-1, LSN-0083-1
Ubuntu Pro 16.04 LTS linux-kvm 4.4.0-1099.108 USN-5211-1
Ubuntu Pro 16.04 LTS linux-oracle 4.15.0-1085.93~16.04.1 USN-5209-1
Ubuntu Pro 14.04 LTS linux 3.13.0-189.240 USN-5211-1
Ubuntu Pro 14.04 LTS linux-aws 4.4.0-1098.103 USN-5211-1
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1129.142~14.04.1 USN-5209-1
Ubuntu Pro 14.04 LTS linux-lts-xenial 4.4.0-218.251~14.04.1 USN-5211-1
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-372.9.1.rt7.166.el8 RHSA-2022:1975
RHEL 8 perf +26 4.18.0-372.9.1.el8 RHSA-2022:1988

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 perf +19 4.18.0-372.9.1.el8 ALSA-2022:1988

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 kernel 4.18.0-372.9.1.el8 RLSA-2022:1988
Rocky Linux 8 kernel-rt 4.18.0-372.9.1.rt7.166.el8 RLSA-2022:1975
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +7 5.3.18-59.40.1 SUSE-SU-2022:0131-1
SLES 15 SP3 kernel-azure +2 5.3.18-38.34.1 SUSE-SU-2022:0056-1
SLES 15 SP3 kernel-default-base 5.3.18-59.40.1.18.25.1 SUSE-SU-2022:0131-1
SLES 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLES 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLES 15 SP1 kernel-docs +5 4.12.14-197.105.1 SUSE-SU-2022:0366-1
SLES 15 kernel-docs +6 4.12.14-150.83.1 SUSE-SU-2022:0367-1
SLES 12 SP5 kernel-azure +2 4.12.14-16.85.1 SUSE-SU-2022:0080-1
SLES 12 SP5 kernel-docs +4 4.12.14-122.106.1 SUSE-SU-2022:0068-1
Show 34 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 kernel-syms +2 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SLES 12 SP3 kernel-syms +2 4.4.180-94.153.1 SUSE-SU-2022:0362-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_42 1-4.3.1 SUSE-SU-2022:0362-1
SLES 12 SP2 kernel-syms +2 4.4.121-92.164.1 SUSE-SU-2022:0477-1
SLES for SAP 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLES for SAP 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLES for SAP 15 SP1 kernel-docs +4 4.12.14-197.105.1 SUSE-SU-2022:0366-1
SLES for SAP 15 kernel-docs +5 4.12.14-150.83.1 SUSE-SU-2022:0367-1
SLES for SAP 12 SP5 kernel-azure +2 4.12.14-16.85.1 SUSE-SU-2022:0080-1
SLES for SAP 12 SP5 kernel-syms +2 4.12.14-122.106.1 SUSE-SU-2022:0068-1
SLES for SAP 12 SP4 kernel-syms +2 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SLES for SAP 12 SP3 kernel-syms +2 4.4.180-94.153.1 SUSE-SU-2022:0362-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_42 1-4.3.1 SUSE-SU-2022:0362-1
SLE Real Time 12 SP5 kernel-rt +3 4.12.14-10.73.1 SUSE-SU-2022:0090-1
SLE Micro 5.1 kernel-default 5.3.18-59.40.1 SUSE-SU-2022:0131-1
SLE Micro 5.1 kernel-default-base 5.3.18-59.40.1.18.25.1 SUSE-SU-2022:0131-1
SLE Micro 5.1 kernel-rt 5.3.18-68.1 SUSE-SU-2022:0079-1
SLE Micro 5.0 kernel-default 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLE Micro 5.0 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLE Micro 5.0 kernel-rt 5.3.18-65.2 SUSE-SU-2022:0181-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-59.40.1 SUSE-SU-2022:0131-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_11 1-7.3.1 SUSE-SU-2022:0131-1
SLE Live Patching 15 SP2 kernel-default 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_23 1-5.3.1 SUSE-SU-2022:0197-1
SLE Live Patching 15 SP1 kernel-default 4.12.14-197.105.1 SUSE-SU-2022:0366-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_28 1-3.3.1 SUSE-SU-2022:0366-1
SLE Live Patching 15 kernel-default 4.12.14-150.83.1 SUSE-SU-2022:0367-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_27 1-1.5.1 SUSE-SU-2022:0367-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.106.1 SUSE-SU-2022:0068-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_27 1-8.3.1 SUSE-SU-2022:0068-1
SLE Live Patching 12 SP4 kernel-default 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_24 1-6.5.1 SUSE-SU-2022:0371-1
SLE HPC 15 SP2 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SLE HPC 15 SP2 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SLE HPC 15 SP1 kernel-docs +4 4.12.14-197.105.1 SUSE-SU-2022:0366-1
SLE HPC 15 kernel-docs +5 4.12.14-150.83.1 SUSE-SU-2022:0367-1
SUSE Real Time Module 15 SP3 kernel-rt +3 5.3.18-68.1 SUSE-SU-2022:0079-1
SUSE Real Time Module 15 SP2 kernel-rt +2 5.3.18-65.2 SUSE-SU-2022:0181-1
SUSE Real Time Module 15 SP2 kernel-syms-rt 5.3.18-65.1 SUSE-SU-2022:0181-1
SUSE Package Hub 15 SP3 connman 1.41-bp153.2.3.1 openSUSE-SU-2022:0056-1
SUSE OpenStack Cloud Crowbar 9 kernel-syms +2 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SUSE OpenStack Cloud Crowbar 8 kernel-syms +2 4.4.180-94.153.1 SUSE-SU-2022:0362-1
SUSE OpenStack Cloud Crowbar 8 kgraft-patch-SLE12-SP3_Update_42 1-4.3.1 SUSE-SU-2022:0362-1
SUSE OpenStack Cloud 9 kernel-syms +2 4.12.14-95.88.1 SUSE-SU-2022:0371-1
SUSE OpenStack Cloud 8 kernel-syms +2 4.4.180-94.153.1 SUSE-SU-2022:0362-1
SUSE OpenStack Cloud 8 kgraft-patch-SLE12-SP3_Update_42 1-4.3.1 SUSE-SU-2022:0362-1
SUSE Manager Server 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Server 4.1 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Manager Retail Branch Server 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Retail Branch Server 4.1 kernel-docs +4 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Manager Proxy 4.1 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Manager Proxy 4.1 kernel-docs +4 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE HPE Helion OpenStack 8 kernel-syms +2 4.4.180-94.153.1 SUSE-SU-2022:0362-1
SUSE HPE Helion OpenStack 8 kgraft-patch-SLE12-SP3_Update_42 1-4.3.1 SUSE-SU-2022:0362-1
SUSE Enterprise Storage 7 kernel-default-base 5.3.18-24.99.1.9.46.1 SUSE-SU-2022:0197-1
SUSE Enterprise Storage 7 kernel-docs +5 5.3.18-24.99.1 SUSE-SU-2022:0197-1
SUSE Enterprise Storage 6 kernel-docs +4 4.12.14-197.105.1 SUSE-SU-2022:0366-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 connman 1.41-bp153.2.3.1 openSUSE-SU-2022:0056-1
openSUSE Leap 15.3 dtb-aarch64 +7 5.3.18-59.40.1 openSUSE-SU-2022:0131-1
openSUSE Leap 15.3 kernel-azure +2 5.3.18-38.34.1 openSUSE-SU-2022:0056-1
openSUSE Leap 15.3 kernel-debug +4 4.12.14-197.105.1 openSUSE-SU-2022:0366-1, openSUSE-SU-2022:0131-1
openSUSE Leap 15.3 kernel-default-base 5.3.18-59.40.1.18.25.1 openSUSE-SU-2022:0131-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 kernel-livepatch-4.14.256-197.484 1.0-0.amzn2 ALAS2-2025-2752, ALAS2-2021-1727
Amazon Linux 2 perf +8 4.14.256-197.484.amzn2 ALAS2-2025-2752, ALAS2-2021-1727

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.15.32.1-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-372.9.1.el8 ELSA-2022-1988
Oracle Linux 7 kernel-uek +5 4.1.12-124.62.3.el7uek ELSA-2022-9348, ELSA-2022-9313
Oracle Linux 7 kernel-uek-container 4.14.35-2047.512.6.el7 ELSA-2022-9314
Oracle Linux 7 perf +5 4.14.35-2047.512.6.el7uek ELSA-2022-9313

Advisories 40

References