Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      CodeSOD: A Unique Way to Primary Key

      July 22, 2025

      BrowserStack launches Figma plugin for detecting accessibility issues in design phase

      July 22, 2025

      Parasoft brings agentic AI to service virtualization in latest release

      July 22, 2025

      Node.js vs. Python for Backend: 7 Reasons C-Level Leaders Choose Node.js Talent

      July 21, 2025

      The best CRM software with email marketing in 2025: Expert tested and reviewed

      July 22, 2025

      This multi-port car charger can power 4 gadgets at once – and it’s surprisingly cheap

      July 22, 2025

      I’m a wearables editor and here are the 7 Pixel Watch 4 rumors I’m most curious about

      July 22, 2025

      8 ways I quickly leveled up my Linux skills – and you can too

      July 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025
      Recent

      The Intersection of Agile and Accessibility – A Series on Designing for Everyone

      July 22, 2025

      Zero Trust & Cybersecurity Mesh: Your Org’s Survival Guide

      July 22, 2025

      Execute Ping Commands and Get Back Structured Data in PHP

      July 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025
      Recent

      A Tomb Raider composer has been jailed — His legacy overshadowed by $75k+ in loan fraud

      July 22, 2025

      “I don’t think I changed his mind” — NVIDIA CEO comments on H20 AI GPU sales resuming in China following a meeting with President Trump

      July 22, 2025

      Galaxy Z Fold 7 review: Six years later — Samsung finally cracks the foldable code

      July 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Security»Common Vulnerabilities and Exposures (CVEs)»CVE-2024-58098 – Linux Kernel BPF Packet Pointer Invalidation Vulnerability

    CVE-2024-58098 – Linux Kernel BPF Packet Pointer Invalidation Vulnerability

    May 5, 2025

    CVE ID : CVE-2024-58098

    Published : May 5, 2025, 3:15 p.m. | 18 minutes ago

    Description : In the Linux kernel, the following vulnerability has been resolved:

    bpf: track changes_pkt_data property for global functions

    When processing calls to certain helpers, verifier invalidates all
    packet pointers in a current state. For example, consider the
    following program:

    __attribute__((__noinline__))
    long skb_pull_data(struct __sk_buff *sk, __u32 len)
    {
    return bpf_skb_pull_data(sk, len);
    }

    SEC(“tc”)
    int test_invalidate_checks(struct __sk_buff *sk)
    {
    int *p = (void *)(long)sk->data;
    if ((void *)(p + 1) > (void *)(long)sk->data_end) return TCX_DROP;
    skb_pull_data(sk, 0);
    *p = 42;
    return TCX_PASS;
    }

    After a call to bpf_skb_pull_data() the pointer ‘p’ can’t be used
    safely. See function filter.c:bpf_helper_changes_pkt_data() for a list
    of such helpers.

    At the moment verifier invalidates packet pointers when processing
    helper function calls, and does not traverse global sub-programs when
    processing calls to global sub-programs. This means that calls to
    helpers done from global sub-programs do not invalidate pointers in
    the caller state. E.g. the program above is unsafe, but is not
    rejected by verifier.

    This commit fixes the omission by computing field
    bpf_subprog_info->changes_pkt_data for each sub-program before main
    verification pass.
    changes_pkt_data should be set if:
    – subprogram calls helper for which bpf_helper_changes_pkt_data
    returns true;
    – subprogram calls a global function,
    for which bpf_subprog_info->changes_pkt_data should be set.

    The verifier.c:check_cfg() pass is modified to compute this
    information. The commit relies on depth first instruction traversal
    done by check_cfg() and absence of recursive function calls:
    – check_cfg() would eventually visit every call to subprogram S in a
    state when S is fully explored;
    – when S is fully explored:
    – every direct helper call within S is explored
    (and thus changes_pkt_data is set if needed);
    – every call to subprogram S1 called by S was visited with S1 fully
    explored (and thus S inherits changes_pkt_data from S1).

    The downside of such approach is that dead code elimination is not
    taken into account: if a helper call inside global function is dead
    because of current configuration, verifier would conservatively assume
    that the call occurs for the purpose of the changes_pkt_data
    computation.

    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCVE-2024-58100 – Linux Kernel bpf Changes_pkt_data Property Vulnerability
    Next Article CVE-2025-4316 – “Devolutions Server PAM Unauthorized Self-Approval”

    Related Posts

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-44658 – Netgear RAX30 PHP-FPM Misconfigured Extension Bypass Vulnerability

    July 22, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-7393 – Drupal Mail Login Authentication Bypass

    July 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    10 Secure Development Practices Every Developer Should Follow

    Web Development

    Microsoft UX Dark Patterns, CSS-only blurry image placeholders + Inclusive Design

    Web Development

    Rilasciata AnduinOS 1.3: La distribuzione GNU/Linux che porta l’esperienza di Windows 11 su Ubuntu 25.04

    Linux

    Raspberry Pi 5 Desktop Mini PC: PiGro – system configuration tool

    Linux

    Highlights

    Synology Network File System Vulnerability Let Read Any File

    April 23, 2025

    Synology Network File System Vulnerability Let Read Any File

    A severe security vulnerability in Synology’s DiskStation Manager (DSM) software has been identified. This vulnerability allows remote attackers to read arbitrary files through the Network File System …
    Read more

    Published Date:
    Apr 23, 2025 (5 hours, 10 minutes ago)

    Vulnerabilities has been mentioned in this article.

    CVE-2025-1021

    CVE-2025-34132 – LILIN DVR Command Injection Vulnerability

    July 16, 2025

    CVE-2025-46382 – Apache HTTP Server Information Disclosure

    July 20, 2025

    CVE-2025-3894 – MegaBIP Stored XSS

    May 23, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.