CVE-2024-57874
Last modified
CVE-2024-57874 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 5.10, < 5.10.231 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.174 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.120 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.66 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.5 | — |
| Linux | Linux Kernel | 6.13 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-57874?
How severe is CVE-2024-57874?
How do I fix CVE-2024-57874?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-57854Net::NSCA::Client versions through 0.009002 for Perl uses a …9.1
- CVE-2024-57857In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-5786Cross-Site Request Forgery vulnerability in Comtrend router …6.5
- CVE-2024-57868Web::API 2.8 and earlier for Perl uses the rand() function a…5.5
- CVE-2024-5787The PowerPack Addons for Elementor (Free Widgets, Extensions…5.4
- CVE-2024-57872In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-57875In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-57876In the Linux kernel, the following vulnerability has been re…7
- CVE-2024-57877In the Linux kernel, the following vulnerability has been re…6.1
- CVE-2024-57878In the Linux kernel, the following vulnerability has been re…6.1
- CVE-2024-57879In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-5788The Silesia theme for WordPress is vulnerable to Stored Cros…6.4
Are you affected by CVE-2024-57874?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
