CVE-2026-53089
bpf: Fix use-after-free in offloaded map/prog info fill
Description
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.
INFO
Published Date :
June 24, 2026, 5:17 p.m.
Last Modified :
Sept. 2, 2026, 1:18 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update the Linux kernel to include the fix.
- Use maybe_get_net() instead of get_net().
- Ensure netns refcount is handled correctly.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-53089.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-53089 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-53089
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-53089 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-53089 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 02, 2026
Action Type Old Value New Value Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/53xxx/CVE-2026-53089.json">CVE-2026-53089</a> Added Reference https://git.kernel.org/stable/c/1a2dc103e16448d022a77ad5fc3234641436c4b7 Added Reference https://git.kernel.org/stable/c/43d6848a2a6c92ccfd614d9f0bb6fd85b95dfa9d Added Reference https://git.kernel.org/stable/c/5662dac41a3442aa378d7c405164903eb109fc05 Added Reference https://git.kernel.org/stable/c/642943ae5bdacabc8109dc4a5e0ebb4a6b99ef3e Added Reference https://git.kernel.org/stable/c/85dc711f742b192eb97c0e00b521312f5a7a415e Added Reference https://git.kernel.org/stable/c/a0c584fc18056709c8e047a82a6045d6c209f4ce Added Reference https://git.kernel.org/stable/c/a51e7fbe94a87e236631a83973d4f558310b2cd2 Added Reference https://git.kernel.org/stable/c/fea55b034328feaafef75aee252f305e6f85a991 Removed Reference https://git.kernel.org/stable/c/a0c584fc18056709c8e047a82a6045d6c209f4ce Removed Reference https://git.kernel.org/stable/c/a51e7fbe94a87e236631a83973d4f558310b2cd2 Removed Reference Type https://git.kernel.org/stable/c/a0c584fc18056709c8e047a82a6045d6c209f4ce Types: Patch Removed Reference Type https://git.kernel.org/stable/c/a51e7fbe94a87e236631a83973d4f558310b2cd2 Types: Patch -
Initial Analysis by [email protected]
Jul. 23, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-416 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.16 up to (excluding) 7.0.10 Added Reference Type kernel.org: https://git.kernel.org/stable/c/a0c584fc18056709c8e047a82a6045d6c209f4ce Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/a51e7fbe94a87e236631a83973d4f558310b2cd2 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 24, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '675fc275a3a2d905535207237402c6d8dcb5fa4b', 'lessThan': 'a51e7fbe94a87e236631a83973d4f558310b2cd2', 'versionType': 'git'}, {'status': 'affected', 'version': '675fc275a3a2d905535207237402c6d8dcb5fa4b', 'lessThan': 'a0c584fc18056709c8e047a82a6045d6c209f4ce', 'versionType': 'git'}], 'programFiles': ['kernel/bpf/offload.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '4.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '4.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '7.0.10', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/bpf/offload.c'], 'defaultStatus': 'affected'}] Added Description 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. Added Reference https://git.kernel.org/stable/c/a0c584fc18056709c8e047a82a6045d6c209f4ce Added Reference https://git.kernel.org/stable/c/a51e7fbe94a87e236631a83973d4f558310b2cd2