# CVE-2022-50446: ARC: mm: fix leakage of memory allocated for PTE

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-01T11:45:20.854Z
- Modified: 2026-06-17T05:23:34.500Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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 pgtable_t 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 pmd_pgtable macro hasn't
changed and returns the direct virtual address from the PMD (PGD) entry.
Than this address used as a parameter in the __pte_free() 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.

(As written by CVE List.)

## Affected

- Linux Linux: from d9820ff76f95fa26d33e412254a89cd65b23142d before 14009ada5712649589ab4ad0441b811780ea8773; from d9820ff76f95fa26d33e412254a89cd65b23142d before d83a69966e8b6ae9dd447f3ac704c0223bceb7f7; from d9820ff76f95fa26d33e412254a89cd65b23142d before 4fd9df10cb7a9289fbd22d669f9f98164d95a1ce; 5.15 (not affected: before 5.15; from 5.15.77 up to 5.15.*; from 6.0.7 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.15 before 5.15.77; from 5.16 before 6.0.7; 6.1

## References

- <https://git.kernel.org/stable/c/14009ada5712649589ab4ad0441b811780ea8773> (patch)
- <https://git.kernel.org/stable/c/d83a69966e8b6ae9dd447f3ac704c0223bceb7f7> (patch)
- <https://git.kernel.org/stable/c/4fd9df10cb7a9289fbd22d669f9f98164d95a1ce> (patch)

## Sources

- CVE List: [CVE-2022-50446](https://www.cve.org/CVERecord?id=CVE-2022-50446), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50446](https://nvd.nist.gov/vuln/detail/CVE-2022-50446), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50446 · Whole record: https://cve.day/CVE-2022-50446.json · Rebuilt by cve.day 2026-11-25T22:58:21.222Z
