CVE-2024-35827
Last modified
CVE-2024-35827 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: io_uring/net: fix overflow check in io_recvmsg_mshot_prep() The "controllen" variable is type size_t (unsigned long). Casting it to int could lead to an integer underflow. The check_add_overflow() function considers the type of the destination which is type int. EPSS estimates a 0.21% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: io_uring/net: fix overflow check in io_recvmsg_mshot_prep() The "controllen" variable is type size_t (unsigned long). Casting it to int could lead to an integer underflow. The check_add_overflow() function considers the type of the destination which is type int. If we add two positive values and the result cannot fit in an integer then that's counted as an overflow. However, if we cast "controllen" to an int and it turns negative, then negative values *can* fit into an int type so there is no overflow. Good: 100 + (unsigned long)-4 = 96 <-- overflow Bad: 100 + (int)-4 = 96 <-- no overflow I deleted the cast of the sizeof() as well. That's not a bug but the cast is unnecessary.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.0, < 6.1.83 |
| Linux | Linux Kernel | >= 6.2, < 6.6.23 |
| Linux | Linux Kernel | >= 6.7, < 6.7.11 |
| Linux | Linux Kernel | >= 6.8, < 6.8.2 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-35827?
How severe is CVE-2024-35827?
How do I fix CVE-2024-35827?
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-35821In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35822In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35823In the Linux kernel, the following vulnerability has been re…5.3
- CVE-2024-35824In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35825In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35826In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35828In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35829In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-3583The Simple Like Page Plugin plugin for WordPress is vulnerab…6.4
- CVE-2024-35830In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35831In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35832In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-35827?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
