# CVE-2022-50675: arm64: mte: Avoid setting PG\_mte\_tagged if no tags cleared or restored

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-09T01:29:27.926Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< 918002bdbe4328c8c0164a22e8ebf2384b80dc23; \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< 749e9fc18b1e1a3f93a9512e91bd7f93002d2821; \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< a8e5e5146ad08d794c58252bab00b261045ef16d
- Anyone running Linux 5.14

## 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()).

## Affected and fixed versions

- Linux: \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< 918002bdbe4328c8c0164a22e8ebf2384b80dc23; \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< 749e9fc18b1e1a3f93a9512e91bd7f93002d2821; \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< a8e5e5146ad08d794c58252bab00b261045ef16d (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50675. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50675.md
Affected: Linux >= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, < 918002bdbe4328c8c0164a22e8ebf2384b80dc23; >= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, < 749e9fc18b1e1a3f93a9512e91bd7f93002d2821; >= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, < a8e5e5146ad08d794c58252bab00b261045ef16d; Linux 5.14
Fixed in: Linux 918002bdbe4328c8c0164a22e8ebf2384b80dc23, Linux 749e9fc18b1e1a3f93a9512e91bd7f93002d2821

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50675 being exploited?

There is no confirmed exploitation: CVE-2022-50675 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50675?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50675?

Linux \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< 918002bdbe4328c8c0164a22e8ebf2384b80dc23; \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< 749e9fc18b1e1a3f93a9512e91bd7f93002d2821; \>= 69e3b846d8a753f9f279f29531ca56b0f7563ad0, \< a8e5e5146ad08d794c58252bab00b261045ef16d; Linux 5.14.

### Is there a fix for CVE-2022-50675?

Yes. Fixed in Linux 918002bdbe4328c8c0164a22e8ebf2384b80dc23, Linux 749e9fc18b1e1a3f93a9512e91bd7f93002d2821. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50675?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/918002bdbe4328c8c0164a22e8ebf2384b80dc23>
- other: <https://git.kernel.org/stable/c/749e9fc18b1e1a3f93a9512e91bd7f93002d2821>
- other: <https://git.kernel.org/stable/c/a8e5e5146ad08d794c58252bab00b261045ef16d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50675>

HTML: <https://flawdb.com/CVE-2022-50675> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50675>
