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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.13% (percentile 3, 2026-12-02)
- **Published:** 2026-08-15T05:58:12.766Z
- **Modified:** 2026-10-16T19:17:38.840Z

## Who should check

- Anyone running Linux \>= 14a324f6a67ef6a53e04362a70160a47eb8afffa, \< 9ea734e2cc0143d7429ab7dc0b20c85e5836183c; \>= 14a324f6a67ef6a53e04362a70160a47eb8afffa, \< a3a81d247651218e47153f2d2afd7aee236726fd; f0462d38589422bc9e27fd3c6343dfeb6b3db2f9; \>= 5.18.18, \< 5.19
- Anyone running Linux 5.19

## 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.

## Affected and fixed versions

- Linux: \>= 14a324f6a67ef6a53e04362a70160a47eb8afffa, \< 9ea734e2cc0143d7429ab7dc0b20c85e5836183c; \>= 14a324f6a67ef6a53e04362a70160a47eb8afffa, \< a3a81d247651218e47153f2d2afd7aee236726fd; f0462d38589422bc9e27fd3c6343dfeb6b3db2f9; \>= 5.18.18, \< 5.19 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 5.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74314. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74314.md
Affected: Linux >= 14a324f6a67ef6a53e04362a70160a47eb8afffa, < 9ea734e2cc0143d7429ab7dc0b20c85e5836183c; >= 14a324f6a67ef6a53e04362a70160a47eb8afffa, < a3a81d247651218e47153f2d2afd7aee236726fd; f0462d38589422bc9e27fd3c6343dfeb6b3db2f9; >= 5.18.18, < 5.19; Linux 5.19
Fixed in: Linux 9ea734e2cc0143d7429ab7dc0b20c85e5836183c, Linux 5.19

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74314 being exploited?

There is no confirmed exploitation: CVE-2026-74314 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-12-02).

### How serious is CVE-2026-74314?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-74314?

Linux \>= 14a324f6a67ef6a53e04362a70160a47eb8afffa, \< 9ea734e2cc0143d7429ab7dc0b20c85e5836183c; \>= 14a324f6a67ef6a53e04362a70160a47eb8afffa, \< a3a81d247651218e47153f2d2afd7aee236726fd; f0462d38589422bc9e27fd3c6343dfeb6b3db2f9; \>= 5.18.18, \< 5.19; Linux 5.19.

### Is there a fix for CVE-2026-74314?

Yes. Fixed in Linux 9ea734e2cc0143d7429ab7dc0b20c85e5836183c, Linux 5.19. Upgrade Linux to 5.19 or later.

### How do I check if I'm affected by CVE-2026-74314?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74314>

HTML: <https://flawdb.com/CVE-2026-74314> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74314>
