CVE-2024-50059
Last modified
CVE-2024-50059 is a high-severity vulnerability rated 7/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: ntb: ntb_hw_switchtec: Fix use after free vulnerability in switchtec_ntb_remove due to race condition In the switchtec_ntb_add function, it can call switchtec_ntb_init_sndev function, then &sndev->check_link_status_work is bound with check_link_status_work. switchtec_ntb_link_notification may be called to start the work. If we remove the module which will call switchtec_ntb_remove to make cleanup, it will free sndev through kfree(sndev), while the work mentioned above will be used. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: ntb: ntb_hw_switchtec: Fix use after free vulnerability in switchtec_ntb_remove due to race condition In the switchtec_ntb_add function, it can call switchtec_ntb_init_sndev function, then &sndev->check_link_status_work is bound with check_link_status_work. switchtec_ntb_link_notification may be called to start the work. If we remove the module which will call switchtec_ntb_remove to make cleanup, it will free sndev through kfree(sndev), while the work mentioned above will be used. The sequence of operations that may lead to a UAF bug is as follows: CPU0 CPU1 | check_link_status_work switchtec_ntb_remove | kfree(sndev); | | if (sndev->link_force_down) | // use sndev Fix it by ensuring that the work is canceled before proceeding with the cleanup in switchtec_ntb_remove.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 5.10.227 |
| Linux | Linux Kernel | >= 5.11, < 5.15.168 |
| Linux | Linux Kernel | >= 5.16, < 6.1.113 |
| Linux | Linux Kernel | >= 6.2, < 6.6.57 |
| Linux | Linux Kernel | >= 6.7, < 6.11.4 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-50059?
How severe is CVE-2024-50059?
How do I fix CVE-2024-50059?
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-50053Zohocorp ManageEngine ServiceDesk Plus versions below 14920 …5.4
- CVE-2024-50054The back-end does not sufficiently verify the user-controlle…8.7
- CVE-2024-50055In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-50056In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-50057In the Linux kernel, the following vulnerability has been re…3.3
- CVE-2024-50058In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-5006The Boostify Header Footer Builder for Elementor plugin for …5.4
- CVE-2024-50060In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-50061In the Linux kernel, the following vulnerability has been re…7
- CVE-2024-50062In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-50063In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-50064In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-50059?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
