PT-2026-116807
CVE-2026-98588
·
Published
2026-10-18
·
Updated
2026-11-24
Description by
CVSS 4.0
7.1
HighMetricsAV:L/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
Linux kernel versions 6.6 through 7.3-rc2
Description
An issue exists in the bpf sockmap component where the
sock map alloc() function fails to properly validate the max entries variable, allowing any u32 value other than zero. When a SOCKMAP is created with max entries set to 0xffffffff (UINT MAX), it can lead to a massive memory allocation on hosts with sufficient RAM. During the subsequent cleanup process in the sock map free() function, a signed integer iterator is used to traverse the sks[] array. When the counter reaches 0x80000000, it wraps to INT MIN, resulting in a negative offset that points far below the intended memory allocation. This leads to an out-of-bounds write via an xchg() operation, which can cause a system crash (oops) or corrupt unrelated memory allocations in the vmalloc area.Recommendations
Update the Linux kernel to a version where
sock map alloc() rejects max entries values greater than INT MAX to prevent integer overflow during the map destruction process. Found an issue in the description? Have something to add? Feel free to write us 👾