0.0
NA
CVE-2022-50675
arm64: mte: Avoid setting PG_mte_tagged if no tags cleared or restored
Description

In the Linux kernel, the following vulnerability has been resolved: arm64: mte: Avoid setting PG_mte_tagged if no tags cleared or restored Prior to commit 69e3b846d8a7 ("arm64: mte: Sync tags for pages where PTE is untagged"), mte_sync_tags() was only called for pte_tagged() entries (those mapped with PROT_MTE). Therefore mte_sync_tags() could safely use test_and_set_bit(PG_mte_tagged, &page->flags) without inadvertently setting PG_mte_tagged on an untagged page. The above commit was required as guests may enable MTE without any control at the stage 2 mapping, nor a PROT_MTE mapping in the VMM. However, the side-effect was that any page with a PTE that looked like swap (or migration) was getting PG_mte_tagged set automatically. A subsequent page copy (e.g. migration) copied the tags to the destination page even if the tags were owned by KASAN. This issue was masked by the page_kasan_tag_reset() call introduced in commit e5b8d9218951 ("arm64: mte: reset the page tag in page->flags"). When this commit was reverted (20794545c146), KASAN started reporting access faults because the overriding tags in a page did not match the original page->flags (with CONFIG_KASAN_HW_TAGS=y): BUG: KASAN: invalid-access in copy_page+0x10/0xd0 arch/arm64/lib/copy_page.S:26 Read at addr f5ff000017f2e000 by task syz-executor.1/2218 Pointer tag: [f5], memory tag: [f2] Move the PG_mte_tagged bit setting from mte_sync_tags() to the actual place where tags are cleared (mte_sync_page_tags()) or restored (mte_restore_tags()).

INFO

Published Date :

Dec. 9, 2025, 4:17 p.m.

Last Modified :

Nov. 10, 2026, 12:10 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2022-50675 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Update Linux kernel to resolve incorrect tag synchronization for memory tagging.
  • Apply the patch for arm64 MTE tag handling.
  • Ensure PG_mte_tagged is set correctly.
  • Verify tag synchronization logic.
  • Revert the page_kasan_tag_reset() call.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-50675.

URL Resource
https://git.kernel.org/stable/c/749e9fc18b1e1a3f93a9512e91bd7f93002d2821
https://git.kernel.org/stable/c/918002bdbe4328c8c0164a22e8ebf2384b80dc23
https://git.kernel.org/stable/c/a8e5e5146ad08d794c58252bab00b261045ef16d
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-50675 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-50675 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-50675 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-50675 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Nov. 10, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: arm64: mte: Evitar establecer PG_mte_tagged si no se borran o restauran etiquetas Antes del commit 69e3b846d8a7 (’arm64: mte: Sincronizar etiquetas para páginas donde el PTE no está etiquetado’), mte_sync_tags() solo se llamaba para entradas pte_tagged() (aquellas mapeadas con PROT_MTE). Por lo tanto, mte_sync_tags() podía usar de forma segura test_and_set_bit(PG_mte_tagged, &page -> flags) sin establecer inadvertidamente PG_mte_tagged en una página sin etiquetar. El commit anterior fue necesario ya que los invitados pueden habilitar MTE sin ningún control en el mapeo de etapa 2, ni un mapeo PROT_MTE en el VMM. Sin embargo, el efecto secundario fue que cualquier página con un PTE que parecía de intercambio (o migración) estaba obteniendo PG_mte_tagged establecido automáticamente. Una copia de página posterior (por ejemplo, migración) copiaba las etiquetas a la página de destino incluso si las etiquetas eran propiedad de KASAN. Este problema fue enmascarado por la llamada a page_kasan_tag_reset() introducida en el commit e5b8d9218951 (’arm64: mte: restablecer la etiqueta de página en page -> flags’). Cuando este commit fue revertido (20794545c146), KASAN comenzó a reportar fallos de acceso porque las etiquetas sobrescribientes en una página no coincidían con las page -> flags originales (con CONFIG_KASAN_HW_TAGS=y): BUG: KASAN: acceso-inválido en copy_page+0x10/0xd0 arch/arm64/lib/copy_page.S:26 Lectura en la dirección f5ff000017f2e000 por la tarea syz-executor.1/2218 Etiqueta del puntero: [f5], etiqueta de memoria: [f2] Mover la configuración del bit PG_mte_tagged de mte_sync_tags() al lugar real donde las etiquetas se borran (mte_sync_page_tags()) o se restauran (mte_restore_tags()).
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '69e3b846d8a753f9f279f29531ca56b0f7563ad0', 'lessThan': '918002bdbe4328c8c0164a22e8ebf2384b80dc23', 'versionType': 'git'}, {'status': 'affected', 'version': '69e3b846d8a753f9f279f29531ca56b0f7563ad0', 'lessThan': '749e9fc18b1e1a3f93a9512e91bd7f93002d2821', 'versionType': 'git'}, {'status': 'affected', 'version': '69e3b846d8a753f9f279f29531ca56b0f7563ad0', 'lessThan': 'a8e5e5146ad08d794c58252bab00b261045ef16d', 'versionType': 'git'}], 'programFiles': ['arch/arm64/kernel/mte.c', 'arch/arm64/mm/mteswap.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.14'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.14', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.15.82', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.0.3', 'versionType': 'semver', 'lessThanOrEqual': '6.0.*'}, {'status': 'unaffected', 'version': '6.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['arch/arm64/kernel/mte.c', 'arch/arm64/mm/mteswap.c'], 'defaultStatus': 'affected'}]
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Dec. 09, 2025

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: arm64: mte: Avoid setting PG_mte_tagged if no tags cleared or restored Prior to commit 69e3b846d8a7 ("arm64: mte: Sync tags for pages where PTE is untagged"), mte_sync_tags() was only called for pte_tagged() entries (those mapped with PROT_MTE). Therefore mte_sync_tags() could safely use test_and_set_bit(PG_mte_tagged, &page->flags) without inadvertently setting PG_mte_tagged on an untagged page. The above commit was required as guests may enable MTE without any control at the stage 2 mapping, nor a PROT_MTE mapping in the VMM. However, the side-effect was that any page with a PTE that looked like swap (or migration) was getting PG_mte_tagged set automatically. A subsequent page copy (e.g. migration) copied the tags to the destination page even if the tags were owned by KASAN. This issue was masked by the page_kasan_tag_reset() call introduced in commit e5b8d9218951 ("arm64: mte: reset the page tag in page->flags"). When this commit was reverted (20794545c146), KASAN started reporting access faults because the overriding tags in a page did not match the original page->flags (with CONFIG_KASAN_HW_TAGS=y): BUG: KASAN: invalid-access in copy_page+0x10/0xd0 arch/arm64/lib/copy_page.S:26 Read at addr f5ff000017f2e000 by task syz-executor.1/2218 Pointer tag: [f5], memory tag: [f2] Move the PG_mte_tagged bit setting from mte_sync_tags() to the actual place where tags are cleared (mte_sync_page_tags()) or restored (mte_restore_tags()).
    Added Reference https://git.kernel.org/stable/c/749e9fc18b1e1a3f93a9512e91bd7f93002d2821
    Added Reference https://git.kernel.org/stable/c/918002bdbe4328c8c0164a22e8ebf2384b80dc23
    Added Reference https://git.kernel.org/stable/c/a8e5e5146ad08d794c58252bab00b261045ef16d
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.