CVE-2024-46683
Last modified
CVE-2024-46683 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: drm/xe: prevent UAF around preempt fence The fence lock is part of the queue, therefore in the current design anything locking the fence should then also hold a ref to the queue to prevent the queue from being freed. However, currently it looks like we signal the fence and then drop the queue ref, but if something is waiting on the fence, the waiter is kicked to wake up at some later point, where upon waking up it first grabs the lock before checking the fence state. But if we have already dropped the queue ref, then the lock might already be freed as part of the queue, leading to uaf. To prevent this, move the fence lock into the fence itself so we don't run into lifetime issues. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: drm/xe: prevent UAF around preempt fence The fence lock is part of the queue, therefore in the current design anything locking the fence should then also hold a ref to the queue to prevent the queue from being freed. However, currently it looks like we signal the fence and then drop the queue ref, but if something is waiting on the fence, the waiter is kicked to wake up at some later point, where upon waking up it first grabs the lock before checking the fence state. But if we have already dropped the queue ref, then the lock might already be freed as part of the queue, leading to uaf. To prevent this, move the fence lock into the fence itself so we don't run into lifetime issues. Alternative might be to have device level lock, or only release the queue in the fence release callback, however that might require pushing to another worker to avoid locking issues. References: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2454 References: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2342 References: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2020 (cherry picked from commit 7116c35aacedc38be6d15bd21b2fc936eed0008b)
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.8, < 6.10.8 | — |
| Linux | Linux Kernel | 6.11 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-46683?
How severe is CVE-2024-46683?
How do I fix CVE-2024-46683?
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-46678In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-46679In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2024-4668The Gum Elementor Addon plugin for WordPress is vulnerable t…6.4
- CVE-2024-46680In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-46681In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-46682In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-46684In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-46685In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-46686In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-46687In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-46688In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-46689In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-46683?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
