CVE-2022-50446

Source
https://cve.org/CVERecord?id=CVE-2022-50446
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50446.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50446
Downstream
Published
2025-10-01T11:45:20.854Z
Modified
2026-04-02T08:28:30.967940Z
Summary
ARC: mm: fix leakage of memory allocated for PTE
Details

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

ARC: mm: fix leakage of memory allocated for PTE

Since commit d9820ff ("ARC: mm: switch pgtable_t back to struct page *") a memory leakage problem occurs. Memory allocated for page table entries not released during process termination. This issue can be reproduced by a small program that allocates a large amount of memory. After several runs, you'll see that the amount of free memory has reduced and will continue to reduce after each run. All ARC CPUs are effected by this issue. The issue was introduced since the kernel stable release v5.15-rc1.

As described in commit d9820ff after switch pgtablet back to struct page *, a pointer to "struct page" and appropriate functions are used to allocate and free a memory page for PTEs, but the pmdpgtable macro hasn't changed and returns the direct virtual address from the PMD (PGD) entry. Than this address used as a parameter in the _ptefree() and as a result this function couldn't release memory page allocated for PTEs.

Fix this issue by changing the pmd_pgtable macro and returning pointer to struct page.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50446.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d9820ff76f95fa26d33e412254a89cd65b23142d
Fixed
14009ada5712649589ab4ad0441b811780ea8773
Fixed
d83a69966e8b6ae9dd447f3ac704c0223bceb7f7
Fixed
4fd9df10cb7a9289fbd22d669f9f98164d95a1ce

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50446.json"