{"document":{"aggregate_severity":{"namespace":"https://www.suse.com/support/security/rating/","text":"moderate"},"category":"csaf_security_advisory","csaf_version":"2.0","distribution":{"text":"Copyright 2024 SUSE LLC. All rights reserved.","tlp":{"label":"WHITE","url":"https://www.first.org/tlp/"}},"lang":"en","notes":[{"category":"summary","text":"Security update for bpftool","title":"Title of the patch"},{"category":"description","text":"This update for bpftool fixes the following issues:\n\n- CVE-2024-49987: Fixed undefined behavior in qsort(NULL, 0, ...) (bsc#1232258)\n","title":"Description of the patch"},{"category":"details","text":"SUSE-2024-4157,SUSE-SLE-Module-Basesystem-15-SP6-2024-4157,openSUSE-SLE-15.6-2024-4157","title":"Patchnames"},{"category":"legal_disclaimer","text":"CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).","title":"Terms of use"}],"publisher":{"category":"vendor","contact_details":"https://www.suse.com/support/security/contact/","name":"SUSE Product Security Team","namespace":"https://www.suse.com/"},"references":[{"category":"external","summary":"SUSE ratings","url":"https://www.suse.com/support/security/rating/"},{"category":"self","summary":"URL of this CSAF notice","url":"https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_4157-1.json"},{"category":"self","summary":"URL for SUSE-SU-2024:4157-1","url":"https://www.suse.com/support/update/announcement/2024/suse-su-20244157-1/"},{"category":"self","summary":"E-Mail link for SUSE-SU-2024:4157-1","url":"https://lists.suse.com/pipermail/sle-security-updates/2024-December/019904.html"},{"category":"self","summary":"SUSE Bug 1232258","url":"https://bugzilla.suse.com/1232258"},{"category":"self","summary":"SUSE CVE CVE-2024-49987 page","url":"https://www.suse.com/security/cve/CVE-2024-49987/"}],"title":"Security update for bpftool","tracking":{"current_release_date":"2024-12-03T14:26:54Z","generator":{"date":"2024-12-03T14:26:54Z","engine":{"name":"cve-database.git:bin/generate-csaf.pl","version":"1"}},"id":"SUSE-SU-2024:4157-1","initial_release_date":"2024-12-03T14:26:54Z","revision_history":[{"date":"2024-12-03T14:26:54Z","number":"1","summary":"Current version"}],"status":"final","version":"1"}},"product_tree":{"branches":[{"branches":[{"branches":[{"category":"product_version","name":"bpftool-6.4.0-150600.19.6.1.aarch64","product":{"name":"bpftool-6.4.0-150600.19.6.1.aarch64","product_id":"bpftool-6.4.0-150600.19.6.1.aarch64"}}],"category":"architecture","name":"aarch64"},{"branches":[{"category":"product_version","name":"bpftool-6.4.0-150600.19.6.1.i586","product":{"name":"bpftool-6.4.0-150600.19.6.1.i586","product_id":"bpftool-6.4.0-150600.19.6.1.i586"}}],"category":"architecture","name":"i586"},{"branches":[{"category":"product_version","name":"bpftool-6.4.0-150600.19.6.1.ppc64le","product":{"name":"bpftool-6.4.0-150600.19.6.1.ppc64le","product_id":"bpftool-6.4.0-150600.19.6.1.ppc64le"}}],"category":"architecture","name":"ppc64le"},{"branches":[{"category":"product_version","name":"bpftool-6.4.0-150600.19.6.1.s390x","product":{"name":"bpftool-6.4.0-150600.19.6.1.s390x","product_id":"bpftool-6.4.0-150600.19.6.1.s390x"}}],"category":"architecture","name":"s390x"},{"branches":[{"category":"product_version","name":"bpftool-6.4.0-150600.19.6.1.x86_64","product":{"name":"bpftool-6.4.0-150600.19.6.1.x86_64","product_id":"bpftool-6.4.0-150600.19.6.1.x86_64"}}],"category":"architecture","name":"x86_64"},{"branches":[{"category":"product_name","name":"SUSE Linux Enterprise Module for Basesystem 15 SP6","product":{"name":"SUSE Linux Enterprise Module for Basesystem 15 SP6","product_id":"SUSE Linux Enterprise Module for Basesystem 15 SP6","product_identification_helper":{"cpe":"cpe:/o:suse:sle-module-basesystem:15:sp6"}}},{"category":"product_name","name":"openSUSE Leap 15.6","product":{"name":"openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6","product_identification_helper":{"cpe":"cpe:/o:opensuse:leap:15.6"}}}],"category":"product_family","name":"SUSE Linux Enterprise"}],"category":"vendor","name":"SUSE"}],"relationships":[{"category":"default_component_of","full_product_name":{"name":"bpftool-6.4.0-150600.19.6.1.aarch64 as component of SUSE Linux Enterprise Module for Basesystem 15 SP6","product_id":"SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.aarch64"},"product_reference":"bpftool-6.4.0-150600.19.6.1.aarch64","relates_to_product_reference":"SUSE Linux Enterprise Module for Basesystem 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"bpftool-6.4.0-150600.19.6.1.ppc64le as component of SUSE Linux Enterprise Module for Basesystem 15 SP6","product_id":"SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.ppc64le"},"product_reference":"bpftool-6.4.0-150600.19.6.1.ppc64le","relates_to_product_reference":"SUSE Linux Enterprise Module for Basesystem 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"bpftool-6.4.0-150600.19.6.1.s390x as component of SUSE Linux Enterprise Module for Basesystem 15 SP6","product_id":"SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.s390x"},"product_reference":"bpftool-6.4.0-150600.19.6.1.s390x","relates_to_product_reference":"SUSE Linux Enterprise Module for Basesystem 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"bpftool-6.4.0-150600.19.6.1.x86_64 as component of SUSE Linux Enterprise Module for Basesystem 15 SP6","product_id":"SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.x86_64"},"product_reference":"bpftool-6.4.0-150600.19.6.1.x86_64","relates_to_product_reference":"SUSE Linux Enterprise Module for Basesystem 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"bpftool-6.4.0-150600.19.6.1.aarch64 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.aarch64"},"product_reference":"bpftool-6.4.0-150600.19.6.1.aarch64","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"bpftool-6.4.0-150600.19.6.1.ppc64le as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.ppc64le"},"product_reference":"bpftool-6.4.0-150600.19.6.1.ppc64le","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"bpftool-6.4.0-150600.19.6.1.s390x as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.s390x"},"product_reference":"bpftool-6.4.0-150600.19.6.1.s390x","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"bpftool-6.4.0-150600.19.6.1.x86_64 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.x86_64"},"product_reference":"bpftool-6.4.0-150600.19.6.1.x86_64","relates_to_product_reference":"openSUSE Leap 15.6"}]},"vulnerabilities":[{"cve":"CVE-2024-49987","ids":[{"system_name":"SUSE CVE Page","text":"https://www.suse.com/security/cve/CVE-2024-49987"}],"notes":[{"category":"general","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpftool: Fix undefined behavior in qsort(NULL, 0, ...)\n\nWhen netfilter has no entry to display, qsort is called with\nqsort(NULL, 0, ...). This results in undefined behavior, as UBSan\nreports:\n\nnet.c:827:2: runtime error: null pointer passed as argument 1, which is declared to never be null\n\nAlthough the C standard does not explicitly state whether calling qsort\nwith a NULL pointer when the size is 0 constitutes undefined behavior,\nSection 7.1.4 of the C standard (Use of library functions) mentions:\n\n\"Each of the following statements applies unless explicitly stated\notherwise in the detailed descriptions that follow: If an argument to a\nfunction has an invalid value (such as a value outside the domain of\nthe function, or a pointer outside the address space of the program, or\na null pointer, or a pointer to non-modifiable storage when the\ncorresponding parameter is not const-qualified) or a type (after\npromotion) not expected by a function with variable number of\narguments, the behavior is undefined.\"\n\nTo avoid this, add an early return when nf_link_info is NULL to prevent\ncalling qsort with a NULL pointer.","title":"CVE description"}],"product_status":{"recommended":["SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.aarch64","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.ppc64le","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.s390x","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.x86_64","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.aarch64","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.ppc64le","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.s390x","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.x86_64"]},"references":[{"category":"external","summary":"CVE-2024-49987","url":"https://www.suse.com/security/cve/CVE-2024-49987"},{"category":"external","summary":"SUSE Bug 1232258 for CVE-2024-49987","url":"https://bugzilla.suse.com/1232258"}],"remediations":[{"category":"vendor_fix","details":"To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n","product_ids":["SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.aarch64","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.ppc64le","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.s390x","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.x86_64","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.aarch64","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.ppc64le","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.s390x","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.x86_64"]}],"scores":[{"cvss_v3":{"baseScore":5.8,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H","version":"3.1"},"products":["SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.aarch64","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.ppc64le","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.s390x","SUSE Linux Enterprise Module for Basesystem 15 SP6:bpftool-6.4.0-150600.19.6.1.x86_64","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.aarch64","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.ppc64le","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.s390x","openSUSE Leap 15.6:bpftool-6.4.0-150600.19.6.1.x86_64"]}],"threats":[{"category":"impact","date":"2024-12-03T14:26:54Z","details":"moderate"}],"title":"CVE-2024-49987"}]}