# CVE-2026-93137: bpf: Fix use-after-free on mm\_struct in bpf\_find\_vma()

> 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.17% (percentile 4, 2026-11-26)
- **Published:** 2026-09-17T16:11:38.135Z
- **Modified:** 2026-10-19T10:17:03.707Z

## Who should check

- Anyone running Linux \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< db347840d6b6ee9bb9b8e4a985d4b4419f9f3200; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 8e1101fc4118019a69c96ced4aec93164f89cbd5; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< c7ad910e987008e125eeff448892e86852173384; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 86d54cf069fc5ae2e111c87933bebf6eb527978e; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 2b2a903bee56d312539046d9defa8023eec94760; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 47b079e2117a2ee52e21f8b72935900c702fc0b5
- Anyone running Linux 5.17

## Description

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

bpf: Fix use-after-free on mm\_struct in bpf\_find\_vma()

bpf\_find\_vma() reads task-\>mm and calls mmap\_read\_trylock(mm) without
holding a reference on the mm. On a foreign task, a concurrent exit\_mm()
can free the mm\_struct between the lockless read and the trylock,
resulting in a use-after-free. mm\_struct is not SLAB\_TYPESAFE\_BY\_RCU.

For the current task, task-\>mm is stable. For a foreign task, pin the mm
under task-\>alloc\_lock and release it with mmput\_async(), mirroring commit
d8e27d2d22b6 ("bpf: fix mm lifecycle in open-coded task\_vma iterator").
Use spin\_trylock() instead of get\_task\_mm() so BPF context does not block
on alloc\_lock. Reject irqs-disabled contexts and !CONFIG\_MMU on the
foreign-task path because dropping the mm reference is not safe there.

Race:

  CPU0 (BPF program)                  CPU1 (exiting task)
  ============================        ==========================
  bpf\_find\_vma(foreign\_task):
    mm = task-\>mm
                                      exit\_mm():
                                        task-\>mm = NULL
                                        mmput(mm) -\> frees mm\_struct
    mmap\_read\_trylock(mm)
        // UAF on mm

## Affected and fixed versions

- Linux: \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< db347840d6b6ee9bb9b8e4a985d4b4419f9f3200; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 8e1101fc4118019a69c96ced4aec93164f89cbd5; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< c7ad910e987008e125eeff448892e86852173384; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 86d54cf069fc5ae2e111c87933bebf6eb527978e; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 2b2a903bee56d312539046d9defa8023eec94760; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 47b079e2117a2ee52e21f8b72935900c702fc0b5 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 47b079e2117a2ee52e21f8b72935900c702fc0b5 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-93137. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-93137.md
Affected: Linux >= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, < db347840d6b6ee9bb9b8e4a985d4b4419f9f3200; >= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, < 8e1101fc4118019a69c96ced4aec93164f89cbd5; >= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, < c7ad910e987008e125eeff448892e86852173384; >= 7c7e3d31e7856a8260a254f…
Fixed in: Linux 8e1101fc4118019a69c96ced4aec93164f89cbd5, Linux 86d54cf069fc5ae2e111c87933bebf6eb527978e, Linux 2b2a903bee56d312539046d9defa8023eec94760, Linux 47b079e2117a2ee52e21f8b72935900c702fc0b5

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-93137 being exploited?

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

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

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

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

Linux \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< db347840d6b6ee9bb9b8e4a985d4b4419f9f3200; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 8e1101fc4118019a69c96ced4aec93164f89cbd5; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< c7ad910e987008e125eeff448892e86852173384; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 86d54cf069fc5ae2e111c87933bebf6eb527978e; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 2b2a903bee56d312539046d9defa8023eec94760; \>= 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1, \< 47b079e2117a2ee52e21f8b72935900c702fc0b5; Linux 5.17.

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

Yes. Fixed in Linux 8e1101fc4118019a69c96ced4aec93164f89cbd5, Linux 86d54cf069fc5ae2e111c87933bebf6eb527978e, Linux 2b2a903bee56d312539046d9defa8023eec94760, Linux 47b079e2117a2ee52e21f8b72935900c702fc0b5. Upgrade Linux to 47b079e2117a2ee52e21f8b72935900c702fc0b5 or later.

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

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/db347840d6b6ee9bb9b8e4a985d4b4419f9f3200>
- other: <https://git.kernel.org/stable/c/8e1101fc4118019a69c96ced4aec93164f89cbd5>
- other: <https://git.kernel.org/stable/c/c7ad910e987008e125eeff448892e86852173384>
- other: <https://git.kernel.org/stable/c/86d54cf069fc5ae2e111c87933bebf6eb527978e>
- other: <https://git.kernel.org/stable/c/2b2a903bee56d312539046d9defa8023eec94760>
- other: <https://git.kernel.org/stable/c/47b079e2117a2ee52e21f8b72935900c702fc0b5>

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

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