In the Linux kernel, the following vulnerability has been resolved: bpf: Fix use-after-free in offloaded map/prog info fill When querying info for… (CVE-2026-53089)
A use-after-free vulnerability in the Linux kernel's BPF subsystem was resolved. The issue occurs when querying info for an offloaded BPF map or program, where a network namespace reference count may be incorrectly incremented after reaching zero, causing a use-after-free condition. The flaw arises because get_net() increments a refcount on zero, leading to memory corruption. The fix replaces get_net() with maybe_get_net(), which safely checks the refcount before incrementing and returns an error if the namespace is being destroyed.
AI Analysis
Technical Summary
CVE-2026-53089 is a use-after-free vulnerability in the Linux kernel's BPF offload info query functions (bpf_map_offload_info_fill_ns() and bpf_prog_offload_info_fill_ns()). These functions obtain the network namespace using get_net(dev_net(offmap->netdev)), but if the network namespace's refcount has reached zero during teardown, get_net() increments a zero refcount, causing a use-after-free. Although locking ensures the netdev pointer remains valid, it does not prevent the netns refcount from reaching zero. The vulnerability is fixed by switching to maybe_get_net(), which only increments the refcount if it is non-zero and returns NULL otherwise, causing the caller to return an error and avoid the use-after-free.
Potential Impact
Successful exploitation could lead to memory corruption due to use-after-free, potentially allowing privilege escalation or denial of service. The CVSS vector indicates local attack vector with low complexity, requiring low privileges and no user interaction, with high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves replacing get_net() with maybe_get_net() to prevent use-after-free. Until an official patch is available, avoid querying offloaded BPF map or program info in environments where network namespaces may be destroyed concurrently.
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix use-after-free in offloaded map/prog info fill When querying info for… (CVE-2026-53089)
Description
A use-after-free vulnerability in the Linux kernel's BPF subsystem was resolved. The issue occurs when querying info for an offloaded BPF map or program, where a network namespace reference count may be incorrectly incremented after reaching zero, causing a use-after-free condition. The flaw arises because get_net() increments a refcount on zero, leading to memory corruption. The fix replaces get_net() with maybe_get_net(), which safely checks the refcount before incrementing and returns an error if the namespace is being destroyed.
CVSS v3.1
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-53089 is a use-after-free vulnerability in the Linux kernel's BPF offload info query functions (bpf_map_offload_info_fill_ns() and bpf_prog_offload_info_fill_ns()). These functions obtain the network namespace using get_net(dev_net(offmap->netdev)), but if the network namespace's refcount has reached zero during teardown, get_net() increments a zero refcount, causing a use-after-free. Although locking ensures the netdev pointer remains valid, it does not prevent the netns refcount from reaching zero. The vulnerability is fixed by switching to maybe_get_net(), which only increments the refcount if it is non-zero and returns NULL otherwise, causing the caller to return an error and avoid the use-after-free.
Potential Impact
Successful exploitation could lead to memory corruption due to use-after-free, potentially allowing privilege escalation or denial of service. The CVSS vector indicates local attack vector with low complexity, requiring low privileges and no user interaction, with high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves replacing get_net() with maybe_get_net() to prevent use-after-free. Until an official patch is available, avoid querying offloaded BPF map or program info in environments where network namespaces may be destroyed concurrently.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-fwh4-95hv-8xhf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-53089"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a629b119c2644c7f8d8683f
Added to database: 07/23/2026, 22:52:01 UTC
Last enriched: 07/23/2026, 22:55:41 UTC
Last updated: 07/24/2026, 00:36:43 UTC
Views: 10
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.