---
title: "CVE-2022-48731"
canonical_url: "https://pkgseek.com/security/CVE-2022-48731"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2022-48731

In the Linux kernel, the following vulnerability has been resolved: mm/kmemleak: avoid scanning potential huge holes When using devm_request_free_mem_region() and devm_memremap_pages() to add ZONE_DEVICE memory, if requested free mem region's end pfn were huge(e.g., 0x400000000), the node_end_pfn() will be also huge (see move_pfn_range_to_zone()). Thus it creates a huge hole between node_start_pfn() and node_end_pfn(). We found on some AMD APUs, amdkfd requested such a free mem region and created a huge hole. In such a case, following code snippet was just doing busy test_bit() looping on the …

CVE-2022-48731 is rated MEDIUM, with 63 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM
- **Affected builds**: 63
- **Affected distros**: 1
- **Distros with fixed_in**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | linux-aws-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-aws-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-azure-cloud-tools-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-azure-headers-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-azure-tools-5.4.0-1010 | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1062.65 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1070.76 |
| Ubuntu | focal | linux-buildinfo-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-buildinfo-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-buildinfo-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26 | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-cloud-tools-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-cloud-tools-common | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-doc | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-gcp-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-gcp-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-headers-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-headers-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-headers-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1062.65 |
| Ubuntu | focal | linux-headers-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1070.76 |
| Ubuntu | focal | linux-headers-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-headers-5.4.0-26 | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-headers-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-headers-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-image-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-image-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1062.65 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1070.76 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-image-unsigned-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-kvm-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1062.65 |
| Ubuntu | focal | linux-kvm-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1062.65 |
| Ubuntu | focal | linux-libc-dev | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-modules-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-modules-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-modules-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1062.65 |
| Ubuntu | focal | linux-modules-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1070.76 |
| Ubuntu | focal | linux-modules-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-modules-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-modules-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-modules-extra-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-modules-extra-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-modules-extra-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1070.76 |
| Ubuntu | focal | linux-modules-extra-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-modules-extra-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-oracle-headers-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1070.76 |
| Ubuntu | focal | linux-oracle-tools-5.4.0-1009 | 5.4.0-1009.9 | 5.4.0-1070.76 |
| Ubuntu | focal | linux-source-5.4.0 | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-tools-5.4.0-1009-aws | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-tools-5.4.0-1009-gcp | 5.4.0-1009.9 | 5.4.0-1072.77 |
| Ubuntu | focal | linux-tools-5.4.0-1009-kvm | 5.4.0-1009.9 | 5.4.0-1062.65 |
| Ubuntu | focal | linux-tools-5.4.0-1009-oracle | 5.4.0-1009.9 | 5.4.0-1070.76 |
| Ubuntu | focal | linux-tools-5.4.0-1010-azure | 5.4.0-1010.10 | 5.4.0-1077.80 |
| Ubuntu | focal | linux-tools-5.4.0-26 | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-tools-5.4.0-26-generic | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-tools-5.4.0-26-lowlatency | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-tools-common | 5.4.0-26.30 | 5.4.0-109.123 |
| Ubuntu | focal | linux-tools-host | 5.4.0-26.30 | 5.4.0-109.123 |
