# CVE-2026-74314: bpf: Cancel special fields on map value recycle

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-15T05:58:12.766Z
- Modified: 2026-10-16T19:17:38.840Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

bpf: Cancel special fields on map value recycle

Map update and delete paths currently call bpf_obj_free_fields() when a
value is being replaced or recycled. That makes field destruction depend
on the context of the update/delete operation. For tracing programs this
can include NMI context, where referenced kptr destructors, uptr
unpinning, and graph root destruction are not generally safe.

Introduce bpf_obj_cancel_fields() for the reusable-value path. It only
performs NMI-safe cleanup for timer, workqueue, and task_work fields.
Fields that need full destruction are left attached to the recycled value
and are destroyed by the final cleanup path instead.

Switch array and hashtab update/delete/recycle paths to this cancel
helper. Keep bpf_obj_free_fields() for final map destruction and for
bpf_mem_alloc destructors. Preallocated hashtabs do not have allocator
destructors, so teardown continues to walk the normal and extra elements
and fully destroy their fields.

This deliberately relaxes the eager-free semantics of map update/delete
for special fields. Programs that relied on a recycled map slot becoming
empty immediately after update/delete were relying on behavior that
cannot be implemented safely from every BPF execution context without
offloading arbitrary destructors.

There is a chance this change breaks programs making assumptions
regarding the eager freeing of fields. If so, we can relax semantics to
cancellation only when irqs_disabled() is true in the future. However,
theoretically, map values that get reused eagerly already have weaker
guarantees as parallel users can recreate freed fields before the new
element becomes visible again.

(As written by CVE List.)

## Affected

- Linux Linux: from 14a324f6a67ef6a53e04362a70160a47eb8afffa before 9ea734e2cc0143d7429ab7dc0b20c85e5836183c; from 14a324f6a67ef6a53e04362a70160a47eb8afffa before a3a81d247651218e47153f2d2afd7aee236726fd; f0462d38589422bc9e27fd3c6343dfeb6b3db2f9; from 5.18.18 before 5.19; 5.19 (not affected: before 5.19; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/9ea734e2cc0143d7429ab7dc0b20c85e5836183c>
- <https://git.kernel.org/stable/c/a3a81d247651218e47153f2d2afd7aee236726fd>

## Sources

- CVE List: [CVE-2026-74314](https://www.cve.org/CVERecord?id=CVE-2026-74314), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-74314](https://nvd.nist.gov/vuln/detail/CVE-2026-74314), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-74314 · Whole record: https://cve.day/CVE-2026-74314.json · Rebuilt by cve.day 2026-11-25T22:59:33.167Z
