In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Reject max_entries > INT_MAX in sock_map_alloc sock_map_alloc()… (CVE-2026-98588)
Description
A vulnerability in the Linux kernel's BPF sockmap implementation allowed creation of sockmaps with max_entries greater than INT_MAX, leading to a signed integer overflow during map freeing. This caused out-of-bounds memory access and potential memory corruption or kernel crashes. The issue was triggered by setting max_entries to UINT_MAX (0xffffffff).
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's sock_map_alloc() function previously accepted any u32 value for max_entries except zero, allowing values greater than INT_MAX. During sock_map_free(), a signed int iterator was used to walk the sks[] array, causing integer overflow and sign extension when max_entries exceeded INT_MAX. This led to out-of-bounds writes and potential memory corruption or kernel oopses, especially on large-memory hosts. The vulnerability was discovered and reproduced with syzkaller on kernels including 6.6-based KASAN and upstream v7.3-rc2. The fix involves rejecting max_entries values greater than INT_MAX at creation time to prevent overflow in the free function.
Potential Impact
Exploitation can cause out-of-bounds memory writes during sockmap destruction, potentially leading to kernel crashes (oops), memory corruption, or denial of service. The fault can manifest as a page fault or corruption of unrelated allocations. No known exploits in the wild have been reported.
Mitigation Recommendations
A fix is available that rejects max_entries values greater than INT_MAX during sockmap creation, preventing the signed integer overflow in sock_map_free(). Users should update to a kernel version that includes this fix. No additional mitigation is required beyond applying the official fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v3gv-6qr6-4mh5
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98588"]
Threat ID: 6ad520ae2cdf04f656993a8e
Added to database: 10/18/2026, 19:40:30 UTC
Last enriched: 10/18/2026, 21:18:35 UTC
Last updated: 10/18/2026, 23:08:21 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.