CVE-2024-49987
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-49987 affects the Linux kernel's bpftool utility, specifically related to undefined behavior in qsort(NULL, 0, ...) function calls. The vulnerability was discovered when netfilter has no entries to display, causing qsort to be called with a NULL pointer. This issue affects Linux kernel versions up to (excluding) 6.6.55, versions from 6.7 up to (excluding) 6.10.14, and versions from 6.11 up to (excluding) 6.11.3 (NVD).

Technical details

The vulnerability stems from undefined behavior in the C standard's qsort function implementation. When netfilter has no entries to display, the code calls qsort(NULL, 0, ...), which according to Section 7.1.4 of the C standard constitutes undefined behavior. The issue was identified through UBSan (Undefined Behavior Sanitizer) which reported a runtime error at net.c:827:2 indicating a null pointer was passed as an argument that was declared to never be null. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (MEDIUM) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability could lead to undefined behavior in the Linux kernel's bpftool utility when displaying netfilter entries. While there are no direct confidentiality or integrity impacts reported, the availability impact is rated as High according to the CVSS score, potentially affecting system stability when the vulnerable code path is triggered (NVD).

Mitigation and workarounds

The vulnerability has been patched by adding an early return when nf_link_info is NULL to prevent calling qsort with a NULL pointer. The fix has been implemented in the Linux kernel through multiple commits. Users should update their systems to Linux kernel versions 6.6.55, 6.10.14, or 6.11.3 or later to address this vulnerability (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64192HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.8
NoYesJul 20, 2026
CVE-2026-64191HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux
NoYesJul 20, 2026
CVE-2026-64600HIGH7.1
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-kvm
NoYesJul 23, 2026
CVE-2026-64206MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesJul 20, 2026
CVE-2026-64205MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-debug-uki-virt-addons
NoNoJul 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management