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

bpf: Clear rb node linkage when freeing bpf_rb_root

bpf_rb_root_free() detaches the root by copying the current rb_root_cached
and then replacing the live root with RB_ROOT_CACHED. It then walks the
copied root and drops each object contained in the tree.

This leaves the rb node state intact while dropping the object. If the
object is refcounted and survives the drop, its bpf_rb_node_kern still
contains an owner pointer to the freed root and stale rb tree linkage. If
a later bpf_rb_root allocation reuses the same address, bpf_rbtree_remove()
can incorrectly pass the owner check and call rb_erase_cached() on a node
whose rb pointers belong to the old tree.

Mirror the list draining behavior by marking nodes as busy while the root
is being detached, then clear the rb node and release the owner before
dropping the containing object. This makes surviving nodes unowned and
safe to reject from remove or accept for a later add.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel BPF subsystem a bug in freeing a red‑black tree root caused stale node pointers to remain attached to surviving objects. If such an object survives a drop it still holds an owner reference to the freed root and the old tree linkage. When a new root object reuses the same address, removal operations can incorrectly pass the owner check and delete a node belonging to the old tree, potentially leading to memory corruption or arbitrary code execution. This weakness represents a use‑after‑free scenario that can lead to memory corruption or arbitrary code execution.

Affected Systems

All Linux kernel builds that implement the BPF red‑black tree feature are affected. No specific release versions are identified in public advisory, so any system running an unpatched kernel that includes the BPF rbtree code is potentially vulnerable.

Risk and Exploitability

The CVSS score is 7.8, EPSS score <1%, and it is not listed in the CISA KEV catalog. The impact remains serious: a malicious party could trigger the vulnerable bpf_rb_root_free path by delivering a crafted BPF program, potentially leading to kernel memory corruption and privilege escalation or denial of service. Exploitability appears limited to systems that run vulnerable kernel versions and have BPF enabled, which reduces the immediacy of a broad attack.

Generated by OpenCVE AI on August 22, 2026 at 00:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the fix for bpf_rb_root_free (commit 2eb39de4962f842d653e96818ae372665cd481fd).
  • Reboot the affected systems into the patched kernel to ensure the code changes are in use.
  • If BPF programs are not required, consider disabling the BPF system by removing or unloading the bpf module until a patch is applied.

Generated by OpenCVE AI on August 22, 2026 at 00:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 17 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sat, 15 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 15 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Clear rb node linkage when freeing bpf_rb_root bpf_rb_root_free() detaches the root by copying the current rb_root_cached and then replacing the live root with RB_ROOT_CACHED. It then walks the copied root and drops each object contained in the tree. This leaves the rb node state intact while dropping the object. If the object is refcounted and survives the drop, its bpf_rb_node_kern still contains an owner pointer to the freed root and stale rb tree linkage. If a later bpf_rb_root allocation reuses the same address, bpf_rbtree_remove() can incorrectly pass the owner check and call rb_erase_cached() on a node whose rb pointers belong to the old tree. Mirror the list draining behavior by marking nodes as busy while the root is being detached, then clear the rb node and release the owner before dropping the containing object. This makes surviving nodes unowned and safe to reject from remove or accept for a later add.
Title bpf: Clear rb node linkage when freeing bpf_rb_root
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:46:09.476Z

Reserved: 2026-08-15T05:44:03.886Z

Link: CVE-2026-74344

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:35.487

Modified: 2026-08-17T06:19:28.960

Link: CVE-2026-74344

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-74344 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T00:15:05Z

Weaknesses