VDB

CVE-2026-53089

CVE-2026-53089 PUBLISHED

bpf: Fix use-after-free in offloaded map/prog info fill

Reported by linux · Published June 24, 2026

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 an offloaded BPF map or program, bpf_map_offload_info_fill_ns() and bpf_prog_offload_info_fill_ns() obtain the network namespace with get_net(dev_net(offmap->netdev)). However, the associated netdev's netns may be racing with teardown during netns destruction. If the netns refcount has already reached 0, get_net() performs a refcount_t increment on 0, triggering: refcount_t: addition on 0; use-after-free. Although rtnl_lock and bpf_devs_lock ensure the netdev pointer remains valid, they cannot prevent the netns refcount from reaching zero. Fix this by using maybe_get_net() instead of get_net(). maybe_get_net() uses refcount_inc_not_zero() and returns NULL if the refcount is already zero, which causes ns_get_path_cb() to fail and the caller to return -ENOENT -- the correct behavior when the netns is being destroyed.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux-gcp-6.18Chainguard6.18.49-r0
linux-aws-6.18Chainguard6.18.54-r1, 6.18.49-r0
linux-qemu-melangeChainguard6.18.49-r2
linux_kernellinux7.0.10
LinuxLinuxa51e7fbe94a87e236631a83973d4f558310b2cd2, a0c584fc18056709c8e047a82a6045d6c209f4ce, 85dc711f742b192eb97c0e00b521312f5a7a415e

Affected products

VendorProductVersions
LinuxLinux675fc275a3a2d905535207237402c6d8dcb5fa4b, 675fc275a3a2d905535207237402c6d8dcb5fa4b, 675fc275a3a2d905535207237402c6d8dcb5fa4b
LinuxLinux4.16, 0, 5.10.269
chainguardlinux-gcp-6.180
chainguardlinux-aws-6.180, 0
chainguardlinux-qemu-melange0
LinuxLinux7.1, 0, 5.10.269
linuxlinux_kernel4.16, 4.16, 4.16

Timeline

  • Jun 24, 2026 CVE Published
  • Jun 25, 2026 EPSS Score (8 in total, the first dated here)
  • Jun 25, 2026 Coalition ESS Score
  • Aug 11, 2026 Distribution Patch (63 in total, the first dated here)
  • Aug 11, 2026 Security Advisory (63 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-53089
vulnetix vdb fixes CVE-2026-53089

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-53089/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›