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

bpf: Cancel special fields when recycling rhtab elements

rhtab_map_update_existing() and rhtab_delete_elem() call
bpf_obj_free_fields() when replacing or deleting a value. These map
operations can run from BPF programs in NMI context, where releasing a
referenced kptr or another complex field is not generally safe.

Array and hash maps avoid that problem by cancelling only the asynchronous
fields which can be stopped safely in the caller context. Other ownership
state remains attached to the allocation until its memory allocator
destructor performs the final cleanup.

Use bpf_obj_cancel_fields() for the corresponding rhtab paths as well. This
cancels timers, workqueues, and task work while allowing rhtab_mem_dtor() to
release referenced kptrs when the allocation is eventually destroyed.

[ kkd: Rebased, used direct helper calls, and rewrote the commit log ]
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption
Action: Patch immediately
AI Analysis

Impact

The Linux kernel’s BPF subsystem has a flaw in the handling of rhtab map entries when they are updated or deleted. The functions rhtab_map_update_existing() and rhtab_delete_elem() call bpf_obj_free_fields() to release resources, but when these operations are performed by BPF programs running in NMI context, freeing objects that reference kernel pointers or other complex fields can occur in an unsafe context. The likely attack vector is a privileged BPF program executed in NMI context, leading to memory corruption and potentially kernel crashes or denial of service. Based on the description, it is inferred that exploitation could result in kernel instability.

Affected Systems

All Linux kernel builds that incorporate the rhtab map implementation before the patch commits 28fde1356dbc35e20a9f22a5ee65af09698fdf92 and 65cc95eba9e8b46312cac38c227473605a4b996a. The vendor identifier indicates Linux kernels as the affected product; no specific version numbers are listed, so any kernel version containing the vulnerable code prior to the patch is considered affected.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity. The EPSS score of <1% suggests a low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog, indicating no known publicly released exploits. The likely attack vector is a privileged BPF program executed in NMI context, and based on the description, it is inferred that exploitation requires privileged access to load BPF programs that trigger the unsafe cleanup.

Generated by OpenCVE AI on October 1, 2026 at 01:38 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel release that contains the patch implementing bpf_obj_cancel_fields() for rhtab maps.
  • Restrict or disable the loading of untrusted BPF programs by removing CAP_SYS_ADMIN from users or disabling BPF functionality until the patch is applied.
  • Verify that custom or vendor‑supplied kernel configurations maintain the corrected cleanup logic for rhtab maps; run kernel memory‑corruption tests to detect regressions.

Generated by OpenCVE AI on October 1, 2026 at 01:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 30 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Tue, 29 Sep 2026 13:15:00 +0000

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

None

cvssV3_1

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

threat_severity

Moderate


Fri, 25 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Cancel special fields when recycling rhtab elements rhtab_map_update_existing() and rhtab_delete_elem() call bpf_obj_free_fields() when replacing or deleting a value. These map operations can run from BPF programs in NMI context, where releasing a referenced kptr or another complex field is not generally safe. Array and hash maps avoid that problem by cancelling only the asynchronous fields which can be stopped safely in the caller context. Other ownership state remains attached to the allocation until its memory allocator destructor performs the final cleanup. Use bpf_obj_cancel_fields() for the corresponding rhtab paths as well. This cancels timers, workqueues, and task work while allowing rhtab_mem_dtor() to release referenced kptrs when the allocation is eventually destroyed. [ kkd: Rebased, used direct helper calls, and rewrote the commit log ]
Title bpf: Cancel special fields when recycling rhtab elements
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-09-25T10:23:49.935Z

Reserved: 2026-09-25T10:19:56.070Z

Link: CVE-2026-98035

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:32.237

Modified: 2026-09-25T11:17:32.237

Link: CVE-2026-98035

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98035 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T01:45:16Z

Weaknesses
  • CWE-663

    Use of a Non-reentrant Function in a Concurrent Context