CVE-2024-35827

MEDIUM

Linux Kernel 6.0-6.1.82, 6.2-6.6.22, 6.7-6.7.10, 6.8-6.8.1 - Integer Underflow in io_uring net recvmsg_mshot

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0021
EPSS Percentile 10.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-190
Status published
Products (17)
linux/Kernel 6.0.0 - 6.1.83linux
linux/Kernel 6.2.0 - 6.6.23linux
linux/Kernel 6.7.0 - 6.7.11linux
linux/Kernel 6.8.0 - 6.8.2linux
Linux/Linux < 6.0
Linux/Linux 6.0
Linux/Linux 6.1.83 - 6.1.*
Linux/Linux 6.6.23 - 6.6.*
Linux/Linux 6.7.11 - 6.7.*
Linux/Linux 6.8.2 - 6.8.*
... and 7 more
Published May 17, 2024
Tracked Since Feb 18, 2026