Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-57874

MEDIUM 6.1EPSS 15%

arm64: ptrace: fix partial SETREGSET for NT_ARM_TAGGED_ADDR_CTRL

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

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

Vulnerability facts

Affected
Linux >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1152dd13845efde5554f80c7e1233bae1d26bd3e; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1c176f5155ee6161fee6f416b64aa50394d3f220; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1370cf3eb5495d70e00547598583a4cd45b40b99; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 96035c0093db258975b8887676afe59a64c34a72; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < abd614bbfcee73247495bd9472da8f85ac83546e; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < ca62d90085f4af36de745883faab9f8a7cbb45d3; Linux 5.10
Fixed in
Linux 1152dd13845efde5554f80c7e1233bae1d26bd3e, Linux 1c176f5155ee6161fee6f416b64aa50394d3f220, Linux 1370cf3eb5495d70e00547598583a4cd45b40b99, Linux 96035c0093db258975b8887676afe59a64c34a72
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-908
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1152dd13845efde5554f80c7e1233bae1d26bd3e; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1c176f5155ee6161fee6f416b64aa50394d3f220; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 1370cf3eb5495d70e00547598583a4cd45b40b99; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < 96035c0093db258975b8887676afe59a64c34a72; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < abd614bbfcee73247495bd9472da8f85ac83546e; >= 2200aa7154cb7ef76bac93e98326883ba64bfa2e, < ca62d90085f4af36de745883faab9f8a7cbb45d3—cvelist
Linux5.10—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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-26).

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.

Sponsors