# CVE-2026-53089: bpf: Fix use-after-free in offloaded map/prog info fill

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-24 · Modified: 2026-11-06
- Aliases: UBUNTU-CVE-2026-53089, DEBIAN-CVE-2026-53089, CGA-2584-7wcw-h754, CGA-2cfh-pv2j-vf36, CGA-2hv7-8ffh-p6c6, CGA-2j5c-jr7w-cg89, CGA-36j3-h7cg-mg82, CGA-37wg-5h86-gq6r, CGA-39wj-83g2-h6hv, CGA-3q58-c95j-xm4g, CGA-3r6w-4hxc-wwxm, CGA-3xgv-p8fh-6hm6, CGA-43v6-67xq-c87g, CGA-4cqh-frcg-m399, CGA-4rpr-qgwr-8mrg, CGA-4vp2-w9wp-7gq6, CGA-54gw-754j-f4wx, CGA-55qx-8qj4-q27v, CGA-5cx3-5w83-hm5q, CGA-5xwj-j7jp-88jv, CGA-6mm3-hm68-834c, CGA-6wrv-fxr8-w59p, CGA-7533-9xqf-m6g9, CGA-7g39-748g-3h64, CGA-7j6q-ff4m-3226, CGA-7rm4-w765-3597, CGA-7wch-5j7j-58q8, CGA-84rf-42xv-wmv3, CGA-8642-8mmw-9xfp, CGA-96xh-cw3g-7ff7, CGA-99h9-9cwc-q4jj, CGA-9c3j-xrfj-8jqq, CGA-9fv4-pwpr-66g6, CGA-cgg7-rwqp-4c8q, CGA-cj9r-hq3h-r6vr, CGA-cpf3-j246-phr9, CGA-cww9-353r-598c, CGA-f58f-rpgr-9ff3, CGA-f757-4v9m-c7rx, CGA-f864-2hg5-22r2, CGA-g4mw-4x4h-rgp4, CGA-g7wx-x88c-jqqw, CGA-gjph-rm22-8qhj, CGA-gm79-7pvw-vm88, CGA-gv8j-mxv4-q7wh, CGA-h3cp-p2x6-r786, CGA-h5h5-wj5f-vhhf, CGA-h93x-7xmw-h7mq, CGA-h9v2-v8p5-m468, CGA-hr2c-r7jp-9qw7, CGA-hr92-wm2g-vmvc, CGA-hrc6-m87c-q5rj, CGA-j93q-5qhv-69fp, CGA-jmf9-fg77-pmhf, CGA-jmwf-rjx4-76mm, CGA-jxhm-jww6-p6p4, CGA-m2p6-3985-86rc, CGA-m8cf-w8xw-2333, CGA-m8gg-98rc-qjm3, CGA-mh6g-8w8m-q29r, CGA-mv6h-hch8-h7v5, CGA-mvgx-gwrj-v92x, CGA-p34w-g9rq-c9p3, CGA-p5xx-v3jw-qj2m, CGA-p6qg-8vg9-qr95, CGA-pgvp-597v-mqc5, CGA-pv5f-mw75-pgw8, CGA-pvx2-34x4-8788, CGA-rfw7-p632-c58r, CGA-wmwm-gv4v-h9jf, CGA-q8g9-8v4f-gj8g, CGA-qg9g-p2h6-5ww7, CGA-qrjg-r24h-hjrw, CGA-r27r-2qw6-jwc8, CGA-r9v4-8rp5-r86g, CGA-r9wh-g85q-5x2q, CGA-v5f2-cfcv-72vj, CGA-v6pv-mvf9-q68r, CGA-v7c8-r636-38mv, CGA-vc7f-qf2m-9c99, CGA-vp2p-34pq-rv2p, CGA-w3fv-4mq4-cf42, CGA-w3w4-vw5m-62g3, CGA-w4r2-xcmp-jmj7, CGA-w5m3-35x3-29qj, CGA-w7wc-499v-qg7v, CGA-w9cr-rqm5-vw78, CGA-wcc5-h6rg-9f2p, CGA-wcpg-c794-c5r4, CGA-wp58-wx6x-jhqw, CGA-wwv4-x46x-q456, CGA-x282-ppcq-f679, CGA-x4hv-p848-7wgq, CGA-xh9m-xx93-hgpv, CGA-xp95-2vg4-mp4h, CGA-xw5g-j5p5-fxpv, CGA-xwvx-chpj-jq7c, CGA-28m7-93wc-8crm, CGA-4wch-x499-qq2c, CGA-9xcr-6cwx-q5rw, CGA-f39q-mxcr-4c2p, CGA-jpg9-6pq3-mf6x, CGA-vmxx-6w99-5prr, CGA-fq9m-8j69-2c75, CGA-pgv6-3548-m4pq, CGA-qcxr-q8ff-7pqv, CGA-pwx5-cx7q-wfpg, CGA-xvx7-65fv-54q3
- Record: https://cvemate.com/vulnerability/CVE-2026-53089 · JSON: https://cvemate.com/vulnerability/CVE-2026-53089/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.117%, percentile 1.815%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 217)

- chainguard hyperv-daemons-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18 (Chainguard): All versions (No fix recorded) \| \< 6.18.54-r1 \| \< 6.18.49-r0
- chainguard linux-aws-6.18-boot-installed (Chainguard): \< 6.18.49-r0
- chainguard linux-aws-6.18-bootc (Chainguard): All versions (No fix recorded) \| \< 6.18.54-r1 \| \< 6.18.49-r0
- chainguard linux-aws-6.18-bootc-boot-installed (Chainguard): \< 6.18.49-r0
- chainguard linux-aws-6.18-fips-boot-installed (Chainguard): \< 6.18.49-r0
- chainguard linux-aws-6.18-headers (Chainguard): \< 6.18.49-r0
- chainguard linux-aws-6.18-modules (Chainguard): \< 6.18.49-r0
- chainguard linux-azure-6.12 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-modules (Chainguard): All versions (No fix recorded)

## References (first 20 of 38)

- <https://git.kernel.org/stable/c/43d6848a2a6c92ccfd614d9f0bb6fd85b95dfa9d>
- <https://git.kernel.org/stable/c/642943ae5bdacabc8109dc4a5e0ebb4a6b99ef3e>
- <https://git.kernel.org/stable/c/fea55b034328feaafef75aee252f305e6f85a991>
- <https://git.kernel.org/stable/c/5662dac41a3442aa378d7c405164903eb109fc05>
- <https://git.kernel.org/stable/c/1a2dc103e16448d022a77ad5fc3234641436c4b7>
- <https://git.kernel.org/stable/c/85dc711f742b192eb97c0e00b521312f5a7a415e>
- <https://git.kernel.org/stable/c/a51e7fbe94a87e236631a83973d4f558310b2cd2>
- <https://git.kernel.org/stable/c/a0c584fc18056709c8e047a82a6045d6c209f4ce>
- <https://ubuntu.com/security/CVE-2026-53089>
- <https://www.cve.org/CVERecord?id=CVE-2026-53089>
- <https://git.kernel.org/linus/a0c584fc18056709c8e047a82a6045d6c209f4ce>
- <https://ubuntu.com/security/notices/USN-8566-1>
- <https://ubuntu.com/security/notices/USN-8568-1>
- <https://ubuntu.com/security/notices/USN-8569-1>
- <https://ubuntu.com/security/notices/USN-8593-1>
- <https://ubuntu.com/security/notices/USN-8603-1>
- <https://ubuntu.com/security/notices/USN-8618-1>
- <https://ubuntu.com/security/notices/USN-8663-1>
- <https://ubuntu.com/security/notices/USN-8664-1>
- <https://ubuntu.com/security/notices/USN-8728-1>

---

Data as of 2026-12-06T04:33:18.406Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
