{
  "cveId": "CVE-2024-49987",
  "url": "https://patchblox.com/security/cve/CVE-2024-49987",
  "summary": "CVE-2024-49987 is fixed in 27 products on 1 platform, first by DEBIAN-CVE-2024-49987, released October 21, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "bpftool: Fix undefined behavior in qsort(NULL 0 ...)",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  bpftool: Fix undefined behavior in qsort(NULL, 0, ...)  When netfilter has no entry to display, qsort is called with qsort(NULL, 0, ...). This results in undefined behavior, as UBSan reports:  net.c:827:2: runtime error: null pointer passed as argument 1, which is declared to never be null  Although the C standard does not explicitly state whether calling qsort with a NULL pointer when the size is 0 constitutes undefined behavior, Section 7.1.4 of the C standard (Use of library functions) mentions:  \u0022Each of the following statements applies unless explicitly stated otherwise in the detailed descriptions that follow: If an argument to a function has an invalid value (such as a value outside the domain of the function, or a pointer outside the address space of the program, or a null pointer, or a pointer to non-modifiable storage when the corresponding parameter is not const-qualified) or a type (after promotion) not expected by a function with variable number of arguments, the behavior is undefined.\u0022  To avoid this, add an early return when nf_link_info is NULL to prevent calling qsort with a NULL pointer.",
  "published": "2024-10-21T18:15:19Z",
  "severity": "Moderate",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "cwe": "NULL Pointer Dereference",
  "epss": 0.00235,
  "epssPercentile": 0.14498,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "vendorAdvisory": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-49987",
  "fixes": [
    {
      "platform": "linux",
      "product": "bpftool",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.19.6.1",
      "fix": "SUSE-SU-2024:4157-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4157-1",
      "released": "2024-12-03T14:26:54Z"
    },
    {
      "platform": "linux",
      "product": "bpftool",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.19.6.1",
      "fix": "SUSE-SU-2024:4157-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4157-1",
      "released": "2024-12-03T14:26:54Z"
    },
    {
      "platform": "linux",
      "product": "dtb-aarch64",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-64kb",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-coco_debug",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1.150600.12.12.6",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-default-base",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1.150600.12.12.6",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-docs",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-kvmsmall",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6-RT_Update_6",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.1.3.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-livepatch-SLE15-SP6_Update_6",
      "release": "sles 15.6",
      "fixedVersion": "1-150600.13.3.5",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-build",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-obs-qa",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-rt_debug",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-source-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-azure",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.8.20.1",
      "fix": "SUSE-SU-2024:4316-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4316-1",
      "released": "2024-12-13T15:24:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-coco",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-15061.9.coco15sp6.1",
      "fix": "SUSE-SU-2024:4387-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4387-1",
      "released": "2024-12-19T15:39:02Z"
    },
    {
      "platform": "linux",
      "product": "kernel-syms-rt",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.10.20.1",
      "fix": "SUSE-SU-2024:4314-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4314-1",
      "released": "2024-12-13T15:23:16Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "opensuse-leap 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "kernel-zfcpdump",
      "release": "sles 15.6",
      "fixedVersion": "6.4.0-150600.23.30.1",
      "fix": "SUSE-SU-2024:4318-1",
      "url": "https://patchblox.com/security/fix/linux/suse-su-2024-4318-1",
      "released": "2024-12-13T15:33:38Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.11.4-1",
      "fix": "DEBIAN-CVE-2024-49987",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-49987",
      "released": "2024-10-21T18:15:19Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.11.4-1",
      "fix": "DEBIAN-CVE-2024-49987",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-49987",
      "released": "2024-10-21T18:15:19Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}