# CVE-2024-57874: arm64: ptrace: fix partial SETREGSET for NT_ARM_TAGGED_ADDR_CTRL

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-01-11T14:47:10.665Z
- Modified: 2026-06-17T08:14:07.273Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 2200aa7154cb7ef76bac93e98326883ba64bfa2e before 1152dd13845efde5554f80c7e1233bae1d26bd3e; from 2200aa7154cb7ef76bac93e98326883ba64bfa2e before 1c176f5155ee6161fee6f416b64aa50394d3f220; from 2200aa7154cb7ef76bac93e98326883ba64bfa2e before 1370cf3eb5495d70e00547598583a4cd45b40b99; from 2200aa7154cb7ef76bac93e98326883ba64bfa2e before 96035c0093db258975b8887676afe59a64c34a72; from 2200aa7154cb7ef76bac93e98326883ba64bfa2e before abd614bbfcee73247495bd9472da8f85ac83546e; from 2200aa7154cb7ef76bac93e98326883ba64bfa2e before ca62d90085f4af36de745883faab9f8a7cbb45d3; 5.10 (not affected: before 5.10; from 5.10.231 up to 5.10.*; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.66 up to 6.6.*; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 5.10 before 5.10.231; from 5.11 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.66; from 6.7 before 6.12.5; 6.13

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

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

---

Page: https://cve.day/CVE-2024-57874 · Whole record: https://cve.day/CVE-2024-57874.json · Rebuilt by cve.day 2026-11-25T22:58:50.942Z
