CVE-2022-49210
published medium CVSS 3.1 · 5.5MIPS: pgalloc: fix memory leak caused by pgd_free()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf9cb654cb550b7b87e8608b14fc3eca432429ffe to < fa3d44424579972cc7c4fac3d9cf227798ebdfa0 · f9cb654cb550b7b87e8608b14fc3eca432429ffe to < d29cda15cab086d82d692de016f7249545d4b6b4 · f9cb654cb550b7b87e8608b14fc3eca432429ffe to < 5a8501d34b261906e4c76ec9da679f2cb4d309ed · f9cb654cb550b7b87e8608b14fc3eca432429ffe to < 1bf0d78c8cc3cf615a6e7bf33ada70b73592f0a1 · f9cb654cb550b7b87e8608b14fc3eca432429ffe to < 2bc5bab9a763d520937e4f3fe8df51c6a1eceb97 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.9 (affected) · 0 to < 5.9 (unaffected · semver) · 5.10.110 through 5.10.* (unaffected · semver) · 5.15.33 through 5.15.* (unaffected · semver) · 5.16.19 through 5.16.* (unaffected · semver) · 5.17.2 through 5.17.* (unaffected · semver) · 5.18 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2023-036 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | kernelaarch64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2023-036 |
| Amazon Linux | AL2 | kerneli686 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2023-036 |
| Amazon Linux | AL2 | kernelsrc | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2023-036 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | kernelx86_64 | Listed in advisory | Not stated | ALAS2KERNEL-5.10-2023-036 |
Description
In the Linux kernel, the following vulnerability has been resolved: MIPS: pgalloc: fix memory leak caused by pgd_free() pgd page is freed by generic implementation pgd_free() since commit f9cb654cb550 ("asm-generic: pgalloc: provide generic pgd_free()"), however, there are scenarios that the system uses more than one page as the pgd table, in such cases the generic implementation pgd_free() won't be applicable anymore. For example, when PAGE_SIZE_4KB is enabled and MIPS_VA_BITS_48 is not enabled in a 64bit system, the macro "PGD_ORDER" will be set as "1", which will cause allocating two pages as the pgd table. Well, at the same time, the generic implementation pgd_free() just free one pgd page, which will result in the memory leak. The memory leak can be easily detected by executing shell command: "while true; do ls > /dev/null; grep MemFree /proc/meminfo; done"
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f9cb654cb550b7b87e8608b14fc3eca432429ffe to < fa3d44424579972cc7c4fac3d9cf227798ebdfa0 (affected · git)f9cb654cb550b7b87e8608b14fc3eca432429ffe to < d29cda15cab086d82d692de016f7249545d4b6b4 (affected · git)f9cb654cb550b7b87e8608b14fc3eca432429ffe to < 5a8501d34b261906e4c76ec9da679f2cb4d309ed (affected · git)f9cb654cb550b7b87e8608b14fc3eca432429ffe to < 1bf0d78c8cc3cf615a6e7bf33ada70b73592f0a1 (affected · git)f9cb654cb550b7b87e8608b14fc3eca432429ffe to < 2bc5bab9a763d520937e4f3fe8df51c6a1eceb97 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.9 (affected)0 to < 5.9 (unaffected · semver)5.10.110 through 5.10.* (unaffected · semver)5.15.33 through 5.15.* (unaffected · semver)5.16.19 through 5.16.* (unaffected · semver)5.17.2 through 5.17.* (unaffected · semver)5.18 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-401 CWE-401 Missing Release of Memory after Effective Lifetime
References
5- https://git.kernel.org/stable/c/1bf0d78c8cc3cf615a6e7bf33ada70b73592f0a1
- https://git.kernel.org/stable/c/2bc5bab9a763d520937e4f3fe8df51c6a1eceb97
- https://git.kernel.org/stable/c/5a8501d34b261906e4c76ec9da679f2cb4d309ed
- https://git.kernel.org/stable/c/d29cda15cab086d82d692de016f7249545d4b6b4
- https://git.kernel.org/stable/c/fa3d44424579972cc7c4fac3d9cf227798ebdfa0
Provider assertions
2Linux · cna
MIPS: pgalloc: fix memory leak caused by pgd_free()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 39f134943d014f0b32b4a6a32a5a4bc905c550ab0bdcd967d05861c0b33eccda
- Ingested
- 23 Sep 2026, 08:04:03 UTC
- Source record
- Official CVE record