# CVE-2024-57874: arm64: ptrace: fix partial SETREGSET for NT\_ARM\_TAGGED\_ADDR\_CTRL

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

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-28)
- **CWE:** CWE-908
- **Published:** 2025-01-11T14:47:10.665Z
- **Modified:** 2026-06-17T08:14:07.273Z

## Who should check

- Anyone running Linux \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1152dd13845efde5554f80c7e1233bae1d26bd3e; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1c176f5155ee6161fee6f416b64aa50394d3f220; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1370cf3eb5495d70e00547598583a4cd45b40b99; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 96035c0093db258975b8887676afe59a64c34a72; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< abd614bbfcee73247495bd9472da8f85ac83546e; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< ca62d90085f4af36de745883faab9f8a7cbb45d3
- Anyone running Linux 5.10

## Description

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

arm64: ptrace: fix partial SETREGSET for NT\_ARM\_TAGGED\_ADDR\_CTRL

Currently tagged\_addr\_ctrl\_set() doesn't initialize the temporary 'ctrl'
variable, and a SETREGSET call with a length of zero will leave this
uninitialized. Consequently tagged\_addr\_ctrl\_set() will consume an
arbitrary value, potentially leaking up to 64 bits of memory from the
kernel stack. The read is limited to a specific slot on the stack, and
the issue does not provide a write mechanism.

As set\_tagged\_addr\_ctrl() only accepts values where bits \[63:4\] zero and
rejects other values, a partial SETREGSET attempt will randomly succeed
or fail depending on the value of the uninitialized value, and the
exposure is significantly limited.

Fix this by initializing the temporary value before copying the regset
from userspace, as for other regsets (e.g. NT\_PRSTATUS, NT\_PRFPREG,
NT\_ARM\_SYSTEM\_CALL). In the case of a zero-length write, the existing
value of the tagged address ctrl will be retained.

The NT\_ARM\_TAGGED\_ADDR\_CTRL regset is only visible in the
user\_aarch64\_view used by a native AArch64 task to manipulate another
native AArch64 task. As get\_tagged\_addr\_ctrl() only returns an error
value when called for a compat task, tagged\_addr\_ctrl\_get() and
tagged\_addr\_ctrl\_set() should never observe an error value from
get\_tagged\_addr\_ctrl(). Add a WARN\_ON\_ONCE() to both to indicate that
such an error would be unexpected, and error handlnig is not missing in
either case.

## Affected and fixed versions

- Linux: \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1152dd13845efde5554f80c7e1233bae1d26bd3e; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1c176f5155ee6161fee6f416b64aa50394d3f220; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1370cf3eb5495d70e00547598583a4cd45b40b99; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 96035c0093db258975b8887676afe59a64c34a72; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< abd614bbfcee73247495bd9472da8f85ac83546e; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< ca62d90085f4af36de745883faab9f8a7cbb45d3 (cvelist)
- Linux: 5.10 (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-2024-57874. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-57874.md
Affected: Linux >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1152dd13845efde5554f80c7e1233bae1d26bd3e; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1c176f5155ee6161fee6f416b64aa50394d3f220; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1370cf3eb5495d70e00547598583a4cd45b40b99; >= 2200aa7154cb7ef76bac93e…
Fixed in: Linux 1152dd13845efde5554f80c7e1233bae1d26bd3e, Linux 1c176f5155ee6161fee6f416b64aa50394d3f220, Linux 1370cf3eb5495d70e00547598583a4cd45b40b99, Linux 96035c0093db258975b8887676afe59a64c34a72

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-2024-57874 being exploited?

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

### How serious is CVE-2024-57874?

Medium: CVSS 6.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-57874?

Linux \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1152dd13845efde5554f80c7e1233bae1d26bd3e; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1c176f5155ee6161fee6f416b64aa50394d3f220; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 1370cf3eb5495d70e00547598583a4cd45b40b99; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< 96035c0093db258975b8887676afe59a64c34a72; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< abd614bbfcee73247495bd9472da8f85ac83546e; \>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, \< ca62d90085f4af36de745883faab9f8a7cbb45d3; Linux 5.10.

### Is there a fix for CVE-2024-57874?

Yes. Fixed in Linux 1152dd13845efde5554f80c7e1233bae1d26bd3e, Linux 1c176f5155ee6161fee6f416b64aa50394d3f220, Linux 1370cf3eb5495d70e00547598583a4cd45b40b99, Linux 96035c0093db258975b8887676afe59a64c34a72. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-57874?

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

- patch: <https://git.kernel.org/stable/c/1152dd13845efde5554f80c7e1233bae1d26bd3e>
- patch: <https://git.kernel.org/stable/c/1c176f5155ee6161fee6f416b64aa50394d3f220>
- patch: <https://git.kernel.org/stable/c/1370cf3eb5495d70e00547598583a4cd45b40b99>
- patch: <https://git.kernel.org/stable/c/96035c0093db258975b8887676afe59a64c34a72>
- patch: <https://git.kernel.org/stable/c/abd614bbfcee73247495bd9472da8f85ac83546e>
- patch: <https://git.kernel.org/stable/c/ca62d90085f4af36de745883faab9f8a7cbb45d3>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## 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-2024-57874>

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